File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Libraries/test/TestServerlessApp.IntegrationTests Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 38
38
$content = Get-Content .\aws- lambda- tools- defaults.json
39
39
$content | ForEach-Object {$_ -replace $line , " `" function-architecture`" : `" $arch `" " } | Set-Content .\aws- lambda- tools- defaults.json
40
40
41
+ # Extract region
42
+ $json = Get-Content .\aws- lambda- tools- defaults.json | Out-String | ConvertFrom-Json
43
+ $region = $json.region
44
+
41
45
dotnet tool install - g Amazon.Lambda.Tools
42
46
Write-Host " Creating S3 Bucket $identifier "
43
- aws s3 mb s3:// $identifier
47
+
48
+ if (! [string ]::IsNullOrEmpty($region ))
49
+ {
50
+ aws s3 mb s3:// $identifier -- region $region
51
+ }
52
+ else
53
+ {
54
+ aws s3 mb s3:// $identifier
55
+ }
56
+
44
57
if (! $? )
45
58
{
46
59
throw " Failed to create the following bucket: $identifier "
You can’t perform that action at this time.
0 commit comments