본문 바로가기

반응형

퍼블릭 클라우드

terraform apply 명령어 terraform apply 명령어 terraform apply 명령어는 테라폼 구성 파일로 정의한 인프라스트럭처를 실제로 생성하거나 업데이트하는 데 사용되는 명령어입니다. terraform apply [옵션] terraform apply --auto-approve terraform apply --auto-approve 명령어는 테라폼으로 정의한 인프라스트럭처를 실제로 생성하거나 업데이트할 때, 변경 사항을 자동으로 승인하고 인터랙션 없이 실행하는 옵션을 포함한 명령어입니다. 일반적으로 terraform apply를 실행하면, 변경 사항을 확인하는 단계에서 사용자에게 변경 사항을 표시하고 직접 승인 여부를 묻게 됩니다. 이때 --auto-approve 옵션을 사용하면 이 과정을 건너뛰고, 테라폼이 자동으.. 더보기
테라폼(Terraform) 디버깅 활성화 테라폼(Terraform) 디버깅 활성화 테라폼 계획 출력 terraform plan 테라폼 디버스(debug) 화면 출력 TF_LOG=DEBUG terraform plan 테라폼 디버스(debug) 파일 출력(terraform-debug.log 파일에 저장) TF_LOG=DEBUG TF_LOG_PATH=/tmp/terraform-debug.log terraform plan tail -10f /tmp/terraform-debug.log $ tail -10f /tmp/terraform-debug.log 2021-05-18T14:52:31.226+0900 [WARN] plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavaila.. 더보기
[AWS] CloudFront - ALB 구성 시 보안 강화 방안 AWS CloudFront - ALB 구성 시 보안 강화 방안 CloudFront > Origins and Origin Groups 설정 - X-Origin-Verify : test ALB > 규칙 설정 https://www.notion.so/CloudFront-ALB-f0086dec48b64f0883e0c6de5fd9da4c CloudFront - ALB 구성 시 보안 강화 방안 참고 링크 www.notion.so 더보기
[AWS] AWS 네트워크 방화벽(Network Firewall) 구성 시 라우팅 테이블 설정 AWS 네트워크 방화벽 구성 시 라우팅 테이블 설정 구성도 라우팅 테이블 설정 - IGW 라우팅 테이블(신규 생성) - 방화벽 라우팅 테이블(신규 생성) - 고객(web zone) 라우팅 테이블 https://aws.amazon.com/ko/blogs/networking-and-content-delivery/deployment-models-for-aws-network-firewall/ Deployment models for AWS Network Firewall | Amazon Web Services Introduction AWS services and features are built with security as a top priority. With Amazon Virtual Private Cloud .. 더보기
[Ansible] Amazon Linux에 Ansible AWX를 설치하는 방법 Amazon Linux에 Ansible AWX를 설치하는 방법 AWX 설치 스크립트(테스트 중) cat 더보기
[AWS] Auto Scaling 그룹의 용량을 조정하는 방법 Auto Scaling 그룹의 용량을 조정하는 방법 대상 추적 조정 정책(Target tracking scaling) : 특정 측정치의 목표값을 기준으로 그룹의 desired capacity를 늘리거나 줄입니다. 단계 조정 정책(Step scaling) : 조정값(임계치) 초과의 정도에 따라 desired capacity를 늘리거나 줄입니다. 단순 조정 정책(Simple scaling) : 조정값에 따라 desired capacity를 늘리거나 줄입니다 what-is-amazon-ec2-auto-scaling Amazon EC2 Auto Scaling란 무엇입니까? - Amazon EC2 Auto Scaling 이 페이지에 작업이 필요하다는 점을 알려 주셔서 감사합니다. 실망시켜 드려 죄송합니다. 잠깐 .. 더보기
[Ansible] ansible 인벤토리 설정 파일 ansible 인벤토리 설정 파일 인벤토리 설정 기본적으로 /etc/ansible/hosts 파일 사용한다 > vim /etc/ansible/hosts [aweb21] asweb21 ansible_host=10.21.3.54 ansible_connection=ssh ansible_por=22 ansible_user=ec2-user ansible_ssh_private_key_file=~/aws-key/keyfile.pem asweb22 ansible_host=10.21.4.199 ansible_connection=ssh ansible_por=22 ansible_user=ec2-user ansible_ssh_private_key_file=~/aws-key/keyfile.pem 인벤토리에 등록된 호스트로 핑 .. 더보기
[Ansible] ansible 인벤토리 설정 파일 ansible 인벤토리 설정 파일 인벤토리 설정 기본적으로 /etc/ansible/hosts 파일 사용한다 > vim /etc/ansible/hosts [aweb21] asweb21 ansible_host=10.21.3.54 ansible_connection=ssh ansible_por=22 ansible_user=ec2-user ansible_ssh_private_key_file=~/aws-key/keyfile.pem asweb22 ansible_host=10.21.4.199 ansible_connection=ssh ansible_por=22 ansible_user=ec2-user ansible_ssh_private_key_file=~/aws-key/keyfile.pem 인벤토리에 등록된 호스트로 핑 .. 더보기

반응형