μ νΌλ¬μ AWSμ ν΄λΌμ°λ νλ μ΄ μΈνλΌ μνκ° μ μλμ΄μλ ν λΌνΌ μ½λμ λλ€. μΏ λ²λ€ν°μ€ YAML νμΌλ€μ upnl/kubernetesμμ νμΈνμΈμ.
- Terraform 1.x
- Terraform Cloud account
- AWS credentials
- Cloudflare API Token
# https://app.terraform.io/app/settings/tokens μμ λ³ΈμΈμ ν ν°μ νμΈν λ€
# ~/.terraformrc μ μλμ κ°μ΄ ν
λΌνΌ ν ν° μΈν
#
# credentials "app.terraform.io" {
# token = "xxxxxxxxxxxxxx.atlasv1.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
# }
# Set Cloudflare API token, See https://dash.cloudflare.com/profile/api-tokens
cp -i terraform.tfvars.example terraform.tfvars
terraform init
# IAM μν¬λ¦Ώ νμΈνκΈ°
terraform console <<< local.iam_secrets
terraform console <<< local.iam_secrets.simnalamburt