Skip to content

Commit

Permalink
fix: Install CDK directly
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysiekb committed Dec 28, 2023
1 parent 17f27fe commit 0f949be
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions .github/workflows/cdk-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,19 @@ jobs:
- name: Install Poetry
uses: abatilo/actions-poetry@v2

- name: Get requirements.txt from Poetry
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: '20.x'

- name: Install CDK
run: |
npm install -g aws-cdk
- name: Install dependencies
run: |
poetry export -f requirements.txt --output requirements.txt && cat requirements.txt
poetry export -f requirements.txt --output requirements.txt && \
pip install -r requirements.txt
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
Expand All @@ -34,9 +44,13 @@ jobs:
aws-region: ${{ vars.AWS_REGION }}

- name: Deploy Chatbot Vpc
uses: youyo/aws-cdk-github-actions@v2
with:
cdk_subcommand: deploy
cdk_stack: ChatbotVpcStack
cdk_args: "--require-approval never"
actions_comment: false
run: |
cdk deploy ChatbotVpcStack --require-approval never
# - name: Deploy Chatbot Vpc
# uses: youyo/aws-cdk-github-actions@v2
# with:
# cdk_subcommand: deploy
# cdk_stack: ChatbotVpcStack
# cdk_args: "--require-approval never"
# actions_comment: false

0 comments on commit 0f949be

Please sign in to comment.