Skip to content

Deploy With CDK

Deploy With CDK #4

Workflow file for this run

name: Deploy With CDK
on:
workflow_dispatch:
permissions:
contents: read
id-token: write
concurrency:
group: deploy
cancel-in-progress: false
jobs:
run-cdk-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.ASSUME_ROLE }}
aws-region: us-west-2
role-duration-seconds: 900
- uses: actions/setup-node@v4
with:
node-version: 16
- name: Get npm cache directory
id: npm-cache-dir
run: |
echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
id: npm-cache
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: npm install
run: |
npm install
- name: run cdk deploy
run: |
npm run deploy