1. Chocolatey 설치
Chocolatey
Windows용 무료 오픈 소스 패키지 관리 시스템
Chocolatey Software Docs | Setup / Install
Chocolatey Software Docs | Setup / Install
Chocolatey is software management automation for Windows that wraps installers, executables, zips, and scripts into compiled packages. Chocolatey integrates w/SCCM, Puppet, Chef, etc. Chocolatey is trusted by businesses to manage software deployments.
docs.chocolatey.org
1.1. cmd에서 설치
※ 위 사이트에서 Install with cmd.exe 부분 command 복사
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
※ cmd 관리자 모드로 실행하여 복사한 command 붙여넣어 설치
1.2. PowerShell에서 설치
※ 위 사이트에서 Install with PowerShell.exe 부분 command 복사
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
※ PowerShell 관리자로 실행
※ 복사한 command 입력하여 설치 진행
※ 설치 완료 되었으면 Chocolatey 최신 버전으로 업그레이드
> choco upgrade chocolatey
2. Terraform 설치
Install Terraform | Terraform - HashiCorp Learn
Install Terraform | Terraform - HashiCorp Learn
Install Terraform on Mac, Linux, or Windows by downloading the binary or using a package manager (Homebrew or Chocolatey). Then create a Docker container locally by following a quick-start tutorial to check that Terraform installed correctly.
learn.hashicorp.com
위 사이트 접속해서 Chocolatey on Windows 부분 참고하여 Terraform 설치
※ terraform 설치
> choco install terraform
※ 설치 확인
> terraform -help
※ 버전 확인
3. VSCode 설치
https://code.visualstudio.com/download
Download Visual Studio Code - Mac, Linux, Windows
Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows. Download Visual Studio Code to experience a redefined code editor, optimized for building and debugging modern web and cloud applications.
code.visualstudio.com
4. Terraform 인프라 구축
https://learn.hashicorp.com/tutorials/terraform/aws-build
Build Infrastructure | Terraform - HashiCorp Learn
Authenticate to AWS and create an EC2 instance under the AWS free tier. Write and validate Terraform configuration, initialize a configuration directory, and plan and apply a configuration to create infrastructure.
learn.hashicorp.com
> mkdir learn-terraform-aws-instance
> cd learn-terraform-aws-instance
> code main.tf
'IaC > Terraform' 카테고리의 다른 글
5. Terraform : (AWS)Internet Gateway 생성 (0) | 2022.06.30 |
---|---|
4. Terraform : Subnet 생성 (0) | 2022.06.30 |
3. Terraform : VPC 생성 (0) | 2022.06.30 |
2. Terraform : Key Upload (0) | 2022.06.30 |