Skip to content

Commit 98ed239

Browse files
committed
Modify demo environment to work with multiple pcluster versions
1 parent 897b3a5 commit 98ed239

File tree

4 files changed

+1230
-5
lines changed

4 files changed

+1230
-5
lines changed

infrastructure/environments/demo-cfn-create-args.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Parameters:
33
- ParameterKey: AdminUserEmail
44
ParameterValue: [email protected]
55
- ParameterKey: Version
6-
ParameterValue: 3.12.0
6+
ParameterValue: 3.13.0,3.11.0
77
- ParameterKey: InfrastructureBucket
88
ParameterValue: BUCKET_URL_PLACEHOLDER
99
- ParameterKey: PublicEcrImageUri

infrastructure/environments/demo-cfn-update-args.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Parameters:
33
- ParameterKey: AdminUserEmail
44
UsePreviousValue: true
55
- ParameterKey: Version
6-
ParameterValue: 3.12.0
6+
ParameterValue: 3.12.0,3.11.0,3.9.0
77
- ParameterKey: InfrastructureBucket
88
ParameterValue: BUCKET_URL_PLACEHOLDER
99
- ParameterKey: PublicEcrImageUri

infrastructure/parallelcluster-ui.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Parameters:
3535
Version:
3636
Description: Version of AWS ParallelCluster to deploy.
3737
Type: String
38-
AllowedPattern: "^([0-9]+)\\.([0-9]+)\\.([0-9]+)$"
38+
AllowedPattern: "^([0-9]+)\\.([0-9]+)\\.([0-9]+)(,([0-9]+)\\.([0-9]+)\\.([0-9]+))*$"
3939
ConstraintDescription: Please specify a valid ParallelCluster version.
4040
ImageBuilderVpcId:
4141
Description: (Optional) Select the VPC to use for building the container images. If not selected, default VPC will be used.
@@ -318,7 +318,6 @@ Resources:
318318
except Exception as e:
319319
response_status = cfnresponse.FAILED
320320
reason = "Failed {}: {}".format(event["RequestType"], e)
321-
cfnresponse.send(event, context, response_status, response_data, reason)
322321

323322
Timeout: 300
324323
MemorySize: 128
@@ -691,7 +690,7 @@ Resources:
691690
PermissionsBoundary: !If [UsePermissionBoundary, !Ref PermissionsBoundaryPolicy, !Ref 'AWS::NoValue']
692691

693692
PrivateEcrRepository:
694-
DependsOn: ParallelClusterApi3120
693+
DependsOn: ApiVersionMap
695694
Type: AWS::ECR::Repository
696695
Properties:
697696
RepositoryName: !Sub

0 commit comments

Comments
 (0)