Creates a Lightsail load balancer
Source:R/lightsail_operations.R
lightsail_create_load_balancer.RdCreates a Lightsail load balancer. To learn more about deciding whether to load balance your application, see Configure your Lightsail instances for load balancing. You can create up to 10 load balancers per AWS Region in your account.
See https://www.paws-r-sdk.com/docs/lightsail_create_load_balancer/ for full documentation.
Usage
lightsail_create_load_balancer(
loadBalancerName,
instancePort,
healthCheckPath = NULL,
certificateName = NULL,
certificateDomainName = NULL,
certificateAlternativeNames = NULL,
tags = NULL,
ipAddressType = NULL,
tlsPolicyName = NULL
)Arguments
- loadBalancerName
[required] The name of your load balancer.
- instancePort
[required] The instance port where you're creating your load balancer.
- healthCheckPath
The path you provided to perform the load balancer health check. If you didn't specify a health check path, Lightsail uses the root path of your website (
"/").You may want to specify a custom health check path other than the root of your application if your home page loads slowly or has a lot of media or scripting on it.
- certificateName
The name of the SSL/TLS certificate.
If you specify
certificateName, thencertificateDomainNameis required (and vice-versa).- certificateDomainName
The domain name with which your certificate is associated (
example.com).If you specify
certificateDomainName, thencertificateNameis required (and vice-versa).- certificateAlternativeNames
The optional alternative domains and subdomains to use with your SSL/TLS certificate (
www.example.com,example.com,m.example.com,blog.example.com).The tag keys and optional values to add to the resource during create.
Use the
tag_resourceaction to tag a resource after it's created.- ipAddressType
The IP address type for the load balancer.
The possible values are
ipv4for IPv4 only,ipv6for IPv6 only, anddualstackfor IPv4 and IPv6.The default value is
dualstack.- tlsPolicyName
The name of the TLS policy to apply to the load balancer.
Use the
get_load_balancer_tls_policiesaction to get a list of TLS policy names that you can specify.For more information about load balancer TLS policies, see Configuring TLS security policies on your Amazon Lightsail load balancers in the Amazon Lightsail Developer Guide.