Show / Hide Table of Contents

Class Stack

Provides an OpsWorks stack resource.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var main = new Aws.OpsWorks.Stack("main", new Aws.OpsWorks.StackArgs
    {
        CustomJson = @"{
""foobar"": {
""version"": ""1.0.0""
}
}

",
        DefaultInstanceProfileArn = aws_iam_instance_profile.Opsworks.Arn,
        Region = "us-west-1",
        ServiceRoleArn = aws_iam_role.Opsworks.Arn,
        Tags = 
        {
            { "Name", "foobar-stack" },
        },
    });
}

}
Inheritance
System.Object
Resource
CustomResource
Stack
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.OpsWorks
Assembly: Pulumi.Aws.dll
Syntax
public class Stack : CustomResource

Constructors

View Source

Stack(String, StackArgs, CustomResourceOptions)

Create a Stack resource with the given unique name, arguments, and options.

Declaration
public Stack(string name, StackArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

StackArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

AgentVersion

If set to "LATEST", OpsWorks will automatically install the latest version.

Declaration
public Output<string> AgentVersion { get; }
Property Value
Type Description
Output<System.String>
View Source

Arn

Declaration
public Output<string> Arn { get; }
Property Value
Type Description
Output<System.String>
View Source

BerkshelfVersion

If manage_berkshelf is enabled, the version of Berkshelf to use.

Declaration
public Output<string> BerkshelfVersion { get; }
Property Value
Type Description
Output<System.String>
View Source

Color

Color to paint next to the stack's resources in the OpsWorks console.

Declaration
public Output<string> Color { get; }
Property Value
Type Description
Output<System.String>
View Source

ConfigurationManagerName

Name of the configuration manager to use. Defaults to "Chef".

Declaration
public Output<string> ConfigurationManagerName { get; }
Property Value
Type Description
Output<System.String>
View Source

ConfigurationManagerVersion

Version of the configuration manager to use. Defaults to "11.4".

Declaration
public Output<string> ConfigurationManagerVersion { get; }
Property Value
Type Description
Output<System.String>
View Source

CustomCookbooksSources

When use_custom_cookbooks is set, provide this sub-object as described below.

Declaration
public Output<ImmutableArray<StackCustomCookbooksSource>> CustomCookbooksSources { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<StackCustomCookbooksSource>>
View Source

CustomJson

Custom JSON attributes to apply to the entire stack.

Declaration
public Output<string> CustomJson { get; }
Property Value
Type Description
Output<System.String>
View Source

DefaultAvailabilityZone

Name of the availability zone where instances will be created by default. This is required unless you set vpc_id.

Declaration
public Output<string> DefaultAvailabilityZone { get; }
Property Value
Type Description
Output<System.String>
View Source

DefaultInstanceProfileArn

The ARN of an IAM Instance Profile that created instances will have by default.

Declaration
public Output<string> DefaultInstanceProfileArn { get; }
Property Value
Type Description
Output<System.String>
View Source

DefaultOs

Name of OS that will be installed on instances by default.

Declaration
public Output<string> DefaultOs { get; }
Property Value
Type Description
Output<System.String>
View Source

DefaultRootDeviceType

Name of the type of root device instances will have by default.

Declaration
public Output<string> DefaultRootDeviceType { get; }
Property Value
Type Description
Output<System.String>
View Source

DefaultSshKeyName

Name of the SSH keypair that instances will have by default.

Declaration
public Output<string> DefaultSshKeyName { get; }
Property Value
Type Description
Output<System.String>
View Source

DefaultSubnetId

Id of the subnet in which instances will be created by default. Mandatory if vpc_id is set, and forbidden if it isn't.

Declaration
public Output<string> DefaultSubnetId { get; }
Property Value
Type Description
Output<System.String>
View Source

HostnameTheme

Keyword representing the naming scheme that will be used for instance hostnames within this stack.

Declaration
public Output<string> HostnameTheme { get; }
Property Value
Type Description
Output<System.String>
View Source

ManageBerkshelf

Boolean value controlling whether Opsworks will run Berkshelf for this stack.

Declaration
public Output<bool?> ManageBerkshelf { get; }
Property Value
Type Description
Output<System.Nullable<System.Boolean>>
View Source

Name

The name of the stack.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

Region

The name of the region where the stack will exist.

Declaration
public Output<string> Region { get; }
Property Value
Type Description
Output<System.String>
View Source

ServiceRoleArn

The ARN of an IAM role that the OpsWorks service will act as.

Declaration
public Output<string> ServiceRoleArn { get; }
Property Value
Type Description
Output<System.String>
View Source

StackEndpoint

Declaration
public Output<string> StackEndpoint { get; }
Property Value
Type Description
Output<System.String>
View Source

Tags

A map of tags to assign to the resource.

Declaration
public Output<ImmutableDictionary<string, object>> Tags { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>>
View Source

UseCustomCookbooks

Boolean value controlling whether the custom cookbook settings are enabled.

Declaration
public Output<bool?> UseCustomCookbooks { get; }
Property Value
Type Description
Output<System.Nullable<System.Boolean>>
View Source

UseOpsworksSecurityGroups

Boolean value controlling whether the standard OpsWorks security groups apply to created instances.

Declaration
public Output<bool?> UseOpsworksSecurityGroups { get; }
Property Value
Type Description
Output<System.Nullable<System.Boolean>>
View Source

VpcId

The id of the VPC that this stack belongs to.

Declaration
public Output<string> VpcId { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, StackState, CustomResourceOptions)

Get an existing Stack resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static Stack Get(string name, Input<string> id, StackState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

StackState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
Stack
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.