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

[RDS] cannot delete database on PostgreSQL instance #86

Open
1 task done
dmicheneau opened this issue Jan 13, 2023 · 2 comments
Open
1 task done

[RDS] cannot delete database on PostgreSQL instance #86

dmicheneau opened this issue Jan 13, 2023 · 2 comments
Assignees
Labels
bug Something isn't working category/rds Resource Category RDS terraform-provider-issue

Comments

@dmicheneau
Copy link
Collaborator

dmicheneau commented Jan 13, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

After database creation, impossible to delete the database, error in terraform:

terraform destroy

╷
│ Error: Instance cannot be destroyed
│ 
│   on main.tf.json line 1, in resource.flexibleengine_rds_database:
│    1: {"provider":{"flexibleengine":{"access_key":"xxxxxxxxxxxxxxx","domain_name":"xxxxxx","insecure":false,"region":"eu-west-0","secret_key":"xxxxxxxxxxxxx"}},"resource":{"flexibleengine_rds_database":{"example-rds-database":{"character_set":"UTF8","instance_id":"6b5ff3b1415f4696976f960046a2d10ein03","lifecycle":{"prevent_destroy":true},"name":"examplerdsdatabase"}}},"terraform":{"required_providers":{"flexibleengine":{"source":"FlexibleEngineCloud/flexibleengine","version":"1.35.1"}}}}
│ 
│ Resource flexibleengine_rds_database.example-rds-database has lifecycle.prevent_destroy set, but the plan calls for this resource to be destroyed. To avoid this error and continue
│ with the plan, either disable lifecycle.prevent_destroy or reduce the scope of the plan using the -target flag.

Expected Behavior

The database will be destroy

Steps To Reproduce

"resource": {
        "flexibleengine_rds_database": {
            "example-rds-database": {
                "character_set": "UTF8",
                "instance_id": "6b5ff3b1415f4696976f960046a2d10ein03",
                "name": "examplerdsdatabase"
            }
        }
    }

Environment

  • terraform version: 1.3.7
  • Provider Version: 1.35.1
@dmicheneau dmicheneau added the bug Something isn't working label Jan 13, 2023
@dmicheneau
Copy link
Collaborator Author

@azrod azrod added the category/rds Resource Category RDS label Jan 13, 2023
@azrod
Copy link
Collaborator

azrod commented Jan 13, 2023

@dmicheneau Please use block code in your description

Official doc

`One line code`

```
Multi
Line
Code
```

@azrod azrod changed the title [RDS] canot delete database on postgresql instance [RDS] cannot delete database on PostgreSQL instance Jan 14, 2023
@dmicheneau dmicheneau self-assigned this Jan 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working category/rds Resource Category RDS terraform-provider-issue
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants