aws-genai-llm-chatbot icon indicating copy to clipboard operation
aws-genai-llm-chatbot copied to clipboard

how to run the deployment 'npx cdk deploy' without additional confirmation

Open alexeyshishkin01 opened this issue 1 year ago • 6 comments

Dear all,

I am trying to automate the deployment, but unfortunately even if I use 'npx cdk deploy --all --force' there's still a need for for confirmation: 'Do you wish to deploy these changes (y/n)?'

If there's a way to run the deployment without additional confirmation ?

best regards Alexey Shishkin

alexeyshishkin01 avatar Apr 05 '24 07:04 alexeyshishkin01

Try adding --method=direct

massi-ang avatar Apr 09 '24 10:04 massi-ang

according to the 'npx cdk deploy --help':

-m, --method How to perform the deployment. Direct is a bit faster but lacks progress information [string] [choices: "direct", "change-set", "prepare-change-set"]

it does not specify anything about confirmation, but OK, let me try ...

on the other hand: --all Deploy all available stacks [boolean] [default: false] -f, --force Always deploy stack even if templates are identical [boolean] [default: false]

they are supposed to work, but they did not

alexeyshishkin01 avatar Apr 09 '24 11:04 alexeyshishkin01

this is to confirm 'npx cdk deploy --method=direct' asks for confirmation as well

alexeyshishkin01 avatar Apr 09 '24 12:04 alexeyshishkin01

I forgot to mention to add --require-approval never. --all is not necessary since there is a single stack in this project. Do not use --force

massi-ang avatar Apr 10 '24 07:04 massi-ang

So, what is going to be the final suggestion from your side ?

Is it 'npx cdk deploy --method=direct --require-approval never' ?

alexeyshishkin01 avatar Apr 10 '24 10:04 alexeyshishkin01

this is to confirm the command 'npx cdk deploy --method=direct --require-approval never' does the job pls. update the documentation mentioning this command as a way to run deployment of the application non-interactively

alexeyshishkin01 avatar Apr 10 '24 18:04 alexeyshishkin01

This issue is stale because it has been open for 60 days with no activity.

github-actions[bot] avatar Jun 10 '24 01:06 github-actions[bot]

This issue was closed because it has been inactive for 30 days since being marked as stale.

github-actions[bot] avatar Jul 10 '24 01:07 github-actions[bot]