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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南