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

create-change-set does not support template syntax #599

Open
project0 opened this issue Nov 25, 2024 · 1 comment
Open

create-change-set does not support template syntax #599

project0 opened this issue Nov 25, 2024 · 1 comment

Comments

@project0
Copy link

Subject of the issue

Using nunjucks templates is supported in the organization file, but the cli command create-change-set is not parsing the.
In contrary print-org is working fine and as expected.

Your environment

  • version of org-foramtion (ofn --version): 1.0.16
  • version of node (node --version): not relevant
  • which OS/distro: not relevant

Steps to reproduce

Create a org template with nunjucks template:

AWSTemplateFormatVersion: "2010-09-09-OC"
Description: AWS Organization

Organization:
# accounts is part of the template context
{% set accountsByOu = accounts | groupby("ou") %}

....

Expected behaviour

Tell us what should happen

Actual behaviour

ERROR: unable to load file src/organization.yaml. 
reason: missed comma between flow collection entries (6:2)

 3 | 
 4 | Organization:
 5 | # accounts is part of the templat ...
 6 | {% set accountsByOu = accounts |  ...
------^
 7 | 
 8 |   OrganizationRoot:.
@project0
Copy link
Author

Just saw that print-stacks has the same issue :-(

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