Skip to content

Sync CloudFormation templates #6

Sync CloudFormation templates

Sync CloudFormation templates #6

Workflow file for this run

name: Sync CloudFormation templates
on:
workflow_dispatch:
jobs:
sync_templates:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Configure AWS
uses: aws-actions/configure-aws-credentials@v4
with:
audience: sts.amazonaws.com
aws-region: ${{ secrets.AWS_REGION }}
role-to-assume: ${{ secrets.AWS_GA_ROLE }}
- name: Sync bucket
env:
SOURCE_DIR: aws/eks
DEST_DIR: ekstest
EXCLUDE_PATTERN: aws/eks/html
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
AWS_REGION: ${{ secrets.AWS_REGION }}
run: |
aws s3 sync ${SOURCE_DIR} s3://${AWS_S3_BUCKET}/${DEST_DIR} --exclude ${EXCLUDE_PATTERN} --no-progress