This message was deleted.
# aws
s
This message was deleted.
l
Are you creating your own shared load balancer and providing it to the elasticbeanstalk Environment, or using one that elasticbeanstalk creates for you?
a
Copy code
aws.elasticbeanstalk.EnvironmentAllSettingArgs(                 namespace="aws:elasticbeanstalk:environment",                  name="LoadBalancerType",
                    value="application)
Only configuring the EB provides
l
elasticbeanstalk allows you to use a shared load balancer, which makes this very easy and reduces costs, but is initially more difficult to set up.
Or it can create the LB for you.
If you've got a multi-instance Environment and a non-shared load balancer, I would imagine that the LB uses the same subnets as your application. So hopefully you just need to pass in an array of 2 private subnets, 1 in each AZ.
All the examples I'm finding are single-instance though 😞
a
An array then?, I'll try something and see what comes up, I appreciate your time to help me 🙏
l
The code in the doc page only uses a string, but an array makes more sense to me. The AWS docs all seem to use the console for everything... 😠
a
Forgot to answer what happened in this case, for anyone who runs into the same issue: if you're attaching Subnets on the enviroment settings of a EB, it's just
value="subnet-1","subnet-2"
👍 1