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

Convert inputs to full objects with optional attributes #163

Closed
wants to merge 3 commits into from

Conversation

Nuru
Copy link
Contributor

@Nuru Nuru commented Oct 22, 2022

WIP Do Not Merge

This is a work in progress. So far, only lifecycle_configuration_rules and cors_configuration have been converted, and they trigger a crash in Terraform.

Track Terraform crash at hashicorp/terraform#31978

what

  • Convert inputs with type any or with type object that should have optional attributes but do not to type object with optional attributes

why

  • Allows inputs that only specify values where needed. Particularly helpful when the input is a list, as it relaxes the requirement that all list elements be the exact same type, by giving an explicit type for them to be converted to rather than an inferred type, which does not allow for missing elements.

references

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

Successfully merging this pull request may close these issues.

2 participants