aws-cdk-github-actions icon indicating copy to clipboard operation
aws-cdk-github-actions copied to clipboard

Support for Bootstrap command

Open escarbor opened this issue 5 years ago • 2 comments

Are there any plans in supporting the cdk bootstrap command? Unlike most of the cdk cli commands, bootstrap expects an Environment as its argument rather than a Stack. Since this Action defaults by appending a * to the end of each command with the cdk_stack arg, it causes the execution to fail. Docs

Thanks!

escarbor avatar Jul 03 '20 18:07 escarbor

The failure I get is: No environments were found when selecting across ["*"]

jackchi avatar Dec 09 '20 10:12 jackchi

I think I found a workaround for now:

      - name: cdk bootstrap
        uses: youyo/aws-cdk-github-actions@v2
        with:
          cdk_subcommand: 'bootstrap'
          cdk_stack: 'aws://<account id>/<region>'

chardigio avatar Sep 18 '21 11:09 chardigio