Skip to content

Commit d6cc1ab

Browse files
PYIC-8099 Fix dev-specific cloudformation (#3144)
2 parents 8131ab7 + d87b637 commit d6cc1ab

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

journey-map/deploy/template.yaml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ Resources:
6262
- !ImportValue Dev02StubsHostedZoneId
6363
- !If
6464
- IsProduction
65-
- RootPublicHostedZoneId
66-
- BuildPublicHostedZoneId
65+
- !ImportValue RootPublicHostedZoneId
66+
- !ImportValue BuildPublicHostedZoneId
6767
ValidationMethod: DNS
6868

6969
# api domain entries / mapping
@@ -99,9 +99,15 @@ Resources:
9999
Type: A
100100
Name: !Ref JourneyMapApiDomain
101101
HostedZoneId: !If
102-
- IsDev01
103-
- !ImportValue Dev01StubsHostedZoneId
104-
- !ImportValue Dev02StubsHostedZoneId
102+
- IsDevelopment
103+
- !If
104+
- IsDev01
105+
- !ImportValue Dev01StubsHostedZoneId
106+
- !ImportValue Dev02StubsHostedZoneId
107+
- !If
108+
- IsProduction
109+
- !ImportValue RootPublicHostedZoneId
110+
- !ImportValue BuildPublicHostedZoneId
105111
AliasTarget:
106112
DNSName: !GetAtt JourneyMapApiDomain.RegionalDomainName
107113
HostedZoneId: !GetAtt JourneyMapApiDomain.RegionalHostedZoneId

0 commit comments

Comments
 (0)