tf 추가
This commit is contained in:
14
tf/aws.tf
Normal file
14
tf/aws.tf
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
terraform {
|
||||||
|
required_providers {
|
||||||
|
aws = {
|
||||||
|
source = "hashicorp/aws"
|
||||||
|
version = "5.78.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
provider "aws" {
|
||||||
|
region = var.region
|
||||||
|
access_key = var.accesskey
|
||||||
|
secret_key = var.secretkey
|
||||||
|
}
|
||||||
17
tf/variables.tf
Normal file
17
tf/variables.tf
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
variable "accesskey" {
|
||||||
|
description = "AWS Access Key 입력" # 환경 변수 혹은 Terraform 실행시 입력 또는 default에 키 입력, 단 Git Push는 금지
|
||||||
|
type = string
|
||||||
|
default = ""
|
||||||
|
}
|
||||||
|
|
||||||
|
variable "secretkey" {
|
||||||
|
description = "AWS Secret Key 입력" # 환경 변수 혹은 Terraform 실행시 입력 또는 default에 키 입력, 단 Git Push는 금지
|
||||||
|
type = string
|
||||||
|
default = ""
|
||||||
|
}
|
||||||
|
|
||||||
|
variable "region" {
|
||||||
|
description = "사용할 region 입력"
|
||||||
|
type = string
|
||||||
|
default = "us-east-1"
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user