본문 바로가기
728x90

Public Cloud/Terraform3

[Terraform] 테라폼 버전 오류(AWS 인스턴스 생성 안됨) 패스트캠퍼스 강의를 보고 테라폼 코드를 짜서 AWS 인스턴스를 생성하던 중 모든 설정은 완료 되었다고 생각했는데 AWS 인스턴스가 생성되지 않는 오류를 겪었다. 이틀간 붙잡고 있었는데 결국 해결하였다.... 해결하고 나니 어처구니 없는? 실수였다. ㅜㅜ 바로 테라폼 코드 작성할 때 버전을 잘못 선언해서 그랬다. 아래 예시는 5.26.0 버전으로 명시되어있다.  아래 코드와 같이 해당 부분을 수정하면 정상적으로 작동한다. terraform {  required_providers {    aws = {      source  = "hashicorp/aws"      version = "~> 5.0"    }  }}  이것은 Terraform AWS Provider의공식 문서에서 각 버전의 기능, 변경 사항,.. 2024. 12. 18.
[Terraform] Windows에 Terraform 설치하기 개요테라폼을 Windows 환경에서 설치한다. 다운로드https://developer.hashicorp.com/terraform/install Install | Terraform | HashiCorp DeveloperExplore Terraform product documentation, tutorials, and examples.developer.hashicorp.com  설치압축 해제 후 나온 terraform.exe 파일을 C:\ 디렉터리에 옮긴다. Windows 환경 변수 등록하기내 컴퓨터 속성(단축키 : win + Pause)고급 시스템 설정 환경 변수 Path 편집환경 변수 등록Terraform CLI 테스트(CMD , Powershell 모두 실행) 2024. 12. 6.
[Terraform] 테라폼(Terraform) 설치 설치다른 OS에서 설치할 경우 아래 링크에 들어가서 설치하면 된다. https://developer.hashicorp.com/terraform/install Install | Terraform | HashiCorp DeveloperExplore Terraform product documentation, tutorials, and examples.developer.hashicorp.com  wget -O - https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpgecho "deb [arch=$(dpkg --print-architecture) signed-by=/u.. 2024. 12. 6.
728x90