Endpoint Group
Provides a Global Accelerator endpoint group.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.globalaccelerator.EndpointGroup;
import com.pulumi.aws.globalaccelerator.EndpointGroupArgs;
import com.pulumi.aws.globalaccelerator.inputs.EndpointGroupEndpointConfigurationArgs;
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 example = new EndpointGroup("example", EndpointGroupArgs.builder()
.listenerArn(aws_globalaccelerator_listener.example().id())
.endpointConfigurations(EndpointGroupEndpointConfigurationArgs.builder()
.endpointId(aws_lb.example().arn())
.weight(100)
.build())
.build());
}
}
Content copied to clipboard
Import
Using pulumi import
, import Global Accelerator endpoint groups using the id
. For example:
$ pulumi import aws:globalaccelerator/endpointGroup:EndpointGroup example arn:aws:globalaccelerator::111111111111:accelerator/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/listener/xxxxxxx/endpoint-group/xxxxxxxx
Content copied to clipboard
Properties
Link copied to clipboard
The port that AWS Global Accelerator uses to check the health of endpoints that are part of this endpoint group. The default port is the listener port that this endpoint group is associated with. If listener port is a list of ports, Global Accelerator uses the first port in the list. the provider will only perform drift detection of its value when present in a configuration.
Link copied to clipboard