From 0f949bef9a892553882cfe8d814ca10fe50d6d9e Mon Sep 17 00:00:00 2001 From: Krzysztof Banasiak Date: Thu, 28 Dec 2023 12:24:28 +0100 Subject: [PATCH] fix: Install CDK directly --- .github/workflows/cdk-deploy.yaml | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/.github/workflows/cdk-deploy.yaml b/.github/workflows/cdk-deploy.yaml index 86b2e1b..b2269a9 100644 --- a/.github/workflows/cdk-deploy.yaml +++ b/.github/workflows/cdk-deploy.yaml @@ -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 @@ -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