Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Terrajet should skip writing conflicting fields #107

Open
muvaf opened this issue Oct 11, 2021 · 2 comments
Open

Terrajet should skip writing conflicting fields #107

muvaf opened this issue Oct 11, 2021 · 2 comments
Labels
enhancement New feature or request wontfix This will not be worked on

Comments

@muvaf
Copy link
Member

muvaf commented Oct 11, 2021

What problem are you facing?

When there are conflicting fields and we late initialize all of them, they all end up in our parameters and then terraform returns error after the first late-init saying there are conflicting fields, like "network_interface": conflicts with private_ip

How could Terrajet help solve your problem?

We could either skip late initialization of such fields or make the FileProducer smarter by adding logic to not write conflicting fields into the main.tf.json but that could be challenging since we don't know which fields are given by user and which of them are late-inited. Best solution could be to make terraform to skip conflict errors but I couldn't find a way to do that.

@muvaf muvaf added the enhancement New feature or request label Oct 11, 2021
@muvaf
Copy link
Member Author

muvaf commented Oct 11, 2021

It seems like there isn't a way other than forking Terraform to disable conflict checks https://github.com/hashicorp/terraform-plugin-sdk/blob/e91cd2e/helper/schema/schema.go#L1524

@stale
Copy link

stale bot commented Aug 13, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Aug 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant