Skip to content
This repository has been archived by the owner on Apr 30, 2023. It is now read-only.

implement cdk deploy/synth context #62

Open
sgucciardi opened this issue Feb 15, 2023 · 1 comment
Open

implement cdk deploy/synth context #62

sgucciardi opened this issue Feb 15, 2023 · 1 comment

Comments

@sgucciardi
Copy link

Hi,
looking at the input you provide for the action, there is one that would be really nice to have:

-c, --context Add contextual string parameter (KEY=VALUE) [array]
When running a synth or a deploy or a destroy subcommand it would be nice to specify a context variable like:

cdk synth -c stage=production MyStack

Is it something easy to implement as a feature?

Thank you.

@jordangarrison
Copy link

@sgucciardi I think this is already supported via cdk_args?

      - name: CDK diff Github Actions
        uses: youyo/aws-cdk-github-actions@v2
        with:
          working_dir: 'cdk'
          cdk_subcommand: 'diff'
          cdk_stack: 'MyStack'
          cdk_args: --context=env=dev

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants