Skip to content
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

StringParameter.valueFromLookup doesnt work as expected on first synth #7477

Closed
amwill04 opened this issue Apr 21, 2020 · 1 comment
Closed
Labels
@aws-cdk/aws-ssm Related to AWS Systems Manager closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. documentation This is a problem with documentation. effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p1

Comments

@amwill04
Copy link

amwill04 commented Apr 21, 2020

Using StringParameter.valueFromLookUp doesn't work as you might expect - on the first run at least when the context has no value.

link to reference doc page: https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-ssm.StringParameter.html

Given the following:

const value = StringParameter.valueFromLookup(...)

// you are unable to run any code against it e.g.

if (value === 'foo') {
 // do something
}

on the first synth (and any subsequent refreshes) the value will have the string dummy-value..., or something to that effect.

Receiving the value at synth rather than deployment you would expect the value to be resolved and therefore available.


This is a 📕 documentation issue

@amwill04 amwill04 added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Apr 21, 2020
@SomayaB SomayaB added @aws-cdk/aws-ssm Related to AWS Systems Manager documentation This is a problem with documentation. labels Apr 22, 2020
@MrArnoldPalmer MrArnoldPalmer added effort/medium Medium work item – several days of effort and removed needs-triage This issue or PR still needs to be triaged. labels May 4, 2020
@MrArnoldPalmer MrArnoldPalmer removed their assignment Jun 21, 2021
@github-actions
Copy link

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.

@github-actions github-actions bot added closing-soon This issue will automatically close in 4 days unless further comments are made. closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. and removed closing-soon This issue will automatically close in 4 days unless further comments are made. labels Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-ssm Related to AWS Systems Manager closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. documentation This is a problem with documentation. effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p1
Projects
None yet
Development

No branches or pull requests

3 participants