Skip to content

Commit a886324

Browse files
provide hosted zone id
1 parent 2b390cf commit a886324

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

cicd/3-app/aiproxy/config/production.config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"Parameters": {
3-
"BaseDomainName": "code.org"
3+
"BaseDomainName": "code.org",
4+
"BaseDomainNameHostedZonedID": "Z2LCOI49SCXUGU"
45
},
56
"Tags": {
67
"EnvType": "production"

cicd/3-app/aiproxy/config/test.config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"Parameters": {
3-
"BaseDomainName": "code.org"
3+
"BaseDomainName": "code.org",
4+
"BaseDomainNameHostedZonedID": "Z2LCOI49SCXUGU"
45
},
56
"Tags": {
67
"EnvType": "test"

cicd/3-app/aiproxy/template.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ Parameters:
55
BaseDomainName:
66
Type: String
77
Description: Base domain name (e.g. 'code.org' in 'aiproxy.code.org').
8+
BaseDomainNameHostedZonedID:
9+
Type: String
10+
Description: AWS Route53 Hosted Zone ID for base domain name.
811
SubdomainName:
912
Type: String
1013
Description: Subdomain name for aiproxy service (e.g. 'aiproxy' in 'aiproxy.code.org').
@@ -31,7 +34,7 @@ Resources:
3134
NSRecord:
3235
Type: AWS::Route53::RecordSet
3336
Properties:
34-
HostedZoneName: code.org
37+
HostedZoneId: !Ref BaseDomainNameHostedZonedID
3538
Name: !Sub "${SubdomainName}.${BaseDomainName}."
3639
Type: NS
3740
TTL: 300

0 commit comments

Comments
 (0)