Skip to content

Commit ec0af4e

Browse files
authored
Merge pull request #2 from prgrms-web-devcourse-final-project/feat/init-setup
add infra dir
2 parents 61f37a8 + fd51e89 commit ec0af4e

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

infra/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.idea
2+
.terraform

infra/main.tf

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
terraform {
2+
// 자바의 import 와 비슷함
3+
// aws 라이브러리 불러옴
4+
required_providers {
5+
aws = {
6+
source = "hashicorp/aws"
7+
}
8+
}
9+
}
10+
11+
# Configure the AWS Provider
12+
provider "aws" {
13+
region = "ap-northeast-2"
14+
}
15+
16+
resource "aws_vpc" "example" {
17+
cidr_block = "10.0.0.0/16"
18+
19+
tags = {
20+
Name = "example"
21+
}
22+
}

0 commit comments

Comments
 (0)