-
Notifications
You must be signed in to change notification settings - Fork 11
51 lines (45 loc) · 1.29 KB
/
deploy-ci-stack.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Deploy CI CloudFormation stack
on:
push:
branches:
- main
paths:
- ci/**
concurrency:
group: ${{ github.workflow }}
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
strategy:
matrix:
include:
- region: us-east-1
stack: infrastructure-ci
- region: us-west-2
stack: infrastructure-ci
steps:
- uses: actions/checkout@v4
- uses: aws-actions/setup-sam@v2
with:
use-installer: true
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: ${{ matrix.region }}
role-to-assume: arn:aws:iam::561178107736:role/PRX-GHA-AccessRole
role-session-name: gha-deploy-ci
- name: Deploy CloudFormation stack
working-directory: ci
run: |
sam deploy \
--region ${{ matrix.region }} \
--no-confirm-changeset \
--no-fail-on-empty-changeset \
--stack-name "${{ matrix.stack }}" \
--resolve-s3 \
--s3-prefix "${{ matrix.stack }}" \
--capabilities CAPABILITY_IAM \
--role-arn arn:aws:iam::561178107736:role/PRX-GHA-ServiceRoleForCloudFormation