-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (44 loc) · 1.26 KB
/
deploy.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
52
name: Deploy application
on:
push:
branches:
- main
paths:
- template.yml
- package.json
- yarn.lock
- src/**
concurrency:
group: ${{ github.workflow }}
permissions:
id-token: write
contents: read
jobs:
check-project-std:
uses: ./.github/workflows/check-project-std.yml
deploy-application:
runs-on: ubuntu-latest
needs: [check-project-std]
steps:
- uses: actions/checkout@v4
- uses: aws-actions/setup-sam@v2
with:
use-installer: true
- uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-east-2
role-to-assume: arn:aws:iam::578003269847:role/PRX-GHA-AccessRole
role-session-name: gha-deploy-cloudwatch-toolkit
- name: Deploy CloudFormation stack
run: |
rm samconfig.toml
sam build && sam deploy \
--region us-east-2 \
--no-confirm-changeset \
--no-fail-on-empty-changeset \
--stack-name cloudwatch-toolkit \
--resolve-s3 \
--no-progressbar \
--s3-prefix cloudwatch-toolkit \
--capabilities CAPABILITY_IAM \
--role-arn arn:aws:iam::578003269847:role/PRX-GHA-ServiceRoleForCloudFormation