hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.8k stars 9.15k forks source link

Undetected configuration drift in policy for aws_sns_topic #11447

Open dynamike opened 4 years ago

dynamike commented 4 years ago

Community Note

Terraform Version

Terraform v0.12.18

Affected Resource(s)

Terraform Configuration Files

provider "aws" {
  version = "~> 2.43.0"
  region  = local.region
}

locals {
  region = "us-west-2"
}

resource "aws_sns_topic" "dynatest" {
  name = "dynatest"
}

Expected Behavior

When manually modified, Terraform should detect changes to the access policy of the sns topic.

Actual Behavior

When manually modified, Terraform doesn't detect changes to the access policy of the sns topic.

Steps to Reproduce

  1. terraform apply
  2. Manually change the access policy of the SNS topic created via terraform
  3. terraform apply - this is where I would expect Terraform try to undo the manually applied changes. Instead I get
    Apply complete! Resources: 0 added, 0 changed, 0 destroyed.
justinretzolk commented 2 years ago

Hey @dynamike 👋 Thank you for taking the time to file this issue! Given that there's been a number of AWS provider releases since you initially filed it, can you confirm whether you're still experiencing this issue?