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

Ensure zone and zone_id are always set #175

Merged

Conversation

jacobbednarz
Copy link
Member

During an import of the cloudflare_access_rule resource, the zone_id is
defined within the composite ID. This value is then populated and synced
within resourceCloudflareAccessRuleRead to match the expected schema
resource. However, we don't currently set zone (the zone name) anywhere.
This becomes problematic on subsequent terraform operations as the Read
attempts to sync the schema with the access rule and ends up attempting to
recreate the resource due to detecting a change.

This is a similar issue to #161 and is addressed in a similar manner.

Fixes #166

During an import of the `cloudflare_access_rule` resource, the `zone_id`
is defined within the composite ID. This value is then populated and
synced within `resourceCloudflareAccessRuleRead` to match the expected
schema resource. However, we don't currently set zone (the zone name)
anywhere. This becomes problematic on subsequent terraform operations as
the Read attempts to sync the schema with the access rule and ends up
attempting to recreate the resource due to detecting a change.

This is a similar issue to cloudflare#161 and is addressed in a similar manner.

Fixes cloudflare#166
@patryk patryk merged commit b4890b0 into cloudflare:master Dec 5, 2018
@patryk
Copy link
Contributor

patryk commented Dec 5, 2018

Thanks!

boekkooi-lengoo pushed a commit to boekkooi-lengoo/terraform-provider-cloudflare that referenced this pull request Feb 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants