# NOT RUN {
# This example creates an Internet-facing load balancer and enables the
# Availability Zones for the specified subnets.
svc$create_load_balancer(
Name = "my-load-balancer",
Subnets = list(
"subnet-b7d581c0",
"subnet-8360a9e7"
)
)
# This example creates an internal load balancer and enables the
# Availability Zones for the specified subnets.
svc$create_load_balancer(
Name = "my-internal-load-balancer",
Scheme = "internal",
SecurityGroups = list(),
Subnets = list(
"subnet-b7d581c0",
"subnet-8360a9e7"
)
)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab