Skip to content

Commit

Permalink
configure production CF distribution
Browse files Browse the repository at this point in the history
Co-authored-by: Ronard <[email protected]>
  • Loading branch information
copelco and ronardcaktus committed Jan 14, 2025
1 parent afbc723 commit e69c679
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion deploy/group_vars/cdn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ cloudformation_stack_template_bucket: 'aws-web-stacks-trafficstops'
cloudformation_stack_template_bucket_path: 'templates/cdn.yml'
cloudformation_stack_template_local_path: '{{ playbook_dir + "/stack/cloudfront.yml" }}'
cloudformation_stack_template_parameters:
AppCloudFrontCertArn: arn:aws:acm:us-east-1:606178775542:certificate/379950bb-4b29-4308-8418-122674fe1076
AppCloudFrontCertArn: arn:aws:acm:us-east-1:606178775542:certificate/5bcc16cb-7ca3-4277-8992-a4e20500cc0b
AppCloudFrontForwardedHeaders: "Host,Authorization"
DomainName: "{{ cloudfront_domain_name }}"
AppCloudFrontOriginDomainName: "{{ cloudfront_domain_name_origin }}"
Expand Down
2 changes: 1 addition & 1 deletion deploy/host_vars/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ k8s_ingress_tls_domains_extra:

env_contact_us_emails:
- [email protected]
env_cache_cloudfront_distribution_id: "" # TODO: Set this value once the CloudFront distribution is created
env_cache_cloudfront_distribution_id: "ERRFDXQVT6ZBM"

database_password: !vault |
$ANSIBLE_VAULT;1.1;AES256
Expand Down
8 changes: 5 additions & 3 deletions deploy/stack/cloudfront.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This Cloudformation stack template was generated by
# https://github.com/caktus/aws-web-stacks
# at 2024-11-21 16:16:24.698582
# at 2025-01-14 14:14:07.595026
# with parameters:
# USE_CLOUDFRONT = on

Expand Down Expand Up @@ -140,7 +140,10 @@ Resources:
DefaultTTL: 86400
MaxTTL: 31536000
MinTTL: 0
Name: AppCachePolicy
Name: !Join
- '-'
- - AppCachePolicy
- !Ref 'AWS::StackName'
ParametersInCacheKeyAndForwardedToOrigin:
CookiesConfig:
CookieBehavior: none
Expand Down Expand Up @@ -245,4 +248,3 @@ Resources:
Value: !Ref 'AWS::StackName'
ValidationMethod: !Ref 'CertificateValidationMethod'
Type: AWS::CertificateManager::Certificate

0 comments on commit e69c679

Please sign in to comment.