You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`instance_id` - (Required) The UUID of the database instance for which the snapshot is created.
70
+
-`snapshot_id` - (Optional, ForceNew) The ID of an existing snapshot. This allows creating an instance from a specific snapshot ID. Conflicts with `engine`.
71
+
-`expires_at` - (Optional) Expiration date of the snapshot in ISO 8601 format (e.g., `2025-01-31T00:00:00Z`). If not set, the snapshot will not expire automatically.
72
+
73
+
## Attributes Reference
74
+
75
+
In addition to all arguments above, the following attributes are exported:
76
+
77
+
-`id` - The unique ID of the snapshot.
78
+
-`created_at` - The timestamp when the snapshot was created, in ISO 8601 format.
79
+
-`updated_at` - The timestamp when the snapshot was last updated, in ISO 8601 format.
80
+
-`status` - The current status of the snapshot (e.g., `ready`, `creating`, `error`).
81
+
-`size` - The size of the snapshot in bytes.
82
+
-`node_type` - The type of the database instance for which the snapshot was created.
83
+
-`volume_type` - The type of volume used by the snapshot.
84
+
85
+
## Attributes Reference
86
+
87
+
-`region` - The region where the snapshot is stored. Defaults to the region set in the provider configuration.
88
+
89
+
## Import
90
+
91
+
RDB Snapshots can be imported using the `{region}/{snapshot_id}` format.
92
+
93
+
## Limitations
94
+
95
+
- Snapshots are tied to the database instance and region where they are created.
96
+
- Expired snapshots are automatically deleted and cannot be restored.
97
+
98
+
## Notes
99
+
100
+
- Ensure the `instance_id` corresponds to an existing database instance.
101
+
- Use the `depends_on` argument when creating snapshots right after creating an instance to ensure proper dependency management.
Description: "ID of an existing snapshot to create a new instance from. This allows restoring a database instance to the state captured in the specified snapshot. Conflicts with the `engine` attribute.",
0 commit comments