https://pulumi.com logo
#general
Title
# general
f

faint-father-49077

07/07/2023, 2:22 AM
Hello, I have a question about the "snapshot_identifier" property of aws.rds.Instance. I've just created a cluster from a snapshot by populating "snapshot_identifier" resource when creating the cluster. Do I need to keep the "snapshot_identifier" populated with the snapshot's name (and therefore, the snapshot itself) for subsequent changes to the cluster? What happens if the "snapshot_identifier" resource is blanked (snapshot_identifier="") for subsequent changes to the cluster?
l

little-cartoon-10569

07/07/2023, 2:30 AM
That's an AWS question, rather than a Pulumi-specific question. The snapshot identifier corresponds to the same field in the RDS console or the APIs. It is used when creating or restoring a snapshot, as opposed to when deploying via Pulumi. Any time you trigger either of those actions, that field is used by RDS, not Pulumi.
If you update that field via Pulumi, nothing special will happen in RDS, other than the field will be blanked. However, you won't be able to create or restore a snapshot until you put a value in there.
Generally, you should not change the value of that field once an instance is created. RDS looks after versioning; if you create 10 snapshots, they don't overwrite each other: the identifier is used as a prefix.
If you do change the value of the field, then existing snapshots (with the old identifier) can't be restored into the instance (until you change it back).
4 Views