Open stilren opened 4 years ago
I think we need to use a interactive session by passing the "-it" flag in the docker run command but I am not in a position to test this atm.
I face the same issue, too.
Same for us.
Anyone found a workaround? Like this it's not possible to deploy from GH actions...
workaround: change this:
cdk_subcommand: "deploy"
args: "--require-approval never"
to this:
cdk_subcommand: "deploy --require-approval never"
this works because the subcommand parameter is not quoted in the entrypoint script so the shell will split it on spaces.
i think it indicates that the problem lies with passing in the "*" parameters to the script rather than with require-approval itself.
This can also be solved by setting the flag in your cdk.json
file, for example:
{ "app": "python3 app.py", "requireApproval": "never", "context": {...} }
workaround: change this:
cdk_subcommand: "deploy" args: "--require-approval never"
to this:
cdk_subcommand: "deploy --require-approval never"
this works because the subcommand parameter is not quoted in the entrypoint script so the shell will split it on spaces.
i think it indicates that the problem lies with passing in the "*" parameters to the script rather than with require-approval itself.
This works for me. Thanks!
Having the same issue with:
yes | cdk deploy
--app "npx ts-node bin/stack.ts"
--required-approval never
--profile profile
--context account=account
--context region=region
cdk.json
(plus, I have multiple apps so they need to be specified in the cmd)cdk.json
: "requireApproval": "never",
but in the future I might not want this key enabled for all the apps...
Hello and thanks for this action.
I am deploying a project with two stacks (probably not relevant) and I am getting the following
and
Here is the action: