Lb
Creates a Lightsail load balancer resource.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.lightsail.Lb;
import com.pulumi.aws.lightsail.LbArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var test = new Lb("test", LbArgs.builder()
.healthCheckPath("/")
.instancePort("80")
.tags(Map.of("foo", "bar"))
.build());
}
}
Content copied to clipboard
Import
aws_lightsail_lb
can be imported by using the name attribute, e.g.,
$ pulumi import aws:lightsail/lb:Lb test example-load-balancer
Content copied to clipboard
Properties
Link copied to clipboard
The health check path of the load balancer. Default value "/".
Link copied to clipboard
The instance port the load balancer will connect.
Link copied to clipboard
Link copied to clipboard
The public ports of the load balancer.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The support code for the database. Include this code in your email to support when you have questions about a database in Lightsail. This code enables our support team to look up your Lightsail information more easily.
Link copied to clipboard