EC2 migration to VPC error systems-manager/automation verifySecurityGroup

0

Hi,

I tried to migrate my EC2-classic to VPC Before using wizard "systems-manager/automation", i have only create an new Security Group in my standalone VPC. My VPC and my EC2 server are all in Ireland, why this error ? I just use "Test" and get security group id created just before How could i resolve it ?

Regards

Step fails when it is Poll action status for completion. Traceback (most recent call last): File "/tmp/6c97ba4a-da4f-4e64-9657-1340b5e9d1e1-2022-05-02-16-03-47/customer_script.py", line 186, in verifysecurityGroup raise Exception('[ERROR] Security Group and Subnet are not in same VPC') Exception: [ERROR] Security Group and Subnet are not in same VPC Exception - [ERROR] Security Group and Subnet are not in same VPC. Please refer to Automation Service Troubleshooting Guide for more diagnosis details.

1개 답변
0

Hi there

According to the error you receive, go to the VPC console, check which VPC is your SubnetID that you are using. Your Security Group must be from the same VPC.The following command describe-subnets example uses a filter to retrieve details for the subnets of the specified VPC.

aws ec2 describe-subnets --filters "Name=vpc-id,Values=vpc-06e4ab6c6cEXAMPLE"

The following coomand will displays information about the security group with the ID sg-88888.

aws ec2 describe-security-groups --group-ids sg-88888 --region us-west-2

Reference :

https://docs.aws.amazon.com/quicksight/latest/user/vpc-finding-setup-information.html#vpc-subnet-id

답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠