-
Notifications
You must be signed in to change notification settings - Fork 3
44 lines (37 loc) · 1.07 KB
/
bootstrap-cdk.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
name: Bootstrap AWS CDK
on:
workflow_dispatch:
inputs:
environment:
description: 'Environment to bootstrap'
required: true
default: 'dev'
type: choice
options:
- dev
push:
paths:
- '.github/workflows/bootstrap-cdk.yml'
permissions:
id-token: write
jobs:
bootstrap-cdk:
environment: ${{ inputs.environment }}
runs-on: ubuntu-20.04
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Setup env
uses: ./.github/actions/setup_env
- name: Get AWS credentials
uses: Enterprise-CMCS/managed-care-review/.github/actions/get_aws_credentials@mt-awscdk-migrate-ui
with:
region: ${{ vars.AWS_DEFAULT_REGION }}
account-id: ${{ secrets.DEV_AWS_ACCOUNT_ID }}
stage-name: main
- name: Bootstrap CDK
run: |
pushd infrastructure/cdk && \
pnpm install && pnpm build && \
pnpm dlx cdk bootstrap \
aws://${{ secrets.aws_account_id }}/${{ vars.AWS_DEFAULT_REGION }}