Activation

Provides a ECS Activation resource. For information about ECS Activation and how to use it, see What is Activation.

NOTE: Available in v1.177.0+.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.ecs.Activation;
import com.pulumi.alicloud.ecs.ActivationArgs;
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 Activation("example", ActivationArgs.builder()
.description(var_.name())
.instanceCount(10)
.instanceName(var_.name())
.ipAddressRange("0.0.0.0/0")
.timeToLiveInHours(4)
.build());
}
}

Import

ECS Activation can be imported using the id, e.g.

$ pulumi import alicloud:ecs/activation:Activation example <id>

Properties

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

The description of the activation code. The description can be 1 to 100 characters in length and cannot start with http:// or https://.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val instanceCount: Output<Int>

The maximum number of times that the activation code can be used to register managed instances. Valid values: 1 to 1000. Default value: 10.

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

The default instance name prefix. The instance name prefix must be 1 to 50 characters in length. It must start with a letter and cannot start with http:// or https://. The instance name prefix can contain only letters, digits, periods (.), underscores (_), hyphens (-), and colons (:).

Link copied to clipboard
val ipAddressRange: Output<String>

The IP addresses of hosts that are allowed to use the activation code. The value can be IPv4 addresses, IPv6 addresses, or CIDR blocks.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val timeToLiveInHours: Output<Int>

The validity period of the activation code. The activation code cannot be used to register new instances after the validity period expires. Unit: hours. Valid values: 1 to 24. Default value: 4.

Link copied to clipboard
val urn: Output<String>