
Ultimate access to all questions.
Explanation:
CloudFormation prevents deletion of a stack if its exported values are imported by another stack using Fn::ImportValue. You must delete or update the consuming stack first.
The following template uses Outputs. What happens to the exported value when this stack is deleted?
Outputs:
VPCId:
Description: The VPC ID
Value: !Ref MyVPC
Export:
Name: !Sub '${AWS::StackName}-VPCID'
Outputs:
VPCId:
Description: The VPC ID
Value: !Ref MyVPC
Export:
Name: !Sub '${AWS::StackName}-VPCID'
A
The export is preserved in SSM Parameter Store automatically
B
Stack deletion fails if another stack imports this export
C
The exported value is deleted silently with no impact
D
CloudFormation moves the export to the default stack
No comments yet.