1 Answer
- Newest
- Most votes
- Most comments
1
If you are deploying the CFN templates manually, then you can have the parameter as a default value initially and then update it after the second stack is deployed...
Something like this:
Parameters:
BucketARN:
Type: String
Description: The ARN of the S3 bucket
Default: "arn:aws:s3:::example-bucket" # Default or placeholder ARN
Then after second stack is deployed, you can just replace the parameter with !ImportValue
and remove this particular parameter
answered 2 months ago
Relevant content
- asked 5 years ago
- Accepted Answerasked a year ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 2 months ago
Thanks for your suggestion Landerson. The solution i found somewhat similar to your answer. Here https://aws.amazon.com/blogs/infrastructure-and-automation/handling-circular-dependency-errors-in-aws-cloudformation/ under "Complex circular dependency example"