EC2 instance

Devops·2023년 9월 27일

Terraform

목록 보기
7/14

기존 instance.tf 에 vpc , subnet 추가

ec2 생성 후

해당 ip

ssh {ip주소} ubuntu -i mykey << ssh-keygen -f mykey 로 생성
// ssh -i mykey -l ubuntu {ip주소}

terraform apply

후 정보 확인 하고 싶을 시

terraform.tfstate 파일 확인

EBS Volume

인스턴스 부팅시 사라지기 때문에
부팅할 때 리눅스 파일시스템정보에 저장하는 방식

Root Volume 지정 하고 싶을 시

업로드중..

profile
Cloud Engineer , backend developer

0개의 댓글