This message was deleted.
# general
s
This message was deleted.
l
deletionProtection
is a property on DatabaseInstance. You have to update it to false before you remove the DatabaseInstance code. That is, you have to
up
twice: once to set
deletionProtection
to false, then once to remove the code.
t
Unfortunately, that did not work and I'm getting this error:
Copy code
gcp.sql.DatabaseInstance(gitlab_code_sql_instance_name,
    TypeError: __init__() got an unexpected keyword argument 'deletion_protection'
    error: an unhandled error occurred: Program exited with non-zero exit code: 1
l
What language? Looks like python?
It is listed in the page, it looks like you've spelled it right...
Copy code
def DatabaseInstance(resource_name: str, opts: Optional[ResourceOptions] = None, database_version: Optional[str] = None, deletion_protection: Optional[bool] = None, encryption_key_name: Optional[str] = None, master_instance_name: Optional[str] = None, name: Optional[str] = None, project: Optional[str] = None, region: Optional[str] = None, replica_configuration: Optional[DatabaseInstanceReplicaConfigurationArgs] = None, root_password: Optional[str] = None, settings: Optional[DatabaseInstanceSettingsArgs] = None)
t
How do you get that? This the package version I am using:
pulumi-gcp        3.25.0
l
The current version is 4.4..
Though the versions to seem to change quite fast, 3.25 is only 2 months old.
t
maybe that's why
i'll upgrade my package first
because this is what i have
l
It is, I'm looking at the 3.25 code and it's not there.
t
ok thanks for your help!
l
No worries. Verified, it appears in 4.0.
t
wait, where did you find those information ?
l
GitHub, I looked at the source 🙂