RLOpenCatalyst / Service_Workbench_Templates

Templates for AWS Service Workbench from Relevance Lab
7 stars 13 forks source link

Role of vpcId and subnetId in AMI #24

Open BoPeng opened 1 year ago

BoPeng commented 1 year ago

When we build the AIM image using packer, the configuration file has entries for vpcId and subnetId. However, when an EC2 instance is created through SWB, the instance uses another vpcId and subnetId, which is the same as the vpc of the load balancer. Is it normal to have different VPC for the AMI? Should I rebuild the AMI using vpc for the load balancer? Note that I am currently having network problems which may or may not be caused by this issue.