mirror of
https://github.com/farcasclaudiu/terraform-course.git
synced 2026-06-28 17:02:05 +03:00
added final snapshot identifier
This commit is contained in:
@@ -33,6 +33,7 @@ resource "aws_db_instance" "mariadb" {
|
|||||||
storage_type = "gp2"
|
storage_type = "gp2"
|
||||||
backup_retention_period = 30 # how long you’re going to keep your backups
|
backup_retention_period = 30 # how long you’re going to keep your backups
|
||||||
availability_zone = "${aws_subnet.main-private-1.availability_zone}" # prefered AZ
|
availability_zone = "${aws_subnet.main-private-1.availability_zone}" # prefered AZ
|
||||||
|
final_snapshot_identifier = "mariadb-final-snapshot" # final snapshot when executing terraform destroy
|
||||||
tags {
|
tags {
|
||||||
Name = "mariadb-instance"
|
Name = "mariadb-instance"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user