Skip to content

Commit 5494fb1

Browse files
committed
update template.yaml
1 parent 02b95d9 commit 5494fb1

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

deploy/template.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@ Parameters:
3939
Description: Asserts that lambdas are signed when deployed.
4040
Default: "none"
4141

42+
CRIPrivateApiGatewayId:
43+
Type: String
44+
Default: "check-hmrc-cri-api-PrivateApiGatewayId"
45+
46+
ContainerImageName:
47+
Type: String
48+
Default: "CONTAINER-IMAGE-PLACEHOLDER"
49+
4250
DeploymentStrategy:
4351
Description: "Predefined deployment configuration for ECS application"
4452
Type: String
@@ -422,14 +430,14 @@ Resources:
422430
Properties:
423431
ContainerDefinitions:
424432
- Essential: true
425-
Image: CONTAINER-IMAGE-PLACEHOLDER
433+
Image: !Sub ${ContainerImageName}
426434
Name: app
427435
Environment:
428436
- Name: API_BASE_URL
429437
Value: !Sub
430438
- "https://${APIGatewayId}-${VpceId}.execute-api.${AWS::Region}.amazonaws.com/${Environment}"
431439
- APIGatewayId:
432-
Fn::ImportValue: check-hmrc-cri-api-PrivateApiGatewayId
440+
Fn::ImportValue: !Ref CRIPrivateApiGatewayId
433441
VpceId:
434442
Fn::ImportValue: cri-vpc-ExecuteApiGatewayEndpointId
435443
Environment: !Ref Environment

0 commit comments

Comments
 (0)