When launching instances, you may see an error stating that a security group and subnet belong to different networks. This error occurs when the security groups and subnets defined in the Elastigroup configuration are not associated with the same virtual private cloud [VPC].
This issue typically appears after configuration changes, such as updating availability zones or reusing security groups across environments.
The steps below explain how to correct the configuration so instances can launch successfully.
Symptoms
You see an error similar to the following during instance launch:
Security group sg‑xxx and subnet subnet‑xxx belong to different networks.
Cause
The Elastigroup configuration includes one or more subnet IDs that are not compatible with the configured security groups. Although both resources exist, they belong to different VPC networks, which AWS does not allow for instance launches.
Solution
-
Open the Elastigroup configuration
In the Flexera console, navigate to Elastigroup, select Groups, and then select the affected Elastigroup.
-
Edit the configuration in JSON mode
Select Actions, then Edit configuration, choose Review, and open the JSON view in Edit mode.
-
Update the subnet configuration
In the
compute.availabilityZonessection, locate thesubnetIdslist.Remove the subnet IDs that are referenced in the error message and do not belong to the same VPC as the configured security groups.
-
Save the configuration
Save your changes and apply the updated configuration.
Related Articles
Security group behavior for nodes with IP persistence in Ocean 5Number of Views Fix the "exceeded the number of VPC security groups allowed per instance" error 4Number of Views Fix the “Failed to import Fargate services” error caused by too many security groups 3Number of Views Resolve Failed to create pod sandbox errors in EKS when assigning IP addresses 3Number of Views Resolve unregistered EKS nodes and cloud-init syntax errors referencing EOF 5Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Revenera Assistant
Case id: 00001065
Activity: Status change: 2 hours ago