Open shantgup opened 2 years ago
I get the same TemplateURL must be a supported URL
error when a the TemplateURL
includes a reference to a stack ouput. For example:
TemplateURL: !Sub ${SomeStack.SomeStackOuput}/buckets.yml
I'm assuming here that the issue is related to stack outputs, and not simply an issue with !GetAtt
, but I have not confirmed that.
Name of the resource
AWS::CloudFormation::Stack
Resource Name
No response
Issue Description
Using
Fn::Import
in template when creating a ChangeSet withIncludeNestedStacks
set toTrue
gives error "TemplateURL must be a supported URL."See template below.
This also fails when trying to use
Fn::ImportValue
underFn::Join
.I suspect that the
IncludeNestedStacks
feature when creating changesets does not work withFn::ImportValue
. Because if I specifyIncludeNestedStacks
to false, the error goes away.Removing
Fn::ImportValue
also fixes this issue.Expected Behavior
It should not fail.
Observed Behavior
It fails with the error
TemplateURL must be a supported URL.
Test Cases
Create a changeset with a template that has an
AWS::CloudFormation::Stack
resource, with TemplateURL using Fn::ImportValue, like the above example.Other Details
No response