RailsAppLayer

Provides an OpsWorks Ruby on Rails application layer resource.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var app = new Aws.OpsWorks.RailsAppLayer("app", new Aws.OpsWorks.RailsAppLayerArgs
        {
            StackId = aws_opsworks_stack.Main.Id,
        });
    }

}
package main

import (
    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/opsworks"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := opsworks.NewRailsAppLayer(ctx, "app", &opsworks.RailsAppLayerArgs{
            StackId: pulumi.String(aws_opsworks_stack.Main.Id),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

app = aws.opsworks.RailsAppLayer("app", stack_id=aws_opsworks_stack["main"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const app = new aws.opsworks.RailsAppLayer("app", {
    stackId: aws_opsworks_stack_main.id,
});

Create a RailsAppLayer Resource

def RailsAppLayer(resource_name, opts=None, app_server=None, auto_assign_elastic_ips=None, auto_assign_public_ips=None, auto_healing=None, bundler_version=None, custom_configure_recipes=None, custom_deploy_recipes=None, custom_instance_profile_arn=None, custom_json=None, custom_security_group_ids=None, custom_setup_recipes=None, custom_shutdown_recipes=None, custom_undeploy_recipes=None, drain_elb_on_shutdown=None, ebs_volumes=None, elastic_load_balancer=None, install_updates_on_boot=None, instance_shutdown_timeout=None, manage_bundler=None, name=None, passenger_version=None, ruby_version=None, rubygems_version=None, stack_id=None, system_packages=None, tags=None, use_ebs_optimized_instances=None, __props__=None);
name string
The unique name of the resource.
args RailsAppLayerArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args RailsAppLayerArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args RailsAppLayerArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

RailsAppLayer Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The RailsAppLayer resource accepts the following input properties:

StackId string

The id of the stack the layer will belong to.

AppServer string

Keyword for the app server to use. Defaults to “apache_passenger”.

AutoAssignElasticIps bool

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

AutoAssignPublicIps bool

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

AutoHealing bool

Whether to enable auto-healing for the layer.

BundlerVersion string

When OpsWorks is managing Bundler, which version to use. Defaults to “1.5.3”.

CustomConfigureRecipes List<string>
CustomDeployRecipes List<string>
CustomInstanceProfileArn string

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

CustomJson string

Custom JSON attributes to apply to the layer.

CustomSecurityGroupIds List<string>

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

CustomSetupRecipes List<string>
CustomShutdownRecipes List<string>
CustomUndeployRecipes List<string>
DrainElbOnShutdown bool

Whether to enable Elastic Load Balancing connection draining.

EbsVolumes List<RailsAppLayerEbsVolumeArgs>

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

ElasticLoadBalancer string

Name of an Elastic Load Balancer to attach to this layer

InstallUpdatesOnBoot bool

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

InstanceShutdownTimeout int

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

ManageBundler bool

Whether OpsWorks should manage bundler. On by default.

Name string

A human-readable name for the layer.

PassengerVersion string

The version of Passenger to use. Defaults to “4.0.46”.

RubyVersion string

The version of Ruby to use. Defaults to “2.0.0”.

RubygemsVersion string

The version of RubyGems to use. Defaults to “2.2.2”.

SystemPackages List<string>

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

Tags Dictionary<string, string>

A map of tags to assign to the resource.

UseEbsOptimizedInstances bool

Whether to use EBS-optimized instances.

StackId string

The id of the stack the layer will belong to.

AppServer string

Keyword for the app server to use. Defaults to “apache_passenger”.

AutoAssignElasticIps bool

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

AutoAssignPublicIps bool

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

AutoHealing bool

Whether to enable auto-healing for the layer.

BundlerVersion string

When OpsWorks is managing Bundler, which version to use. Defaults to “1.5.3”.

CustomConfigureRecipes []string
CustomDeployRecipes []string
CustomInstanceProfileArn string

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

CustomJson string

Custom JSON attributes to apply to the layer.

CustomSecurityGroupIds []string

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

CustomSetupRecipes []string
CustomShutdownRecipes []string
CustomUndeployRecipes []string
DrainElbOnShutdown bool

Whether to enable Elastic Load Balancing connection draining.

EbsVolumes []RailsAppLayerEbsVolume

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

ElasticLoadBalancer string

Name of an Elastic Load Balancer to attach to this layer

InstallUpdatesOnBoot bool

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

InstanceShutdownTimeout int

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

ManageBundler bool

Whether OpsWorks should manage bundler. On by default.

Name string

A human-readable name for the layer.

PassengerVersion string

The version of Passenger to use. Defaults to “4.0.46”.

RubyVersion string

The version of Ruby to use. Defaults to “2.0.0”.

RubygemsVersion string

The version of RubyGems to use. Defaults to “2.2.2”.

SystemPackages []string

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

Tags map[string]string

A map of tags to assign to the resource.

UseEbsOptimizedInstances bool

Whether to use EBS-optimized instances.

stackId string

The id of the stack the layer will belong to.

appServer string

Keyword for the app server to use. Defaults to “apache_passenger”.

autoAssignElasticIps boolean

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

autoAssignPublicIps boolean

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

autoHealing boolean

Whether to enable auto-healing for the layer.

bundlerVersion string

When OpsWorks is managing Bundler, which version to use. Defaults to “1.5.3”.

customConfigureRecipes string[]
customDeployRecipes string[]
customInstanceProfileArn string

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

customJson string

Custom JSON attributes to apply to the layer.

customSecurityGroupIds string[]

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

customSetupRecipes string[]
customShutdownRecipes string[]
customUndeployRecipes string[]
drainElbOnShutdown boolean

Whether to enable Elastic Load Balancing connection draining.

ebsVolumes RailsAppLayerEbsVolume[]

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

elasticLoadBalancer string

Name of an Elastic Load Balancer to attach to this layer

installUpdatesOnBoot boolean

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

instanceShutdownTimeout number

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

manageBundler boolean

Whether OpsWorks should manage bundler. On by default.

name string

A human-readable name for the layer.

passengerVersion string

The version of Passenger to use. Defaults to “4.0.46”.

rubyVersion string

The version of Ruby to use. Defaults to “2.0.0”.

rubygemsVersion string

The version of RubyGems to use. Defaults to “2.2.2”.

systemPackages string[]

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

tags {[key: string]: string}

A map of tags to assign to the resource.

useEbsOptimizedInstances boolean

Whether to use EBS-optimized instances.

stack_id str

The id of the stack the layer will belong to.

app_server str

Keyword for the app server to use. Defaults to “apache_passenger”.

auto_assign_elastic_ips bool

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

auto_assign_public_ips bool

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

auto_healing bool

Whether to enable auto-healing for the layer.

bundler_version str

When OpsWorks is managing Bundler, which version to use. Defaults to “1.5.3”.

custom_configure_recipes List[str]
custom_deploy_recipes List[str]
custom_instance_profile_arn str

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

custom_json str

Custom JSON attributes to apply to the layer.

custom_security_group_ids List[str]

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

custom_setup_recipes List[str]
custom_shutdown_recipes List[str]
custom_undeploy_recipes List[str]
drain_elb_on_shutdown bool

Whether to enable Elastic Load Balancing connection draining.

ebs_volumes List[RailsAppLayerEbsVolume]

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

elastic_load_balancer str

Name of an Elastic Load Balancer to attach to this layer

install_updates_on_boot bool

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

instance_shutdown_timeout float

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

manage_bundler bool

Whether OpsWorks should manage bundler. On by default.

name str

A human-readable name for the layer.

passenger_version str

The version of Passenger to use. Defaults to “4.0.46”.

ruby_version str

The version of Ruby to use. Defaults to “2.0.0”.

rubygems_version str

The version of RubyGems to use. Defaults to “2.2.2”.

system_packages List[str]

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

tags Dict[str, str]

A map of tags to assign to the resource.

use_ebs_optimized_instances bool

Whether to use EBS-optimized instances.

Outputs

All input properties are implicitly available as output properties. Additionally, the RailsAppLayer resource produces the following output properties:

Arn string

The Amazon Resource Name(ARN) of the layer.

Id string
The provider-assigned unique ID for this managed resource.
Arn string

The Amazon Resource Name(ARN) of the layer.

Id string
The provider-assigned unique ID for this managed resource.
arn string

The Amazon Resource Name(ARN) of the layer.

id string
The provider-assigned unique ID for this managed resource.
arn str

The Amazon Resource Name(ARN) of the layer.

id str
The provider-assigned unique ID for this managed resource.

Look up an Existing RailsAppLayer Resource

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

public static get(name: string, id: Input<ID>, state?: RailsAppLayerState, opts?: CustomResourceOptions): RailsAppLayer
static get(resource_name, id, opts=None, app_server=None, arn=None, auto_assign_elastic_ips=None, auto_assign_public_ips=None, auto_healing=None, bundler_version=None, custom_configure_recipes=None, custom_deploy_recipes=None, custom_instance_profile_arn=None, custom_json=None, custom_security_group_ids=None, custom_setup_recipes=None, custom_shutdown_recipes=None, custom_undeploy_recipes=None, drain_elb_on_shutdown=None, ebs_volumes=None, elastic_load_balancer=None, install_updates_on_boot=None, instance_shutdown_timeout=None, manage_bundler=None, name=None, passenger_version=None, ruby_version=None, rubygems_version=None, stack_id=None, system_packages=None, tags=None, use_ebs_optimized_instances=None, __props__=None);
func GetRailsAppLayer(ctx *Context, name string, id IDInput, state *RailsAppLayerState, opts ...ResourceOption) (*RailsAppLayer, error)
public static RailsAppLayer Get(string name, Input<string> id, RailsAppLayerState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

AppServer string

Keyword for the app server to use. Defaults to “apache_passenger”.

Arn string

The Amazon Resource Name(ARN) of the layer.

AutoAssignElasticIps bool

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

AutoAssignPublicIps bool

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

AutoHealing bool

Whether to enable auto-healing for the layer.

BundlerVersion string

When OpsWorks is managing Bundler, which version to use. Defaults to “1.5.3”.

CustomConfigureRecipes List<string>
CustomDeployRecipes List<string>
CustomInstanceProfileArn string

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

CustomJson string

Custom JSON attributes to apply to the layer.

CustomSecurityGroupIds List<string>

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

CustomSetupRecipes List<string>
CustomShutdownRecipes List<string>
CustomUndeployRecipes List<string>
DrainElbOnShutdown bool

Whether to enable Elastic Load Balancing connection draining.

EbsVolumes List<RailsAppLayerEbsVolumeArgs>

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

ElasticLoadBalancer string

Name of an Elastic Load Balancer to attach to this layer

InstallUpdatesOnBoot bool

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

InstanceShutdownTimeout int

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

ManageBundler bool

Whether OpsWorks should manage bundler. On by default.

Name string

A human-readable name for the layer.

PassengerVersion string

The version of Passenger to use. Defaults to “4.0.46”.

RubyVersion string

The version of Ruby to use. Defaults to “2.0.0”.

RubygemsVersion string

The version of RubyGems to use. Defaults to “2.2.2”.

StackId string

The id of the stack the layer will belong to.

SystemPackages List<string>

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

Tags Dictionary<string, string>

A map of tags to assign to the resource.

UseEbsOptimizedInstances bool

Whether to use EBS-optimized instances.

AppServer string

Keyword for the app server to use. Defaults to “apache_passenger”.

Arn string

The Amazon Resource Name(ARN) of the layer.

AutoAssignElasticIps bool

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

AutoAssignPublicIps bool

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

AutoHealing bool

Whether to enable auto-healing for the layer.

BundlerVersion string

When OpsWorks is managing Bundler, which version to use. Defaults to “1.5.3”.

CustomConfigureRecipes []string
CustomDeployRecipes []string
CustomInstanceProfileArn string

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

CustomJson string

Custom JSON attributes to apply to the layer.

CustomSecurityGroupIds []string

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

CustomSetupRecipes []string
CustomShutdownRecipes []string
CustomUndeployRecipes []string
DrainElbOnShutdown bool

Whether to enable Elastic Load Balancing connection draining.

EbsVolumes []RailsAppLayerEbsVolume

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

ElasticLoadBalancer string

Name of an Elastic Load Balancer to attach to this layer

InstallUpdatesOnBoot bool

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

InstanceShutdownTimeout int

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

ManageBundler bool

Whether OpsWorks should manage bundler. On by default.

Name string

A human-readable name for the layer.

PassengerVersion string

The version of Passenger to use. Defaults to “4.0.46”.

RubyVersion string

The version of Ruby to use. Defaults to “2.0.0”.

RubygemsVersion string

The version of RubyGems to use. Defaults to “2.2.2”.

StackId string

The id of the stack the layer will belong to.

SystemPackages []string

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

Tags map[string]string

A map of tags to assign to the resource.

UseEbsOptimizedInstances bool

Whether to use EBS-optimized instances.

appServer string

Keyword for the app server to use. Defaults to “apache_passenger”.

arn string

The Amazon Resource Name(ARN) of the layer.

autoAssignElasticIps boolean

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

autoAssignPublicIps boolean

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

autoHealing boolean

Whether to enable auto-healing for the layer.

bundlerVersion string

When OpsWorks is managing Bundler, which version to use. Defaults to “1.5.3”.

customConfigureRecipes string[]
customDeployRecipes string[]
customInstanceProfileArn string

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

customJson string

Custom JSON attributes to apply to the layer.

customSecurityGroupIds string[]

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

customSetupRecipes string[]
customShutdownRecipes string[]
customUndeployRecipes string[]
drainElbOnShutdown boolean

Whether to enable Elastic Load Balancing connection draining.

ebsVolumes RailsAppLayerEbsVolume[]

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

elasticLoadBalancer string

Name of an Elastic Load Balancer to attach to this layer

installUpdatesOnBoot boolean

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

instanceShutdownTimeout number

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

manageBundler boolean

Whether OpsWorks should manage bundler. On by default.

name string

A human-readable name for the layer.

passengerVersion string

The version of Passenger to use. Defaults to “4.0.46”.

rubyVersion string

The version of Ruby to use. Defaults to “2.0.0”.

rubygemsVersion string

The version of RubyGems to use. Defaults to “2.2.2”.

stackId string

The id of the stack the layer will belong to.

systemPackages string[]

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

tags {[key: string]: string}

A map of tags to assign to the resource.

useEbsOptimizedInstances boolean

Whether to use EBS-optimized instances.

app_server str

Keyword for the app server to use. Defaults to “apache_passenger”.

arn str

The Amazon Resource Name(ARN) of the layer.

auto_assign_elastic_ips bool

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

auto_assign_public_ips bool

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

auto_healing bool

Whether to enable auto-healing for the layer.

bundler_version str

When OpsWorks is managing Bundler, which version to use. Defaults to “1.5.3”.

custom_configure_recipes List[str]
custom_deploy_recipes List[str]
custom_instance_profile_arn str

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

custom_json str

Custom JSON attributes to apply to the layer.

custom_security_group_ids List[str]

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

custom_setup_recipes List[str]
custom_shutdown_recipes List[str]
custom_undeploy_recipes List[str]
drain_elb_on_shutdown bool

Whether to enable Elastic Load Balancing connection draining.

ebs_volumes List[RailsAppLayerEbsVolume]

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

elastic_load_balancer str

Name of an Elastic Load Balancer to attach to this layer

install_updates_on_boot bool

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

instance_shutdown_timeout float

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

manage_bundler bool

Whether OpsWorks should manage bundler. On by default.

name str

A human-readable name for the layer.

passenger_version str

The version of Passenger to use. Defaults to “4.0.46”.

ruby_version str

The version of Ruby to use. Defaults to “2.0.0”.

rubygems_version str

The version of RubyGems to use. Defaults to “2.2.2”.

stack_id str

The id of the stack the layer will belong to.

system_packages List[str]

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

tags Dict[str, str]

A map of tags to assign to the resource.

use_ebs_optimized_instances bool

Whether to use EBS-optimized instances.

Supporting Types

RailsAppLayerEbsVolume

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

MountPoint string

The path to mount the EBS volume on the layer’s instances.

NumberOfDisks int

The number of disks to use for the EBS volume.

Size int

The size of the volume in gigabytes.

Encrypted bool
Iops int

For PIOPS volumes, the IOPS per disk.

RaidLevel string

The RAID level to use for the volume.

Type string

The type of volume to create. This may be standard (the default), io1 or gp2.

MountPoint string

The path to mount the EBS volume on the layer’s instances.

NumberOfDisks int

The number of disks to use for the EBS volume.

Size int

The size of the volume in gigabytes.

Encrypted bool
Iops int

For PIOPS volumes, the IOPS per disk.

RaidLevel string

The RAID level to use for the volume.

Type string

The type of volume to create. This may be standard (the default), io1 or gp2.

mountPoint string

The path to mount the EBS volume on the layer’s instances.

numberOfDisks number

The number of disks to use for the EBS volume.

size number

The size of the volume in gigabytes.

encrypted boolean
iops number

For PIOPS volumes, the IOPS per disk.

raidLevel string

The RAID level to use for the volume.

type string

The type of volume to create. This may be standard (the default), io1 or gp2.

mountPoint str

The path to mount the EBS volume on the layer’s instances.

numberOfDisks float

The number of disks to use for the EBS volume.

size float

The size of the volume in gigabytes.

encrypted bool
iops float

For PIOPS volumes, the IOPS per disk.

raidLevel str

The RAID level to use for the volume.

type str

The type of volume to create. This may be standard (the default), io1 or gp2.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.