Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support for Specifying VPC_ID Per Region for EC2 Instance Creation #8

Open
dheerajoruganty opened this issue Sep 30, 2024 · 0 comments

Comments

@dheerajoruganty
Copy link
Collaborator

Description:

Currently, the implementation uses the default VPC_ID for each region when launching EC2 instances. This behavior limits flexibility, as instances may need to be launched in non-default VPCs depending on the network requirements and configurations for specific regions.

The goal is to allow specifying a custom VPC_ID for each region when creating EC2 instances, overriding the default VPC configuration where needed. This will provide better control over network configurations across different AWS regions.

Requirements:

  • Add support for specifying a custom VPC_ID for each region where instances are being launched.
  • If no custom VPC_ID is provided for a region, continue using the default VPC for that region.
  • Ensure proper validation for the VPC_ID to check whether it is valid and available in the specified region.

Possible Solutions:

  • Extend the current EC2 instance creation logic to accept a VPC_ID parameter specific to each region.
  • If a custom VPC_ID is specified, ensure that the instance is launched within that VPC.
  • Implement validation to ensure that the VPC_ID exists and is properly configured for the region.
  • If no VPC_ID is provided, use the default VPC and log that the default is being used.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant