Skip to content

Instantly share code, notes, and snippets.

@msato0731
Created December 7, 2018 22:56
Show Gist options
  • Save msato0731/a135052ff45565f7528be914e332e013 to your computer and use it in GitHub Desktop.
Save msato0731/a135052ff45565f7528be914e332e013 to your computer and use it in GitHub Desktop.
terraform 入門 
variable "access_key" {}
variable "secret_key" {}
variable "region" {}
provider "aws" {
access_key = "${var.access_key}"
secret_key = "${var.secret_key}"
region = "${var.region}"
}
resource "aws_vpc" "myvpc" {
cidr_block = "10.0.0.0/16"
tags {
Name = "myvpc"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment