Document how to use stack parameters
See original GitHub issueEvery example stack that I’ve seen so far in the documentation has no Parameters. I found the @aws-cdk/core
documentation for the Parameter class itself, and got it to work in my stack (shows up in cdk synth
output). Now, I don’t know how to convey values for the parameters through cdk deploy
.
❯ AWS_REGION=us-east-1 cdk deploy --GitSha abc
⏳ Starting deployment of stack hello-cdk...
❌ Deployment of stack hello-cdk failed: ValidationError: Parameters: [GitSha] must have values
Parameters: [GitSha] must have values
p.s. I also don’t know where the hello-cdk
name is coming from. I assume from the skeleton setup in cdk init
?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:6
- Comments:49 (23 by maintainers)
Top Results From Across the Web
Specifying stack name and parameters - AWS CloudFormation
In the Parameters section, specify parameters that are defined in the stack template. You can use or change any parameters with default values....
Read more >create-stack — AWS CLI 2.9.9 Command Reference
A list of Parameter structures that specify input parameters for the stack. For more information, see the Parameter data type. (structure). The Parameter...
Read more >Provision with the CloudFormation Create Stack Step
You can use CloudFormation parameters files to specify input parameters for the stack. This is the same as using the AWS CloudFormation ...
Read more >Stack Config — Sceptre 3.2.0 documentation
Configuration for a template handler. Template handlers can take in parameters and resolve that to a CloudFormation template. This enables you to not...
Read more >Variables - Serverless Framework
To reference parameters, use the ${param:XXX} syntax in serverless.yml . ... CloudFormation stack output values as the source of your variables to use...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
We have a section in the docs about passing in data:
https://awslabs.github.io/aws-cdk/passing-in-data.html
Feel free to re-open this issue if the docs do not satisfy your needs.
See https://docs.aws.amazon.com/CDK/latest/guide/passing_secrets_manager.html.