Terraform resource: aws ebs snapshot

From wikieduonline
(Redirected from Aws ebs snapshot)
Jump to navigation Jump to search


Official example[edit]

resource "aws_ebs_volume" "example" {
 availability_zone = "us-west-2a"
 size              = 40

 tags = {
   Name = "HelloWorld"
 }
}

resource "aws_ebs_snapshot" "example_snapshot" {
 volume_id = aws_ebs_volume.example.id

 tags = {
   Name = "HelloWorld_snap"
 }
}

Related[edit]

See also[edit]

Advertising: