[core] StringParameter.valueFromLookup
should return a token as dummy value
#6153
Labels
@aws-cdk/aws-iam
Related to AWS Identity and Access Management
@aws-cdk/core
Related to core CDK functionality
bug
This issue is a bug.
closed-for-staleness
This issue was automatically closed because it hadn't received any attention in a while.
effort/small
Small work item – less than a day of effort
p2
❓ General Issue
The Question
I'm trying to re-use some resources from a different stack/app by having the 1st stack "publish" some ids/arns as ssm params, then the 2nd stack imports the resources by first getting their id values using
StringParameter.valueFromLookup
. This seems to work fine so far with, e.g.,Vpc.fromLookup
,Cluster.fromClusterAttributes
, but trying to do the same with an IAMRole
usingRole.fromRoleArn
fails becausefromRoleArn
expects a valid ARN and it's getting a placeholder, like 'dummy-value-blah-blah'.Environment
Other information
Here's a quick example to reproduce:
Bonus mystery!
If you comment out the
const role = ...
line, then runcdk synth
, then uncomment and run again... it works!The text was updated successfully, but these errors were encountered: