-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (32 loc) · 1000 Bytes
/
sam-deploy.yaml
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
on:
push:
branches:
- staging
jobs:
build-deploy:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-python@v2
- uses: aws-actions/setup-sam@v1
with:
version: 1.112.0
- uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::736414281642:role/LambdaDeployGithubActionRole
aws-region: ap-south-1
audience: sts.amazonaws.com
role-session-name: lambda-deploy
# sam build
- run: sam build
- run: sam deploy --config-file samconfig.toml --config-env staging --region ap-south-1 --stack-name sc-platform-pii-lambda-staging --no-confirm-changeset --no-fail-on-empty-changeset --debug
env:
SAM_CLI_TELEMETRY: 0