Advanced Terraform
Jay Kim, Samsung Electronics
linkedin.com/in/rpkimjay rpkim.net jay-.kim@samsung.com
Samsung Bixby 2
Samsung Electronics, Staff Engineer, Global SRE
linkedin.com/in/rpkimjay rpkim.net jay-.kim@samsung.com
$ terraform fmt -check
https://medium.com/runatlantis/introducing-atlantis-6570d6de7281
Effective Collaboration
Developers Writing Terraform
require-approval mode
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
COMPLEXITY IS BAD ! !
Small Tips for modules
DEV
STG
PROD
IAM
Global
US
us-west-2
us-east-1
env
perf
services
asr
nlu
tts
databases
asr
regional
nlu
global.tf dns.tf s3.tf
hq-devops.tf asr-iam.tf tts-iam.tf
regional.tf s3.tf
asr.tf
nlu.tf
tts.tf
Prod
use1
asr-db.tf
nlu-db.tf
vpc.tf ecr.tf
KR
{{ account }}
{{ environment }}
{{ services }}
{{ databases }}
{{ region }}
{{ service country }}
billing-module.git
account-module.git
billing.git
usw2
apne2
billing-db-module.tf remote.tf
billing-module.tf remote.tf
Infrastructure.git
usw2
apne2 variable.tf main.tf output.tf
databases
Services
variable.tf main.tf output.tf
we can build any type of CI/CD pipeline with Terraform.
You can create your instance with the specific service with Terraform only or you can deploy with other tools.
ansible-pull = good option
No inventory
https://www.hashicorp.com/resources/enabling-multi-cloud-with-hashicorp-terraform
“Thanks”

Advanced Terraform