Skip to content

Commit 9584498

Browse files
committed
Fix getting the right aws-cfn-bootstrap-latest from cn-north-1
The package aws-cfn-bootstrap-latest.tar.gz does not exist in cn-northwest-1 Signed-off-by: Luca Carrogu <[email protected]>
1 parent c7ca33e commit 9584498

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

amis/packer_ubuntu1404.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@
246246
"inline" : [
247247
"region=\"{{user `region`}}\"",
248248
"bucket=\"s3.${region}.amazonaws.com\"",
249-
"[[ ${region} =~ ^cn- ]] && bucket=\"s3.${region}.amazonaws.com.cn\"",
249+
"[[ ${region} =~ ^cn- ]] && bucket=\"s3.cn-north-1.amazonaws.com.cn\"",
250250
"curl --retry 3 -L -o /tmp/aws-cfn-bootstrap-latest.tar.gz https://${bucket}/cloudformation-examples/aws-cfn-bootstrap-latest.tar.gz",
251251
"sudo pip install /tmp/aws-cfn-bootstrap-latest.tar.gz"
252252
]
@@ -257,7 +257,7 @@
257257
"inline" : [
258258
"region=\"{{user `region`}}\"",
259259
"bucket=\"s3.${region}.amazonaws.com\"",
260-
"[[ ${region} =~ ^cn- ]] && bucket=\"s3.cn-north-1.amazonaws.com.cn\"",
260+
"[[ ${region} =~ ^cn- ]] && bucket=\"s3.${region}.amazonaws.com.cn\"",
261261
"sudo curl --retry 3 https://${bucket}/${region}-aws-parallelcluster/cookbooks/aws-parallelcluster-cookbook-{{user `parallelcluster_cookbook_version`}}.tgz --silent --location -o /etc/chef/aws-parallelcluster-cookbook.tgz"
262262
]
263263
},

0 commit comments

Comments
 (0)