File tree 1 file changed +2
-22
lines changed
cli/src/pcluster/resources/imagebuilder
1 file changed +2
-22
lines changed Original file line number Diff line number Diff line change @@ -123,14 +123,7 @@ phases:
123
123
set -v
124
124
BUCKET="s3.amazonaws.com"
125
125
[[ ${AWS::Region} =~ ^cn- ]] && BUCKET="s3.cn-north-1.amazonaws.com.cn/cn-north-1-aws-parallelcluster"
126
-
127
- OS='{{ build.OperatingSystemName.outputs.stdout }}'
128
-
129
- if [[ ${!OS} =~ ^(ubuntu2004)$ ]]; then
130
- echo "https://${!BUCKET}/cloudformation-examples/aws-cfn-bootstrap-py3-latest.tar.gz"
131
- else
132
- echo "https://${!BUCKET}/cloudformation-examples/aws-cfn-bootstrap-latest.tar.gz"
133
- fi
126
+ echo "https://${!BUCKET}/cloudformation-examples/aws-cfn-bootstrap-py3-latest.tar.gz"
134
127
135
128
# Get input base AMI Architecture
136
129
- name : OperatingSystemArchitecture
@@ -273,21 +266,8 @@ phases:
273
266
OS='{{ build.OperatingSystemName.outputs.stdout }}'
274
267
275
268
if [[ ${!OS} =~ ^(centos7|ubuntu(18|20)04)$ ]]; then
276
- if [[ ${!OS} == centos7 ]]; then
277
- which pip2
278
- if [ $? -eq 0 ]; then
279
- PIP_COMMAND="pip2"
280
- else
281
- PIP_COMMAND="pip"
282
- fi
283
- elif [[ ${!OS} == ubuntu1804 ]]; then
284
- PIP_COMMAND="pip"
285
- elif [[ ${!OS} == ubuntu2004 ]]; then
286
- PIP_COMMAND="pip3"
287
- fi
288
-
289
269
curl --retry 3 -L -o /tmp/aws-cfn-bootstrap-latest.tar.gz {{ build.CfnBootstrapUrl.outputs.stdout }}
290
- ${!PIP_COMMAND} install /tmp/aws-cfn-bootstrap-latest.tar.gz
270
+ pip3 install /tmp/aws-cfn-bootstrap-latest.tar.gz
291
271
fi
292
272
293
273
- name : CreateBootstrapFile
You can’t perform that action at this time.
0 commit comments