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

Ignore for_each blocks coming from the Terraform Provider documentation #276

Open
marcoths opened this issue Sep 14, 2023 · 1 comment
Open
Labels
Milestone

Comments

@marcoths
Copy link
Contributor

What problem are you facing?

Some resources in the Terraform docs have a for_each block in the Example Usage - For example aws_autoscaling_group_tag. These blocks end up being parsed in the examples-generated directory of the resulting Crossplane Provider - Example in provider-aws

How could Upjet help solve your problem?

When parsing provider-metadata.yaml (Example from line 8023), it would be useful to skip the for_each keys from the examples.manifest block so that they don't end up as YAML examples

@displague
Copy link
Member

displague commented Oct 21, 2023

It would be helpful to be able to skip or ignore any particular example based on resource, filename, or example number in order to get around paved interpretation problems:
crossplane-contrib/provider-jet-equinix#29 (comment)

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

No branches or pull requests

3 participants