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" },
},
});
}
}
Inherited Members
Namespace: Pulumi.Aws.OpsWorks
Assembly: Pulumi.Aws.dll
Syntax
public class Stack : CustomResource
Constructors
View SourceStack(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 SourceAgentVersion
If set to "LATEST", OpsWorks will automatically install the latest version.
Declaration
public Output<string> AgentVersion { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Arn
Declaration
public Output<string> Arn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
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> |
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> |
ConfigurationManagerName
Name of the configuration manager to use. Defaults to "Chef".
Declaration
public Output<string> ConfigurationManagerName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
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> |
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>> |
CustomJson
Custom JSON attributes to apply to the entire stack.
Declaration
public Output<string> CustomJson { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
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> |
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> |
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> |
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> |
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> |
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> |
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> |
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>> |
Name
The name of the stack.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Region
The name of the region where the stack will exist.
Declaration
public Output<string> Region { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
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> |
StackEndpoint
Declaration
public Output<string> StackEndpoint { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
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>> |
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>> |
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>> |
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 SourceGet(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 |