Skip to content

When to use Environment Vars vs CfnParameter? #833

Discussion options

You must be logged in to vote

Using CloudFormation parameters in CDK is usually discouraged, but it really depends on your use case.

E.g.:

  • Are you using CDK to generate parameterizable templates that are later used by other people to feed them directly into CloudFormation? This might be a valid use case for CfnParameters.
  • If not, you might be better off using environment variables or CDK context.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@Nikola-Milovic
Comment options

@chrisandrewcl
Comment options

@Nikola-Milovic
Comment options

Answer selected by Nikola-Milovic
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants