EcsClusterLayer

class EcsClusterLayer : KotlinCustomResource

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.opsworks.EcsClusterLayer("example", {
stackId: exampleAwsOpsworksStack.id,
ecsClusterArn: exampleAwsEcsCluster.arn,
});
import pulumi
import pulumi_aws as aws
example = aws.opsworks.EcsClusterLayer("example",
stack_id=example_aws_opsworks_stack["id"],
ecs_cluster_arn=example_aws_ecs_cluster["arn"])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.OpsWorks.EcsClusterLayer("example", new()
{
StackId = exampleAwsOpsworksStack.Id,
EcsClusterArn = exampleAwsEcsCluster.Arn,
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/opsworks"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := opsworks.NewEcsClusterLayer(ctx, "example", &opsworks.EcsClusterLayerArgs{
StackId: pulumi.Any(exampleAwsOpsworksStack.Id),
EcsClusterArn: pulumi.Any(exampleAwsEcsCluster.Arn),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.opsworks.EcsClusterLayer;
import com.pulumi.aws.opsworks.EcsClusterLayerArgs;
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 EcsClusterLayer("example", EcsClusterLayerArgs.builder()
.stackId(exampleAwsOpsworksStack.id())
.ecsClusterArn(exampleAwsEcsCluster.arn())
.build());
}
}
resources:
example:
type: aws:opsworks:EcsClusterLayer
properties:
stackId: ${exampleAwsOpsworksStack.id}
ecsClusterArn: ${exampleAwsEcsCluster.arn}

Properties

Link copied to clipboard
val arn: Output<String>

The Amazon Resource Name(ARN) of the layer.

Link copied to clipboard

Whether to automatically assign an elastic IP address to the layer's instances.

Link copied to clipboard

For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances.

Link copied to clipboard
val autoHealing: Output<Boolean>?

Whether to enable auto-healing for the layer.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The ARN of an IAM profile that will be used for the layer's instances.

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

Custom JSON attributes to apply to the layer.

Link copied to clipboard

Ids for a set of security groups to apply to the layer's instances.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Whether to enable Elastic Load Balancing connection draining.

Link copied to clipboard

ebs_volume blocks, as described below, will each create an EBS volume and connect it to the layer's instances.

Link copied to clipboard
val ecsClusterArn: Output<String>

The ECS Cluster ARN of the layer.

Link copied to clipboard

Name of an Elastic Load Balancer to attach to this layer

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

Whether to install OS and package updates on each instance when it boots.

Link copied to clipboard

The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.

Link copied to clipboard
val name: Output<String>

A human-readable name for the layer.

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

ID of the stack the layer will belong to.

Link copied to clipboard
val systemPackages: Output<List<String>>?

Names of a set of system packages to install on the layer's instances.

Link copied to clipboard
val tags: Output<Map<String, String>>?

A mapping of tags to assign to the resource. The following extra optional arguments, all lists of Chef recipe names, allow custom Chef recipes to be applied to layer instances at the five different lifecycle events, if custom cookbooks are enabled on the layer's stack:

Link copied to clipboard
val tagsAll: Output<Map<String, String>>
Link copied to clipboard
val urn: Output<String>
Link copied to clipboard

Whether to use EBS-optimized instances.