When templating path sections via {{ stack_group_path.0 }}
instead of getting the first item of the path, I get the first char of the path.
i.e if I use stack_group_path.0 and my path is dev/ap-southeast-1, I get back d instead of dev.
Tested on 2.0.1 with py3.6 & py3.7
Seems this has changed indeed to be a string rather than a list (split by /), I don't think it was intentional but I'll check with @ngfgrant
cheers. it's not reflected in the docs so I assumed the behaviour was the same as 1.x.
Hi @m1keil
Apologies this should have been updated in the docs and migration guide to say use ‘command_path’ rather than ‘stack_group_path’. I’ll update any docs that are wrong. Can you see if using command_path gets you your desired result?
@m1keil - turns out the docs site needed published and the CloudFront cache invalidated. The docs should now reflect what is required for this to work. Let me know how you get on :)
@ngfgrant @nabeelamjad thanks for the quick response. Yep, that did the trick.
Just have one more quick question regarding 1.x vs 2.x changes: migration guide says stack_tags is now tags but documentation still showing stack_tags as the correct option. Is this an error in the migration guide?
Regardless, going to close this one.
This was unfortunately an oversight, it was meant to be tags but didn't. You can safely stick with stack_tags and that'll stay for this version of Sceptre. We'll update the documentation after we make a decision on how to handle this (i.e. use just stack_tags or both tags and stack_tags for the same thing)
Most helpful comment
This was unfortunately an oversight, it was meant to be
tagsbut didn't. You can safely stick withstack_tagsand that'll stay for this version of Sceptre. We'll update the documentation after we make a decision on how to handle this (i.e. use juststack_tagsor bothtagsandstack_tagsfor the same thing)