Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion samcli/lib/providers/sam_stack_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,14 @@ def _convert_cfn_stack_resource(
resource_properties: Dict,
global_parameter_overrides: Optional[Dict] = None,
) -> Optional[Stack]:
template_url = resource_properties.get("TemplateURL", "")
template_url = resource_properties.get("TemplateURL")

if isinstance(template_url, dict):
# This happens when TemplateURL has unresolvable intrinsic functions
# and it usually happens in CDK generated template files (#2832).
Copy link
Contributor

@hawflau hawflau May 13, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wondering if we can show a message to tell customers to try sam-beta-cdk (link).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would that solve this problem?

raise RemoteStackLocationNotSupported()

template_url = cast(str, template_url)
if SamLocalStackProvider.is_remote_url(template_url):
raise RemoteStackLocationNotSupported()
if template_url.startswith("file://"):
Expand Down