본문 바로가기

728x90

terraform

[url] terraform modules terraform modules providers - https://registry.terraform.io/browse/providers modules - https://registry.terraform.io/browse/modules Terraform Cloud https://app.terraform.io 더보기
[iac][terraform] terraform 명령어 terraform 명령어 terraform 사용법 terraform -help $ terraform -help Usage: terraform [global options] [args] The available commands for execution are listed below. The primary workflow commands are given first, followed by less common or more advanced commands. Main commands: init Prepare your working directory for other commands validate Check whether the configuration is valid plan Show changes requ.. 더보기
[iac][terraform] aws provider 생성 terraform provider 생성 ~/.aws/credentials 확인 $ vim ~/.aws/credentials [terraformA] aws_access_key_id = AWSACCESSKEYID aws_secret_access_key = AWSSECRETACCESSKEY ~/.aws/config 확인 $ vim ~/.aws/config [terraformA] region = us-east-1 디렉토리 생성 $ mkdir -p terraformA/aws/serviceA/us-east-1 aws provider provider.tf 파일 생성 $ vim provider.tf terraform { required_providers { aws = { source = "hashicorp/aws" v.. 더보기
[iac][terraform] terraform cli install terraform cli install sudo apt-get update && sudo apt-get install -y gnupg software-properties-common wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg > /dev/null 2>&1 gpg --no-default-keyring \ --keyring /usr/share/keyrings/hashicorp-archive-keyring.gpg \ --fingerprint echo "deb [signed-by=/usr/share/keyrings/hashicorp-.. 더보기

728x90