Slide 14
Slide 14 text
5. バージョンアップにおける自動化
resource "aws_instance" "sample_ec2" {
ami = "ami-xxxx"
availability_zone = "ap-northeast-1a"
ebs_optimized = false
instance_type = "t3.medium"
monitoring = true
key_name = "ssh_key"
subnet_id = "subnet-XXX"
vpc_security_group_ids = ["sg-XXX"]
associate_public_ip_address = false
private_ip = "xxx.xxx.xxx.xxx"
source_dest_check = true
root_block_device {
volume_type = "gp2"
volume_size = 8
delete_on_termination = true
}
tags {
"Name" = "sample-ec2"
}
}