-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(cli): deploy stack with --parameters option specifying stack is ignored (MyStack:Parameter="Value") #12759
Comments
To me, this feels like it should be a warning instead of an error. |
Huh? For me I think it should work as described in the documentation. Even nowing parameters are somehow deprecated, it is the only way getting secrets into custom resources. |
Hi, I'm getting this also. I am building a parameters argument and passing it to the CLI in Github actions. I get the error "CdkStack failed: Error: The following CloudFormation Parameters are missing a value: uploadbucketname" |
This issue has not received any attention in 1 year. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
still not fixed? |
Any updates on this? I'm having the same problem. |
For anyone else experiencing this issue, the problem is the documentation isn't very clear. The stack name is the value in |
Any updates on this? I'm having the same problem. |
It appears that the reported issue has been resolved. The version in use, which is v1, is deprecated. I conducted tests on the feature utilizing version v2.138.0. During testing, I replicated the scenario by creating multiple stacks, with only one stack necessitating parameters. Subsequently, I executed the deployment of all stacks using the command |
|
I have recreated a similar scenario comprising multiple stacks, with one stack necessitating parameters that can be passed on during the deployment. Steps taken to check if the issue works:
Of the list of the stacks displayed above Running Running Also, tested the feature with hierarchal structure and works successfully. Steps taken to check if it works:
Running Running Also tested it using the As per the request it seems like we can deploy all stacks passing in parameters for specific stacks. Environment @markussiebert Can you please specify if the issue exists on your end? |
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
@nickyshankar @tdluk Hello, I'm checking to see if the issue still persists on your end? Can anyone please confirm if the issue persists and also if you could please specify the environment it would be helpful. |
Works fine for me. My problem was I was using the stack's construct ID instead of the stack name. This comment made things clear for me -> #12759 (comment) |
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
We've updated our documentation to provide clarification on this issue. For more information, see Deploying with parameters in the AWS CDK Developer Guide. |
When using the cdk deploy option
cdk deploy '*' --parameters MyStack:MyParam=MyValue
the parameter will be ignored.Reproduction Steps
cdk deploy '*' --parameters MyParam=MyValue
will fail, because only one stack needs the parameter:Parameters: [MyParam] do not exist in the template
cdk deploy '*' --parameters MyStack:MyParam=MyValue
will fail, because the stack needing the parameter says:The following CloudFormation Parameters are missing a value: MyParam
What did you expect to happen?
I expected that cdk can handle passing a parameter to only one stack. This behaviour is described here: https://docs.aws.amazon.com/cdk/latest/guide/parameters.html
What actually happened?
you can only pass parameters to all, or no stack
Environment
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: