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

Kinesis stream enforce deletion #8420

Closed
MMollyy opened this issue Apr 24, 2019 · 3 comments · Fixed by #8682
Closed

Kinesis stream enforce deletion #8420

MMollyy opened this issue Apr 24, 2019 · 3 comments · Fixed by #8682
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/kinesis Issues and PRs that pertain to the kinesis service.
Milestone

Comments

@MMollyy
Copy link

MMollyy commented Apr 24, 2019

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

to add an enforce delete property on this resource:
https://www.terraform.io/docs/providers/aws/r/kinesis_stream.html
In the event consumers are added via some other way then terraform, and you still want to manage kinesis using terraform. Knowing that it will delete all consumers as well.

New or Affected Resource(s)

aws_kinesis_stream

  • aws_XXXXX

Potential Terraform Configuration

enforce_consumer_deletion - (Optional) Set property to true to enforce deletion of stream consumers. Defaults to false.

References

Terraform error message:

  • aws_kinesis_stream.poc-kinesis-stream: ResourceInUseException: DeleteStream can't delete 168482979755:103-poc-kinesis-stream because there are consumers associated with this data stream. To delete 103-poc-kinesis-stream anyway, set the EnforceConsumerDeletion parameter to true to force the deletion of all the consumers that are associated with it.
    status code: 400, request id: f92ab05f-47a7-03f0-ac10-ab2cad1d8ba0

Console allows the checkbox to be marked.

@MMollyy MMollyy added the enhancement Requests to existing resources that expand the functionality or scope. label Apr 24, 2019
@bflad bflad added the service/kinesis Issues and PRs that pertain to the kinesis service. label May 23, 2019
@bflad bflad added this to the v2.12.0 milestone May 23, 2019
@bflad
Copy link
Contributor

bflad commented May 23, 2019

The new enforce_consumer_deletion argument for the aws_kinesis_stream resource has been merged and will release with version 2.12.0 of the Terraform AWS Provider, later today. 👍

@bflad
Copy link
Contributor

bflad commented May 24, 2019

This has been released in version 2.12.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

ghost commented Mar 29, 2020

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 Mar 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/kinesis Issues and PRs that pertain to the kinesis service.
Projects
None yet
2 participants