-
Notifications
You must be signed in to change notification settings - Fork 384
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
datadog_integration_aws_account import docs are incorrect #2733
Comments
I just ran into this issue as well, used the API method to retrieve the "proper" ID. Sadly, once the resource was imported, I'm now running into a 500 error response when trying to update the integration resource :( |
@synesisinc can you describe and/or paste the modifications and the errors that you're getting? The reason I ask is because I'll want to hold off on doing this migration if the resource is unmanageable after import. Thanks. |
@jrobison-sb sure thing - when I imported, it wanted to change a few things, I kept getting a 500 error response, so I got it down to the smallest change set I could, and still got the error. Here is the output of my TF plan:
and here is the result of the TF apply:
|
@synesisinc thanks. Coincidentally I got a similar diff where it wanted to re-order the
After I re-ordered the items in my HCL, a subsequent Though I don't know if the 500 error is a result of the API getting confused by item re-ordering or if something else is going on. |
Hey all, first of all, thanks for trying out the new provider version and this new resource! We really appreciate your feedback. I'll definitely correct the I'm also investigating the 500 API errors you received. If you're able to create support ticket (link) and include your Datadog Organization name, that will help our investigation. |
@jrobison-sb yeah good point - did you try applying that order change and get the 500 as well? Would be good to get confirmation that we're seeing the same issue. I could also modify the order in my code to remove that portion of the diff, and then try a different change to the resource to see if the error is limited to that exclusion list. |
@ktmq thanks, will do! Felt a little bad hijacking this thread with that issue, but decided it could be useful feedback at least for the OP, in case he wanted to hold off upgrading :) The link you provided goes to DD ticketing, do you prefer that over an issue here in GitHub? or both? |
I didn't get that far. I tested the I would be curious to know if a change other than simply reordering the |
@ktmq request submitted, #1973571 |
@jrobison-sb @ktmq I did some additional testing, more bad news :( I swapped the order of the Then, to test a different area of the config, I changed the value of Finally, I reverted my change to set So, the issue seems more nuanced, allowing me to change an attribute in one direction, but not the other. |
@synesisinc thanks for the additional info. @ktmq initially this GitHub issue only addressed the docs, but if 500 errors are in play when modifying the resource going forward, I'd probably prefer to wait until those are resolved before we start using the new resource in production. Are these errors the kind of thing where you might expect to push a bugfix in a subsequent provider version in the coming days/weeks? Would you be able to reply here when those errors are resolved? Thanks. |
@synesisinc @jrobison-sb Thank you both for the additional details and investigation! 🙏 I've merged a fix for the docs issue, which will go out with our next release in January.
Yes, absolutely! We're targeting first week of January to push the fix, so I'll reply with an update at that time. Also:
A DD support ticket is helpful for us if we need to gather more information about your org or specific configuration.
I'll also look into this and see if we can avoid any diff on ordering changes. |
Datadog Terraform Provider Version
v3.50.0
Terraform Version
v1.10.0
What resources or data sources are affected?
datadog_integration_aws_account
datadog_integration_aws
Terraform Configuration Files
Relevant debug or panic output
No response
Expected Behavior
We need to migrate from the old resource seen above which we have been using for a long time, to the new resource seen above which is newly released in the 3.50.0 provider. The import docs state:
So I expect that I could import the new resource using the
id
field of an existingdatadog_integration_aws
resource. Eg. the ID seen here:In the above example,
1234567890
represents our AWS account number, andqa-DatadogIntegration
represents the AWS role that the integration uses.Actual Behavior
I can't import the new resource using the
id
field of an existingdatadog_integration_aws
resource.I can only get the import to work if I use a UUID which is entirely unknown to the old
datadog_integration_aws
resource type. I have to get the UUID from the API.Steps to Reproduce
Try to migrate from a deprecated
datadog_integration_aws
resource to a newdatadog_integration_aws_account
resource by accessing the id field of an existingdatadog_integration_aws
resource for theimport
command.Important Factoids
No response
References
#2682
The text was updated successfully, but these errors were encountered: