Skip to content

Commit

Permalink
[DCMAW-11018] Update Regional Certificate ARNs to point at new certs
Browse files Browse the repository at this point in the history
  • Loading branch information
kikidawson-gds committed Jan 20, 2025
1 parent fbc7e33 commit 0a79abd
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
15 changes: 13 additions & 2 deletions backend-api/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,10 @@ Conditions:
- !Ref DevOverrideStsBaseUrl
- none

UseWildcardCertificate: !And
- !Equals [!Ref Environment, dev]
- !Not [!Equals [!Ref AWS::StackName, mob-async-backend]]

DeployAlarms: !Or
- !Not
- !Equals
Expand Down Expand Up @@ -659,7 +663,11 @@ Resources:
EndpointConfiguration:
Types:
- REGIONAL
RegionalCertificateArn: !Sub '{{resolve:ssm:/${Environment}/Platform/ACM/AsyncPrimaryZoneWildcardCertificateARN}}'
RegionalCertificateArn: !If
- UseWildcardCertificate
- !Sub '{{resolve:ssm:/${Environment}/Platform/ACM/AsyncPrimaryZoneWildcardCertificateV1ARN}}'
- !Sub '{{resolve:ssm:/${Environment}/Platform/ACM/AsyncPrimaryZoneProxyCertificateV1ARN}}'

SecurityPolicy: TLS_1_2
Condition: ProxyApiDeployment

Expand Down Expand Up @@ -880,7 +888,10 @@ Resources:
EndpointConfiguration:
Types:
- REGIONAL
RegionalCertificateArn: !Sub '{{resolve:ssm:/${Environment}/Platform/ACM/AsyncPrimaryZoneWildcardCertificateARN}}'
RegionalCertificateArn: !If
- UseWildcardCertificate
- !Sub '{{resolve:ssm:/${Environment}/Platform/ACM/AsyncPrimaryZoneWildcardCertificateV1ARN}}'
- !Sub '{{resolve:ssm:/${Environment}/Platform/ACM/AsyncPrimaryZoneSessionsCertificateV1ARN}}'
SecurityPolicy: TLS_1_2

SessionsApiBasePathMapping:
Expand Down
9 changes: 8 additions & 1 deletion sts-mock/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ Conditions:
- !Ref DevOverrideAsyncBackendBaseUrl
- none

UseWildcardCertificate: !And
- !Equals [!Ref Environment, dev]
- !Not [!Equals [!Ref AWS::StackName, mob-sts-mock]]

Resources:
StsMockApi:
Type: AWS::Serverless::Api
Expand Down Expand Up @@ -119,7 +123,10 @@ Resources:
EndpointConfiguration:
Types:
- REGIONAL
RegionalCertificateArn: !Sub '{{resolve:ssm:/${Environment}/Platform/ACM/AsyncPrimaryZoneWildcardCertificateARN}}'
RegionalCertificateArn: !If
- UseWildcardCertificate
- !Sub '{{resolve:ssm:/${Environment}/Platform/ACM/AsyncPrimaryZoneWildcardCertificateV1ARN}}'
- !Sub '{{resolve:ssm:/${Environment}/Platform/ACM/AsyncPrimaryZoneStsMockCertificateV1ARN}}'
SecurityPolicy: TLS_1_2

StsMockApiBasePathMapping:
Expand Down

0 comments on commit 0a79abd

Please sign in to comment.