Closed Lux-CC closed 6 months 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?
@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
I am happy to inform you that this feature was added in v3.2.0. I'm hereby closing this issue.
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/
andspoke/
)What problems I'm running into?
package_transform
helper script is built to work in$CODEBUILD_SRC_DIR
and makes the use of theroot_dir: hub
option harder. Workaround: runCODEBUILD_SRC_DIR=$CODEBUILD_SRC_DIR/hub bash adf-build/helpers/package_transform.sh
insteadhub
and in thespoke
folder) to generate the params:CONTAINS_TRANSFORM
is set to true (seeadf_codepipeline.py
). Workaround: use the package transform twice even though not required.param_overrides
to pass parameters from the hub stage to spoke stages, you can only pass 1 parameter.param_overrides
does not work if you specify differentroot_dir
options in different stages. When zipping it includes theroot_dir
folder, but the next stage can't read that.Also, it's not documented that
template_filename
does't work when usingpackage_transform
. Happy to help on some of these issues, but I'm first curious to what your thoughts on this use-case is.