terraform-google-sql-db icon indicating copy to clipboard operation
terraform-google-sql-db copied to clipboard

Ability to add optional parameters to google_sql_user from module - Primarily : deletion_policy

Open thpang opened this issue 3 years ago • 3 comments

Need the ability to pass in optional parameters to the underlying resources from this module used in database and database user creation.

Scenario: One sets up a PostgreSQL database server which then has additional infrastructure applied, a new database. Once that database is in place and one tries to delete the PostgreSQL database server it cannot given it does not have the ability to force or set the deletion_policy option of the google_sql_user resource to ABANDON. If a user owns a database and that database exists the current code just errors saying it cannot delete that user.

thpang avatar Mar 25 '21 13:03 thpang

@thpang We're happy to accept a PR to add additional variables.

morgante avatar Mar 25 '21 16:03 morgante

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar May 24 '21 23:05 github-actions[bot]

Keeping this one open for now.

thpang avatar May 25 '21 12:05 thpang