Skip to content

Commit

Permalink
add tf base codes
Browse files Browse the repository at this point in the history
  • Loading branch information
ohr486 committed Jan 1, 2021
1 parent 641667d commit 80aa815
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions aws/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.terraform/*
Empty file removed aws/.terraform-version
Empty file.
1 change: 1 addition & 0 deletions aws/.tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
terraform 0.13.5
10 changes: 10 additions & 0 deletions aws/backend.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
terraform {
backend "s3" {
bucket = "ohr486.terraform" # SET YOUR BUCKET
key = "elixir-lang-tokyo.tfstate" # SET YOUR KEY
region = "ap-northeast-1"
dynamodb_table = "tfstate" # SET YOUR DDB TABLE
shared_credentials_file = "~/.aws/credentials"
profile = "ohr486base-terraform" # SET YOUR PROFILEt
}
}
6 changes: 6 additions & 0 deletions aws/provider.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
provider "aws" {
version = "~> 3.0"
region = "ap-northeast-1"
shared_credentials_file = "~/.aws/credentials"
profile = "elixir-lang-tokyo-terraform" # SET YOUR PROFILE
}

0 comments on commit 80aa815

Please sign in to comment.