1 Answer
- Newest
- Most votes
- Most comments
1
Is there a way to get this to be the default? Looking at the documentation it appears that the answer to that is no
Hi. Unfortunately, you can’t.
Can I make an existing VPC the default VPC or restore a deleted default VPC in Amazon VPC? You can't select an existing non-default VPC as your new default VPC. You also can't restore a previous default VPC that you deleted.
https://repost.aws/knowledge-center/deleted-default-vpc
probably, you must specify security group id to overcome the issue.
For security groups in a nondefault VPC, you must specify the security group ID
https://docs.aws.amazon.com/powershell/latest/reference/items/Grant-EC2SecurityGroupIngress.html
Relevant content
- Accepted Answerasked a year ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
So I understand that I am not able to make a VPC the default but how do I overcome the error that I am getting in that case?
Sorry. I‘ve updated my answer.
Thank you. That did seem to fix it. Before I was using the groupName parameter to specify the security group. When I switched to groupId it worked. Bit of a misleading error message!