简体   繁体   中英

How to add inbound rule to AWS security group with my default VPC?

I want to add inbound rule to security group with my default VPC. I removed default VPC from a zone and added a default VPC. But I get fault below :

"[AmazonServiceException: Status Code: 400, AWS Service: AmazonEC2, AWS Request ID: c99a21bb-c798-4938-994f-ef8b89c64a72, AWS Error Code: VPCIdNotSpecified, AWS Error Message: No default VPC for this user]"

I can add ingress rule on AWS but I can't this on my project which is developed with AWS API.

How can I do?

I solved. While I am adding rule, I post security groupId instead of groupName.

If you are a “VPC Only” customer, and have your Default VPC deleted, then during ingress action , you need to specify the VPC ID (or subnet ID of another VPC). If you do not specify it, then default VPC will be presumed.

In your case, it seems like you have your default VPC deleted. OR You are not passing the VPC ID (or subnet ID of another VPC).

So Either pass the VPC ID (or subnet ID of another VPC) OR have AWS technical support create a new default VPC for you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM