Skip to content
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

resource/aws_cloudwatch_event_permission: Does not properly remove resource when removed from AWS #9025

Closed
ghost opened this issue Jun 17, 2019 · 4 comments · Fixed by #9044
Labels
bug Addresses a defect in current functionality.
Milestone

Comments

@ghost
Copy link

ghost commented Jun 17, 2019

This issue was originally opened by @amitsehgal as hashicorp/terraform#21756. It was migrated here as a result of the provider split. The original body of the issue is below.


Terraform Version

v0.12.0

Terraform Configuration Files

resource "aws_cloudwatch_event_permission" "SharedEventBusPolicy" {
  principal    = "*"
  statement_id = "SharedEventBu1233s"

  condition {
    type  = "StringEquals"
    key   = "aws:PrincipalOrgID"
    value = "xxxxxxxx"
  }
}

Debug Output

Crash Output

Error: CloudWatch Events permission "SharedEventBu1233s" not found

Expected Behavior

Deleted permission explicitly from aws and tried
terraform refresh

Actual Behavior


Error: CloudWatch Events permission "SharedEventBu1233s" not found```
### Steps to Reproduce

Please list the full steps required to reproduce the issue, for example:
1. `terraform init`
2. `terraform apply`

Delete the resource manually
3. `terraform refresh`
@bflad bflad added the bug Addresses a defect in current functionality. label Jun 18, 2019
@bflad bflad changed the title Terraform refresh unable to refresh CloudWatch event bus permission resource resource/aws_cloudwatch_event_permission: Does not properly remove resource when removed from AWS Jun 18, 2019
@bflad bflad added this to the v2.16.0 milestone Jun 19, 2019
@bflad
Copy link
Contributor

bflad commented Jun 19, 2019

The fix for this has been merged and will release with version 2.16.0 of the Terraform AWS Provider, likely later this week.

@amitsehgal
Copy link

Thanks for prompt response !!!. This is great

@bflad
Copy link
Contributor

bflad commented Jun 20, 2019

This has been released in version 2.16.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

@ghost
Copy link
Author

ghost commented Nov 3, 2019

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!

@ghost ghost locked and limited conversation to collaborators Nov 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality.
Projects
None yet
3 participants