Skip to content

Update deploy.yaml #427

Update deploy.yaml

Update deploy.yaml #427

Workflow file for this run

name: Verify and Deploy
on: [push]
jobs:
verify-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Go SPA
uses: bitovi/github-actions-deploy-static-site-to-aws@fix-cdn-name
with:
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID_SANDBOX}}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY_SANDBOX}}
aws_default_region: us-east-1
tf_action: 'apply'
tf_state_bucket_destroy: true
#aws_resource_identifier: bitovi-devops-training-ec2-gha-example-static-site
aws_site_cdn_enabled: true
#aws_site_cdn_custom_error_codes: '{error_caching_min_ttl:"0",error_code:"403",response_code:"200",response_page_path:"/custom_404.html"}'
aws_site_cdn_custom_error_codes: '[{\"error_caching_min_ttl\":\"0\",\"error_code\":\"403\",\"response_code\":\"200\",\"response_page_path\":\"/index.html\"},{\"error_caching_min_ttl\":\"0\",\"error_code\":\"404\",\"response_code\":\"200\",\"response_page_path\":\"/index.html\"}]'
# You should own and have this domain available in R53
aws_r53_domain_name: bitovi-sandbox.com
aws_r53_sub_domain_name: static-site
aws_r53_create_sub_cert: true # Will create and validate a cert for this sub-domain