1 Answer
- Newest
- Most votes
- Most comments
0
You export with a name like this;
Name: !Sub "${AWS::StackName}-SecurityGroupID"
But you import it with name like this:
Fn::ImportValue !Sub "${sg-new}-MyInstanceSecurityGroup
I'm not sure where ${sg-new}
comes from, but the last part should match the name you exported, -SecurityGroupID
, not the logical name from the first template.
Relevant content
- Accepted Answerasked 5 years ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago