You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ref is used for references within the same stack, not for cross-stack references. The Ref function returns the value of a parameter or resource within the current template only. It cannot access resources from a different CloudFormation stack.
https://repost.aws/knowledge-center/cloudformation-no-export-found-error
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2080,8 +2080,8 @@ We are so thankful for every contribution, which makes sure we can deliver top-n
2080
2080
2081
2081
### A Developer is preparing a deployment package using AWS CloudFormation. The package consists of two separate templates: one for the infrastructure and one for the application. The application has to be inside the VPC that is created from the infrastructure template. How can the application stack refer to the VPC created from the infrastructure template?
2082
2082
2083
-
-[x] Use the Ref function to import the VPC into the application stack from the infrastructure template.
2084
-
-[] Use the export flag in the infrastructure template, and then use the `Fn::ImportValue` function in the application template.
2083
+
-[] Use the Ref function to import the VPC into the application stack from the infrastructure template.
2084
+
-[x] Use the export flag in the infrastructure template, and then use the `Fn::ImportValue` function in the application template.
2085
2085
-[ ] Use the `DependsOn` attribute to specify that the application instance depends on the VPC in the application template.
2086
2086
-[ ] Use the `Fn::GetAtt` function to include the attribute of the VPC in the application template.
0 commit comments