목록terraform (3)
Connecting
EC2 생성하기 위의 설정이 잘 되었는지 확인하기 위해서 EC2 1대를 생성하는 테라폼 코드를 작성하겠습니다. terraform { required_providers { aws = { source = "hashicorp/aws" version = "~> 4.16" } } required_version = ">= 1.2.0" } provider "aws" { region = "ap-northeast-2" } resource "aws_instance" "app_server" { ami = "ami-013218fccb68a90d4" instance_type = "t2.micro" tags = { Name = "ExampleAppServerInstance" } } init, plan, apply 순서로 테라폼을..
Terraform Installation WIndows choco install terraform Linux (Ubuntu) sudo apt update && sudo apt install gpg gnupg software-properties-common -y wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg gpg --no-default-keyring --keyring /usr/share/keyrings/hashicorp-archive-keyring.gpg --fingerprint echo "deb [signed-by=/usr/sh..
Introduction to Terraform 어떠한 기술 혹은 소프트웨어에는 사용자를 위한 소개 문구가 적혀있습니다. 다음은 테라폼 공식 문서에서 확인할 수 있는 문구 입니다. "Terraform is an open-source infrastructure as code software tool that enables you to safely and predictably create, change, and improve infrastructure." "Terraform은 인프라를 안전하고 예측 가능하게 만들고, 변경하고, 개선할 수 있는 코드 소프트웨어 도구로서의 오픈 소스 인프라입니다." 어떠한 이유로 인해 테라폼이 나오게 되었는지 살펴보도록 하겠습니다. 가상화 기술의 발전으로 하나의 서버로 여러개의 ..