-
-
Notifications
You must be signed in to change notification settings - Fork 7
36 lines (35 loc) · 1.03 KB
/
cdk-deploy-test.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
# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".
name: cdk-deploy-test
on:
push:
branches:
- main
workflow_dispatch: {}
jobs:
deploy:
name: Deploy CDK stacks to test AWS account
runs-on: ubuntu-latest
permissions:
actions: write
contents: read
id-token: write
environment: test
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup nodejs environment
uses: actions/setup-node@v4
with:
node-version: ">=20.18.1"
cache: npm
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::987654321012:role/GitHubActionsServiceRole
aws-region: us-east-1
- name: Install dependencies
run: npm ci
- name: Run CDK synth for the TEST environment
run: npm run test:synth
- name: Deploy CDK to the TEST environment on AWS account 987654321012
run: npm run test:deploy