퍼블릭 클라우드
AWS EC2 인스턴스(Amazon Linux 2)에 Packer를 설치하기
변군이글루
2021. 10. 8. 09:19
반응형
AWS EC2 인스턴스(Amazon Linux 2)에 Packer를 설치하기
Packer 설치
yum-utils, shadow-utils 패키지 설치
yum install -y yum-utils shadow-utils
HashiCorp 저장소 등록
yum-config-manager --add-repo https://rpm.releases.hashicorp.com/AmazonLinux/hashicorp.repo
Packer 패키지 설치
yum install -y packer
Packer 사용법
$ packer
Usage: packer [--version] [--help] <command> [<args>]
Available commands are:
build build image(s) from template
console creates a console for testing variable interpolation
fix fixes templates from old versions of packer
fmt Rewrites HCL2 config files to canonical format
hcl2_upgrade transform a JSON template into an HCL2 configuration
init Install missing plugins or upgrade plugins
inspect see components of a template
validate check that a template is valid
version Prints the Packer version
Packer 버전 확인
packer version
$ packer version
Packer v1.7.6
Packer를 사용하여 AMI(Amazon Machine Image)를 빌드하거나 다양한 다른 인프라 구성을 자동으로 생성할 수 있습니다.
참고URL
- https://learn.hashicorp.com/tutorials/packer/get-started-install-cli
728x90
반응형