Skip to content

Commit e69c679

Browse files
copelcoronardcaktus
andcommittedJan 14, 2025··
configure production CF distribution
Co-authored-by: Ronard <ronardcaktus@users.noreply.github.com>
1 parent afbc723 commit e69c679

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed
 

‎deploy/group_vars/cdn.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ cloudformation_stack_template_bucket: 'aws-web-stacks-trafficstops'
99
cloudformation_stack_template_bucket_path: 'templates/cdn.yml'
1010
cloudformation_stack_template_local_path: '{{ playbook_dir + "/stack/cloudfront.yml" }}'
1111
cloudformation_stack_template_parameters:
12-
AppCloudFrontCertArn: arn:aws:acm:us-east-1:606178775542:certificate/379950bb-4b29-4308-8418-122674fe1076
12+
AppCloudFrontCertArn: arn:aws:acm:us-east-1:606178775542:certificate/5bcc16cb-7ca3-4277-8992-a4e20500cc0b
1313
AppCloudFrontForwardedHeaders: "Host,Authorization"
1414
DomainName: "{{ cloudfront_domain_name }}"
1515
AppCloudFrontOriginDomainName: "{{ cloudfront_domain_name_origin }}"

‎deploy/host_vars/production.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ k8s_ingress_tls_domains_extra:
1111

1212
env_contact_us_emails:
1313
- wcarpenter@forwardjustice.org
14-
env_cache_cloudfront_distribution_id: "" # TODO: Set this value once the CloudFront distribution is created
14+
env_cache_cloudfront_distribution_id: "ERRFDXQVT6ZBM"
1515

1616
database_password: !vault |
1717
$ANSIBLE_VAULT;1.1;AES256

‎deploy/stack/cloudfront.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This Cloudformation stack template was generated by
22
# https://github.com/caktus/aws-web-stacks
3-
# at 2024-11-21 16:16:24.698582
3+
# at 2025-01-14 14:14:07.595026
44
# with parameters:
55
# USE_CLOUDFRONT = on
66

@@ -140,7 +140,10 @@ Resources:
140140
DefaultTTL: 86400
141141
MaxTTL: 31536000
142142
MinTTL: 0
143-
Name: AppCachePolicy
143+
Name: !Join
144+
- '-'
145+
- - AppCachePolicy
146+
- !Ref 'AWS::StackName'
144147
ParametersInCacheKeyAndForwardedToOrigin:
145148
CookiesConfig:
146149
CookieBehavior: none
@@ -245,4 +248,3 @@ Resources:
245248
Value: !Ref 'AWS::StackName'
246249
ValidationMethod: !Ref 'CertificateValidationMethod'
247250
Type: AWS::CertificateManager::Certificate
248-

0 commit comments

Comments
 (0)
Please sign in to comment.