terraform 썸네일형 리스트형 [Terraform] 테라폼 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.. 더보기 [Terraform] 테라폼 프로바이더(Provider) 및 VPC 생성 테라폼 프로바이더 생성 terraform 디렉터리 생성 $ mkdir terraform $ cd $_ 프로바이더 생성 $ vim provider.tf terraform { required_providers { aws = { source = "hashicorp/aws" version = "3.25.0" } } } provider "aws" { # Configuration options shared_credentials_file = "~/.aws/credentials" region = "us-east-1" profile = "tfa" } VPC 생성 $ vim vpc_vpc99.tf resource "aws_vpc" "vpc99" { cidr_block = "10.99.0.0/16" tags = { Name.. 더보기 CentOS 7에서 Terraform을 설치하는 방법 CentOS 7에서 Terraform을 설치하는 방법 yum install -y yum-utils yum-config-manager --add-repo https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo yum install -y terraform terraform -version $ terraform -version Terraform v0.14.5 terraform 사용 방법 $ terraform -help Usage: terraform [global options] [args] The available commands for execution are listed below. The primary workflow commands are given first.. 더보기 이전 1 2 3 4 5 다음