Add missing permissions #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy AWS management CD pipeline CloudFormation stack | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- devops/aws-management-cd-pipeline.yml | |
concurrency: | |
group: ${{ github.workflow }} | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v2 | |
with: | |
aws-region: us-east-2 | |
role-to-assume: arn:aws:iam::048723829744:role/DevOps-GitHubOidcFederatedRole | |
role-session-name: GitHubActions-DeployAwsManagementCdPipelineStack | |
- name: Deploy CloudFormation stack | |
working-directory: devops | |
run: | | |
aws cloudformation deploy --region us-east-2 --stack-name management-cd --template-file aws-management-cd-pipeline.yml --capabilities CAPABILITY_NAMED_IAM CAPABILITY_AUTO_EXPAND --no-fail-on-empty-changeset |