question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Document how to use stack parameters

See original GitHub issue

Every 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:closed
  • Created 5 years ago
  • Reactions:6
  • Comments:49 (23 by maintainers)

github_iconTop GitHub Comments

40reactions
Doug-AWScommented, Nov 19, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found