-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
44 lines (38 loc) · 894 Bytes
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.0"
}
}
}
# Configure the AWS Provider
provider "aws" {
region = "ap-northeast-2"
}
# module "vpc" {
# source = "./modules"
# cidr_block = "10.0.0.0/16"
# name = "sample-vpc"
# public_subnets = ["10.0.0.0/20", "10.0.16.0/20"]
# private_subnets = ["10.0.64.0/20", "10.0.80.0/20"]
# availability_zones = ["ap-northeast-2a", "ap-northeast-2c"]
# }
# output "vpc_id" {
# value = module.vpc.vpc_id
# }
# output "public_subnet_ids" {
# value = module.vpc.public_subnet_ids
# }
# output "private_subnet_ids" {
# value = module.vpc.private_subnet_ids
# }
terraform {
cloud {
hostname = "app.terraform.io"
organization = "rapa6-subin" #Terraform Cloud의 조직
workspaces {
name = "terraform"
}
}
}