· 9 years ago · Dec 26, 2016, 05:24 PM
1provider "aws" {
2 access_key = "AKIAI54LNUEBKGYZF2CQ"
3 secret_key = "HKO86K04Lm1CEDS6kHthwQdx31i/TDFr3IG5XA1o"
4 region = "ap-northeast-2"
5}
6
7resource "aws_instance" "example" {
8 ami = "ami-983ce8f6"
9 instance_type = "t2.micro"
10}
11
12resource "aws_eip" "ip" {
13 instance = "${aws_instance.example.id}"
14}