$ terraform version
Terraform v1.1.8
$ touch main.tf
main.tf
provider "aws" { access_key = "ACCESS_KEY_HERE" secret_key = "SECRET_KEY_HERE" region = "ap-northeast-1" } resource "aws_vpc" "myVPC" { cidr_block = "10.1.0.0/16" instance_tenancy = "default" enable_dns_support = "true" enable_dns_hostname = "false" tags { Name = "myVPC" } } resource "aws_internet_gateway" "myGW" { vpc_id = "${aws_vpc.myVPC.id}" depends_on = "${aws_vpc.myVPC}" } variable "images" { default = { ap-northeast1 = "ami-cbf90ecb" ap-southeast1 = "ami-68d8e93a" ap-southeast2 = "ami-fd9cecc7" } }
なるほど、あとはlambdaのバッチのところか…