Skip to content

Subscription topic - Set to never auto-delete on idle

Arturo Hernandez [EPAM] requested to merge ah/auto-delete-idle-fix into master

All Submissions:


  • [YES] Have you added an explanation of what your changes do and why you'd like us to include them?
  • [YES] I have updated the documentation accordingly.
  • [YES] My code follows the code style of this project.

Current Behavior or Linked Issues


In this answer there was an error on statement topic itself will not be deleted.

However, we noticed in some environments, after applying the change "auto_delete_on_idle" - all topics started autodeleting of themselves after 5 days of inactivity. Terraform is identifying that topic was removed and try to create topic again, this is not expected behavior and introduces confuse when upgrading bronwfield environments.

Thanks to @vleskiv for this finding.

Does this introduce a breaking change?


  • [NO]

It fixes unexpected behavior.

Other information


  • Terraform docs about topic deletion
  • Switching value back to null will not resolving the issue on brownfield envs, where P5D was already applied (terraform provider will keep P5D). We have to explicitly set default value (Never)

Merge request reports