Skip to content

Publish CloudFormation templates to AWS S3 #6

Publish CloudFormation templates to AWS S3

Publish CloudFormation templates to AWS S3 #6

name: Publish CloudFormation templates to AWS S3
on:
push:
branches:
- main
paths:
- './packages/artillery/lib/platform/aws/iam-cf-templates/**'
workflow_dispatch:
jobs:
put-cloudformation-templates:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
env:
SHOW_STACK_TRACE: true
with:
aws-region: us-east-1
role-to-assume: ${{ secrets.AWS_TEST_EXECUTION_ROLE_ARN_TEST5 }}
role-session-name: OIDCSession
mask-aws-account-id: true
- name: Update IAM CloudFormation templates
run: aws s3 sync ./packages/artillery/lib/platform/aws/iam-cf-templates/ s3://artillery-cf-templates/ --delete