-
Notifications
You must be signed in to change notification settings - Fork 381
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
Pathway to resolve externalId drift? #1894
Comments
I found #335 which suggests others noticed some issues with externalId management though it's not clear this provides a pathway to resolve my scenario. I am likely to resolve this by manually editing the IAM Role Trust Relationship policy document. However, I don't know if this is the only place this |
To solve the drift in terraform configuration, I think the best way would be to remove the resource from the local state with I'm unsure if this alone will fix the integration itself though. I believe it should be sufficient if you have an iam policy defined in your terraform config that references the aws integration's Hopefully that helped, please reach out with more details if there's still confusion. |
@nkzou why doesn't the provider return the latest external ID when it checks the state of the integration resource? Shouldn't I be able to do a I have an issue now where the state thinks the |
I have also run in to the behaviour @berniedurfee-renaissance describes. I did look to see if there is a data provider that could give the current external ID but I can't see one. There is this note in the documentation:
Does this imply that the ID might change after 48 hours? |
Problem
I am using the Terraform module
datadog_integration_aws
to set up the DD->AWS integration. This creates an IAM role with a trust policy using a specificexternalId
sourced from the Datadog API.This same externalId can also be rotated manually via the DataDog UI:
I am facing a scenario where this externalId has been rotated manually outside of the terraform code (most likely by accident?), and I need to get the terraform code in sync.
The Documentation for
datadog_integration_aws
states that outside changes toexternalId
will not be detected. But no guidance is provided for how to work around with this drift.Is there any path I can take to resolve this drift? Do I have to delete and re-create the terraform resource? Should I manually edit the IAM Role? Is my integration going to have downtime if I take any of these steps?
I have tried to search the web & other issues for a resolution but have been unsuccessful at finding other references to this particular issue.
Terraform Version
1.2.2
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
Module or documentation should provide a path to deal with unexpected externalId drift.
Actual Behavior
ExternalId drift cannot be resolved from the module interface or following documentation steps
Steps to Reproduce
datadog_integration_aws
resource in terraform and apply it to an AWS account.Result: Datadog AWS Integration now has "Issues:"
The text was updated successfully, but these errors were encountered: