moved images to s3 and added terraform scripts

This commit is contained in:
2020-08-08 19:27:32 +09:00
parent d0a8424731
commit 94a9d18c02
90 changed files with 859 additions and 55 deletions

View File

@@ -0,0 +1,20 @@
resource "aws_launch_configuration" "catherine_fc_conf" {
name_prefix = "catherine-fc-conf-"
image_id = data.aws_ami.catherine_fc_ami.id
instance_type = var.ec2_instance_type
iam_instance_profile = aws_iam_instance_profile.catherine_fc_profile.name
security_groups = [
aws_security_group.catherine_fc_ec2_sg.id
]
user_data = <<-EOF
#!/bin/bash
yum -y update
EOF
root_block_device {
volume_type = "gp2"
volume_size = 16
}
associate_public_ip_address = false
key_name = var.key_name
}