Ecs Cluster Layer
Provides an OpsWorks ECS Cluster layer resource.
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,
});Content copied to clipboard
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"])Content copied to clipboard
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,
});
});Content copied to clipboard
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
})
}Content copied to clipboard
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());
}
}Content copied to clipboard
resources:
example:
type: aws:opsworks:EcsClusterLayer
properties:
stackId: ${exampleAwsOpsworksStack.id}
ecsClusterArn: ${exampleAwsEcsCluster.arn}Content copied to clipboard
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard