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

introduce new scaleway_ip_reverse_dns resource #96

Merged
merged 2 commits into from
Nov 6, 2018

Conversation

nicolai86
Copy link
Contributor

@nicolai86 nicolai86 commented Oct 24, 2018

some usecases like dynamic reverse dns result in circular dependencies
between scaleway_ip and scaleway_server resources.

To break this cycle the reverse attribute on scaleway_ip is going to
be deprecated, and instead a new scaleway_ip_reverse_dns resource is
made available, which allows the IP to be created before the reverse DNS
is persisted.

Tests for the new resource as well as old modified resource are green.

Once merged this will fix use cases like https://github.com/terraform-providers/terraform-provider-scaleway/issues/88

@@ -32,6 +32,8 @@ func resourceScalewayIP() *schema.Resource {
"reverse": {
Type: schema.TypeString,
Optional: true,
Computed: true,
Deprecated: "use scaleway_ip_reverse_dns resource instead",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should modify the docs for scaleway_ip as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point, I’ll add the deprecation notice there too.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated! @paultyng PTAL

@nicolai86 nicolai86 force-pushed the reverse-dns-deprecation branch from 457a127 to 988e87e Compare November 5, 2018 05:56
to be replaced with scaleway_ip_reverse_dns resource
@nicolai86 nicolai86 force-pushed the reverse-dns-deprecation branch from 988e87e to 10ab0b1 Compare November 5, 2018 05:57
@nicolai86 nicolai86 merged commit 71eb82c into master Nov 6, 2018
@nicolai86 nicolai86 deleted the reverse-dns-deprecation branch November 6, 2018 04:18
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