Skip to content

Commit

Permalink
[QOLDEV-908] pass ELB DNS name via Parameter Store instead of hardcoding
Browse files Browse the repository at this point in the history
  • Loading branch information
ThrawnCA committed Jul 8, 2024
1 parent 70ab526 commit 20775eb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions templates/Datashades-OpsWorks-CKAN-Stack.cfn.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,13 @@ Resources:
HostedZoneId: !GetAtt CKANALB.CanonicalHostedZoneID
DNSName: !GetAtt CKANALB.DNSName

WebELBDNSNameParameter:
Type: AWS::SSM::Parameter
Properties:
Name: !Sub "/config/CKAN/${Environment}/app/${ApplicationId}/web_loadbalancer_dns_name"
Type: String
Value: !GetAtt CKANALB.DNSName

Outputs:
WebELBDNSName:
Value: !Ref WebELBDNSName
Expand Down
2 changes: 1 addition & 1 deletion vars/cloudfront.var.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ cloudformation_stacks:
template_jinja: "{{ template }}.j2"
template_parameters:
OriginReadTimeout: 180 #service increase requested, we now have 3 min wait available
WebOrigin: "{{ service_name_lower }}.{{ RootDomain }}"
WebOrigin: "{{ lookup('aws_ssm', '/config/CKAN/' + Environment + '/app/' + service_name_lower + '/web_loadbalancer_dns_name') }}"
CmsOrigin: "{{ CmsOrigin }}"
WebACLId: "{{ lookup('aws_ssm', '/config/CKAN/' + Environment + '/common/waf_acl_id', region='us-east-1') }}"
Environment: "{{ Environment }}"
Expand Down

0 comments on commit 20775eb

Please sign in to comment.