-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tf
More file actions
55 lines (49 loc) · 1.26 KB
/
main.tf
File metadata and controls
55 lines (49 loc) · 1.26 KB
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
45
46
47
48
49
50
51
52
53
54
55
# -----------------------------------------------------------------------------
# Terraform Configuration.
# -----------------------------------------------------------------------------
terraform {
required_version = ">=1.5.7"
required_providers {
aws = {
source = "hashicorp/aws"
version = "~>5.18"
}
}
# backend "s3" {
# bucket = "tastylog-tsstate-bucket-tfunayama"
# key = "tastylog-dev.tfstate"
# region = "ap-northeast-1"
# profile = "terraform"
# }
cloud {
organization = "aws_isid_learn145"
hostname = "app.terraform.io"
workspaces {
name = "terraform-study"
}
}
}
# -----------------------------------------------------------------------------
# Provider
# -----------------------------------------------------------------------------
provider "aws" {
profile = "terraform"
region = "ap-northeast-1"
}
provider "aws" {
alias = "virginia"
profile = "terraform"
region = "us-east-1"
}
# -----------------------------------------------------------------------------
# Variables
# -----------------------------------------------------------------------------
variable "project" {
type = string
}
variable "environment" {
type = string
}
variable "domain" {
type = string
}