-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
"terraform refresh" not picking up changes to policy text #47
Comments
This comment was originally opened by @mroark1m as hashicorp/terraform#3517 (comment). It was migrated here as part of the provider split. The original comment is below. I can confirm this issue, seeing the same thing. |
This comment was originally opened by @mattpminer as hashicorp/terraform#3517 (comment). It was migrated here as part of the provider split. The original comment is below. I can confirm as well. |
This comment was originally opened by @jgross206 as hashicorp/terraform#3517 (comment). It was migrated here as part of the provider split. The original comment is below. In fact, this issue is even worse. If a "terraform apply" of a modified AWS policy fails (e.g. with
Then subsequent "terraform plan" will say "No changes. Infrastructure is up-to-date." even though the infrastructure is decidedly not up-to-date. |
This comment was originally opened by @Ehekatl as hashicorp/terraform#3517 (comment). It was migrated here as part of the provider split. The original comment is below. confirm this problem as well |
I no longer see this for
Went into Console and changed "Allow" to "Deny", then did a
It wants to change "Deny" back to "Allow". And just to make sure there isn't any diffing problem here, I change my tf conf to say "Deny" instead of "Allow" and the If I'm not mistaken, I believe it was fixed by @tomwilkie when they implemented the I believe this also addresses @jgross206 because I can't seem to repro it. |
Hi everyone, With that I'm closing this issue. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
This issue was originally opened by @jgross206 as hashicorp/terraform#3517. It was migrated here as part of the provider split. The original body of the issue is below.
If a Terraform-managed policy is modified via Web console, the changes are not picked up on
terraform refresh
so they are not corrected on nextterraform apply
Repro:
terraform plan
thenterraform apply
. The policy should be created.terraform refresh
terraform apply
should change the policy back to the one existing in our .tf file.terraform plan
terraform apply
succeed but the policy in AWS does not match the policy in source.Happy to provide any more information needed.
The text was updated successfully, but these errors were encountered: