awslabs / aws-deployment-framework

The AWS Deployment Framework (ADF) is an extensive and flexible framework to manage and deploy resources across multiple AWS accounts and regions based on AWS Organizations.
Apache License 2.0
668 stars 225 forks source link

Improve single-repo hub-spoke deployment experience #327

Closed Lux-CC closed 6 months ago

Lux-CC commented 3 years ago

This issue is a combines some of the issues I've experienced recently when trying to deploy two different stacks from the same repo in a single pipeline for an enterprise customer.

What am I trying to achieve? I'm trying to deploy a hub-spoke-like template in which I first deploy a stack to a 'hub' account (for example for a centralized mailing solution). Then, based on the outputs of that first stack (i.e. a secret ARN), deploy some basic resources to all other accounts in the organization. I usually have these two templates and parameters in different folders of that repository (for example hub/ and spoke/)

What problems I'm running into?

Also, it's not documented that template_filename does't work when using package_transform. Happy to help on some of these issues, but I'm first curious to what your thoughts on this use-case is.

Lux-CC commented 3 years ago

Since it's been almost a month now without any reply and this is still an active problem for us, I was wondering if there are any plans at all on picking up the issue? Or what are your thoughts on hub-spoke deployments with ADF?

csmuthukuda commented 3 years ago

@LRuttenCN I faced exactly the same issue..we have 2 different stacks in the same repo and we need to deploy them with in the same pipeline and only one of them have SAM..thank you for bringing this up and currently I'm trying to follow the workarounds you mentioned but still want to know if this is the best way to do this..fingers crossed

sbkok commented 6 months ago

I am happy to inform you that this feature was added in v3.2.0. I'm hereby closing this issue.