MachineGroup

class MachineGroup : KotlinCustomResource

Log Service manages all the ECS instances whose logs need to be collected by using the Logtail client in the form of machine groups. Refer to details

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.random.RandomInteger;
import com.pulumi.random.RandomIntegerArgs;
import com.pulumi.alicloud.log.Project;
import com.pulumi.alicloud.log.ProjectArgs;
import com.pulumi.alicloud.log.MachineGroup;
import com.pulumi.alicloud.log.MachineGroupArgs;
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 default_ = new RandomInteger("default", RandomIntegerArgs.builder()
.max(99999)
.min(10000)
.build());
var exampleProject = new Project("exampleProject", ProjectArgs.builder()
.description("terraform-example")
.build());
var exampleMachineGroup = new MachineGroup("exampleMachineGroup", MachineGroupArgs.builder()
.project(exampleProject.name())
.identifyType("ip")
.topic("terraform")
.identifyLists(
"10.0.0.1",
"10.0.0.2")
.build());
}
}

Module Support

You can use the existing sls-logtail module to create logtail config, machine group, install logtail on ECS instances and join instances into machine group one-click.

Import

Log machine group can be imported using the id, e.g.

$ pulumi import alicloud:log/machineGroup:MachineGroup example tf-log:tf-machine-group

Properties

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val identifyLists: Output<List<String>>

The specific machine identification, which can be an IP address or user-defined identity.

Link copied to clipboard
val identifyType: Output<String>?

The machine identification type, including IP and user-defined identity. Valid values are "ip" and "userdefined". Default to "ip".

Link copied to clipboard
val name: Output<String>

The machine group name, which is unique in the same project.

Link copied to clipboard
val project: Output<String>

The project name to the machine group belongs.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val topic: Output<String>?

The topic of a machine group.

Link copied to clipboard
val urn: Output<String>