Skip to content

Add missing permissions #22

Add missing permissions

Add missing permissions #22

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