본문 바로가기
반응형

terraform3

[Terraform] AWS with Terraform - ec2 instance (테라폼 ec2 인스턴스 생성) [Terraform] AWS with Terraform - ec2 instance (테라폼 ec2 인스턴스 생성) 참고 - terraform configuration EC2 instancecreate aws-ec2.tf1234567891011121314151617181920212223data "aws_ami" "ubuntu" { most_recent = true filter { name = "name" values = ["ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-*"] } filter { name = "virtualization-type" values = ["hvm"] } owners = ["099720109477"] # Canonical} res.. 2018. 12. 10.
[Terraform] AWS with Terraform - terraform configuration (테라폼 설정) [Terraform] AWS with Terraform - terraform configuration (테라폼 설정) Get access_key and secret_key Add user Set aws cofigureset providerCreate aws.tf 12345provider "aws" { access_key = "ACCESS_KEY" secret_key = "SECRET-KEY" region = "ap-northeast-1"}Colored by Color Scriptercs set vpccreate vpc.tf 1234567891011121314151617resource "aws_vpc" "test" { cidr_block = "172.10.0.0/20" tags { Name = "test".. 2018. 12. 10.
[Terraform] AWS with Terraform - install terraform (테라폼 설치) [Terraform] AWS with Terraform - install terraform (테라폼 설치) download terraform from the official download page. unzip the file and move Terraform binary to /usr/bin. 1$ sudo mv terraform /usr/bin && sudo chmod +xcs test `terraform` command 1234567891011121314151617181920212223242526272829303132333435$ terraformUsage: terraform [-version] [-help] [args] The available commands for execution are li.. 2018. 12. 10.
반응형