I can't seem to find any documentation on this. How do I go about changing the VPC for an elasticbeanstalk environment? I have tried changing the security group from the current group to a group in the new VPC, but amazon returns the following error:
SecurityGroups: Invalid option value: 'sg-a91f43d2' (Namespace: 'aws:autoscaling:launchconfiguration', OptionName: 'SecurityGroups'): The security group 'sg-a91f43d2' does not exist
The rule does exist, so I assume it is complaining because the rule is in a different VPC (which is the whole point).
According to their documentation, you can only change the VPC setting while creating the environment.
VPC: Choose a VPC for your environment. You can only change this setting during environment creation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With