From 4b775a69e6e2256c3ce7ebaf6c8a6492b7a1bbaa Mon Sep 17 00:00:00 2001 From: WAFriend3416 <127187396+WAFriend3416@users.noreply.github.com> Date: Mon, 9 Mar 2026 21:25:01 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=8F=99=EC=A0=81=20=EC=9D=B8=EB=B2=A4?= =?UTF-8?q?=ED=86=A0=EB=A6=AC=20SSM=20=EC=97=B0=EA=B2=B0=20=EC=84=A4?= =?UTF-8?q?=EC=A0=95=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ansible_host를 private_ip → instance_id로 변경 (SSM 접속용). compose에 ansible_connection: aws_ssm 명시하여 SSH 대신 SSM 사용. --- IaC/3-v3/ansible/inventory/aws_ec2.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/IaC/3-v3/ansible/inventory/aws_ec2.yaml b/IaC/3-v3/ansible/inventory/aws_ec2.yaml index 52450e9..0fd7aec 100644 --- a/IaC/3-v3/ansible/inventory/aws_ec2.yaml +++ b/IaC/3-v3/ansible/inventory/aws_ec2.yaml @@ -26,8 +26,11 @@ hostnames: - private-ip-address compose: - ansible_host: private_ip_address + ansible_host: instance_id + ansible_connection: "'aws_ssm'" + ansible_aws_ssm_region: "'ap-northeast-2'" ansible_user: ubuntu k8s_role: tags['k8s:role'] k8s_nodepool: tags['k8s:nodepool'] node_az: placement.availability_zone + private_ip: private_ip_address