Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for an !import to bring in blocks from other files #106

Open
Vitiate opened this issue May 10, 2021 · 0 comments
Open

Allow for an !import to bring in blocks from other files #106

Vitiate opened this issue May 10, 2021 · 0 comments

Comments

@Vitiate
Copy link

Vitiate commented May 10, 2021

One of the things that we would like to do is add a git commit tag to all of our deployed resources. I feel like the easiest way to do this would be to allow for a !nclude to include files and blocks.

I would like to be able to define an inline include like so:

Version: 3 Blueprints: vpc: Order: 1 Region: us-west-2 Template: ./templates/vpc.yaml StackPolicy: ALLOW_ALL Capabilities: [CAPABILITY_IAM] Package: true Tags: au:application:owner: Operations au:application:role: Infrastructure au:security:classification: private au:security:access: IT !include: ./commit.yaml

or even an !include ./commit.yaml where the yaml contains a block with an anchor that can then be anchored into other locations in the file.

Is anyone doing this in a manner that I haven't thought of? I have considered creating a stack that just contains an out put that has the hash in it and using the output as a nested variable but that seems overly complicated...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant