Replies: 10 comments
-
Probably need to use a CusomResolver for this unless there are any jinja tricks @1oglop1 ? |
Beta Was this translation helpful? Give feedback.
-
No, you are right. This is the reason we developed SmartJoin resolver. I'm thinking of creating a new repo/s under Sceptre org. Then maintain it as a whole set instead micro packages for each resolver which has under 100 lines of code. The repo could also serve as a best practice example instead of current brief example in docs which is a bit misleading for the newcomers to sceptre and python. Or implement support for custom jinja filters to give advanced users more flexibility. |
Beta Was this translation helpful? Give feedback.
-
@1oglop1 Yeh that is definitely one of the benefits that the new org will bring us. At the moment there are some empty hooks/resolver template repos which I still need to push some local code to. Cloning them will give you everything you need just to write you resolver/hook code and push the build and deploy will be handled for you. If you are able to even push what you have to the new org then I can take some time to put the remaining boiler plate in place? |
Beta Was this translation helpful? Give feedback.
-
Nice, that sounds awesome. Then I am really looking forward to the |
Beta Was this translation helpful? Give feedback.
-
@ngfgrant I'd rather provide |
Beta Was this translation helpful? Give feedback.
-
I think GitHub template repository feature is probably enough for what we need (https://help.github.com/en/articles/creating-a-template-repository). I mean we could easily integrate cloning the template repo in the
|
Beta Was this translation helpful? Give feedback.
-
For the original case, can you not also create a separate Output value and use |
Beta Was this translation helpful? Give feedback.
-
@jghaines Thank you for the idea. That would work, but it does not feel right! The template having the outputs should not have to know about all possible usage-scenarios. In this case, it just creates an s3-bucket; and should not need to prepare for all possible paths I want to append to the bucket-name. I think, the transformation/substitution should be done on the usage-side. |
Beta Was this translation helpful? Give feedback.
-
I've been working on a resolver that is able to pipe outputs of one resolver into the next one, similar to how it's done in shell scripting.
Just got to find time to clean it up and publish it. |
Beta Was this translation helpful? Give feedback.
-
Interesting idea. |
Beta Was this translation helpful? Give feedback.
-
Is it possible to modify the output value of stack within a stack config?
My use-case is that I want to use the
Arn
of an S3-Bucket, which comes out of another stack, but want to append/*
to the arn to specify a path within the bucket. I want to pass this value into another stack as a parameter. I am doing something like this in my stack.yaml:I have tried
!stack_output group/s3-bucket.yaml::BucketArn{{ "/*" }}
and(!stack_output group/s3-bucket.yaml::BucketArn)/*
, but that does not work.Is that possible?
relevant: #735
Beta Was this translation helpful? Give feedback.
All reactions