We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8f3ba9 commit eb7e990Copy full SHA for eb7e990
Libraries/test/TestServerlessApp.IntegrationTests/DeploymentScript.ps1
@@ -38,9 +38,22 @@ try
38
$content = Get-Content .\aws-lambda-tools-defaults.json
39
$content | ForEach-Object {$_ -replace $line, "`"function-architecture`" : `"$arch`""} | Set-Content .\aws-lambda-tools-defaults.json
40
41
+ # Extract region
42
+ $json = Get-Content .\aws-lambda-tools-defaults.json | Out-String | ConvertFrom-Json
43
+ $region = $json.region
44
+
45
dotnet tool install -g Amazon.Lambda.Tools
46
Write-Host "Creating S3 Bucket $identifier"
- 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
57
if (!$?)
58
{
59
throw "Failed to create the following bucket: $identifier"
0 commit comments