NOTE :
GO TO VOLUME - ACTIONS - CRAETE SNAPSHOT
GO TO DOCS - EC2- AWS_AMI - COPY CODE- type snapshot id
provider "aws" {
region = "us-east-1"
access_key = "AQ"
secret_key = "Kfkt1aurid"
}
resource "aws_ami" "ami_jammu" {
name = "terraform-example"
virtualization_type = "hvm"
root_device_name = "/dev/xvda"
ebs_block_device {
device_name = "/dev/xvda"
snapshot_id = "snap-04e091a83626419c9"
volume_size = 8
}
}
Comments
Post a Comment