-
Notifications
You must be signed in to change notification settings - Fork 96
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
akamai_edge_hostname forces replacement without changes #258
Comments
hello, i have similar issue, i have imported edge hostname into the state file, Import was successful but after that i run plan and it tires to replace resource, in my case its Terraform v0.13.7
|
+1 facing the exact same issue as well. Did not move properties between groups. |
Any updates on this issue? Facing same issue, the first plan shows that the edge host will be created, but subsequent property resource fails to create as the hostname take sometime for edge hostname to move from
|
Hi, the fix (an error because the edge hostname cannot be found) will be introducend in next release. The date is not yet set, but it will be late November/early December. |
Hi @henrytk, @kyrylyuk-andriy, @donaldpiret, @atalwar-sephora |
The problem
When I run Terraform plan it says all of the configuration details of my edge hostname are incorrect and the resource needs replacing.
Nothing had changed. The state file still contains
my-correct-host.example.com.edgekey.net
and the correct group and contract ID.The problem starts on line 349 of the function to read details of the edge hostname. It gets all of the edge hostnames from a particular group, but if it doesn't find the one it's looking for it just returns the first in the list!
This can happen when your credentials don't allow you to view the edge hostname, but also relates to which group the edge hostname is associated with. You use group ID to find edge hostnames, but the relationship between groups and edge hostnames seems indirect and unclear - especially when you've moved properties to a new group.
I can't submit a fix because there's a decision to be made about what it should do when it can't find the hostname. I don't know whether it should error or assume the hostname does not exist. It certainly should not, under no circumstances, return a completely different edge hostname, like it's doing now.
Terraform Version
But I believe all versions would be affected.
Affected Resource(s)
akamai_edge_hostname
Expected Behavior
Either:
The above expectation would be a design choice.
Actual Behavior
Terraform will show the edge hostname has a different configuration and forces replacement. This would involve incorrectly deleting a different edge hostname and trying to create the edge hostname which already exists.
Steps to Reproduce
Alternatively (untested):
The text was updated successfully, but these errors were encountered: