aws-cloudformation / cloudformation-coverage-roadmap

The AWS CloudFormation Public Coverage Roadmap
https://aws.amazon.com/cloudformation/
Creative Commons Attribution Share Alike 4.0 International
1.1k stars 53 forks source link

CloudFormation Git sync - Nested stacks #1898

Open mbollemeijer opened 6 months ago

mbollemeijer commented 6 months ago

Name of the resource

AWS::CloudFormation::Stack

Resource Name

No response

Issue Description

We have enabled CloudFormation Git sync on our root template.

Layout

Ofcourse there are more files in this repo but that is not important for this example

The ecs.yaml is included via nested stack from root.yaml

Expected Behavior

When ecs.yml changes and is pushed to the monitored branch I expect that this file will be processed by Cloudformation to change resources.

Observed Behavior

Test Cases

Other Details

This was on already existing stack

mbollemeijer commented 6 months ago

I think that the main issue here is the following.

Nested stacks only support pointing to an S3 bucket via TemplateURL. When you use Git to sync the repository, you should be able to point to a local path inside of this repo relative to the root template.

Can we change TemplateURL to allow releative path ?