Skip to content

Rahu2000/terraform-env-workshop

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-env-workshop

requirements

# variable
export REGION="ap-northeast-2"
export BUCKET="terraform-workshop-seoul"

# create s3 bucket
aws s3 mb s3://${BUCKET} --region ${REGION}

# create dynamodb table
aws dynamodb create-table \
    --table-name ${BUCKET} \
    --attribute-definitions AttributeName=LockID,AttributeType=S \
    --key-schema AttributeName=LockID,KeyType=HASH \
    --provisioned-throughput ReadCapacityUnits=1,WriteCapacityUnits=1 \
    --region ${REGION}

clone

git clone https://github.com/mzcdev/terraform-env-workshop

usage

lambda api

cd terraform-env-workshop/lambda

terraform init
terraform plan
terraform apply

curl -sL -X POST -d "{\"data\":\"ok\"}" ${invoke_url}/demo | jq .

vpc

cd terraform-env-workshop/vpc

terraform init
terraform plan
terraform apply

bastion

cd terraform-env-workshop/bastion

terraform init
terraform plan
terraform apply

eks

cd terraform-env-workshop/eks

terraform init
terraform plan
terraform apply

kubectl get nodes

About

Terraform Environment for workshop

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HCL 96.5%
  • Shell 1.7%
  • Groovy 1.1%
  • JavaScript 0.7%