aws.opsworks.RailsAppLayer
Explore with Pulumi AI
Provides an OpsWorks Ruby on Rails application layer resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const app = new aws.opsworks.RailsAppLayer("app", {stackId: main.id});
import pulumi
import pulumi_aws as aws
app = aws.opsworks.RailsAppLayer("app", stack_id=main["id"])
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.NewRailsAppLayer(ctx, "app", &opsworks.RailsAppLayerArgs{
StackId: pulumi.Any(main.Id),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var app = new Aws.OpsWorks.RailsAppLayer("app", new()
{
StackId = main.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.opsworks.RailsAppLayer;
import com.pulumi.aws.opsworks.RailsAppLayerArgs;
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 app = new RailsAppLayer("app", RailsAppLayerArgs.builder()
.stackId(main.id())
.build());
}
}
resources:
app:
type: aws:opsworks:RailsAppLayer
properties:
stackId: ${main.id}
Create RailsAppLayer Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RailsAppLayer(name: string, args: RailsAppLayerArgs, opts?: CustomResourceOptions);
@overload
def RailsAppLayer(resource_name: str,
args: RailsAppLayerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RailsAppLayer(resource_name: str,
opts: Optional[ResourceOptions] = None,
stack_id: Optional[str] = None,
drain_elb_on_shutdown: Optional[bool] = None,
system_packages: Optional[Sequence[str]] = None,
auto_healing: Optional[bool] = None,
bundler_version: Optional[str] = None,
cloudwatch_configuration: Optional[RailsAppLayerCloudwatchConfigurationArgs] = None,
custom_configure_recipes: Optional[Sequence[str]] = None,
custom_deploy_recipes: Optional[Sequence[str]] = None,
custom_instance_profile_arn: Optional[str] = None,
custom_json: Optional[str] = None,
custom_security_group_ids: Optional[Sequence[str]] = None,
custom_setup_recipes: Optional[Sequence[str]] = None,
custom_shutdown_recipes: Optional[Sequence[str]] = None,
use_ebs_optimized_instances: Optional[bool] = None,
auto_assign_public_ips: Optional[bool] = None,
load_based_auto_scaling: Optional[RailsAppLayerLoadBasedAutoScalingArgs] = None,
elastic_load_balancer: Optional[str] = None,
install_updates_on_boot: Optional[bool] = None,
instance_shutdown_timeout: Optional[int] = None,
ebs_volumes: Optional[Sequence[RailsAppLayerEbsVolumeArgs]] = None,
manage_bundler: Optional[bool] = None,
name: Optional[str] = None,
passenger_version: Optional[str] = None,
ruby_version: Optional[str] = None,
rubygems_version: Optional[str] = None,
auto_assign_elastic_ips: Optional[bool] = None,
app_server: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
custom_undeploy_recipes: Optional[Sequence[str]] = None)
func NewRailsAppLayer(ctx *Context, name string, args RailsAppLayerArgs, opts ...ResourceOption) (*RailsAppLayer, error)
public RailsAppLayer(string name, RailsAppLayerArgs args, CustomResourceOptions? opts = null)
public RailsAppLayer(String name, RailsAppLayerArgs args)
public RailsAppLayer(String name, RailsAppLayerArgs args, CustomResourceOptions options)
type: aws:opsworks:RailsAppLayer
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- 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.
- args RailsAppLayerArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control 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.
- name String
- The unique name of the resource.
- args RailsAppLayerArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var railsAppLayerResource = new Aws.OpsWorks.RailsAppLayer("railsAppLayerResource", new()
{
StackId = "string",
DrainElbOnShutdown = false,
SystemPackages = new[]
{
"string",
},
AutoHealing = false,
BundlerVersion = "string",
CloudwatchConfiguration = new Aws.OpsWorks.Inputs.RailsAppLayerCloudwatchConfigurationArgs
{
Enabled = false,
LogStreams = new[]
{
new Aws.OpsWorks.Inputs.RailsAppLayerCloudwatchConfigurationLogStreamArgs
{
File = "string",
LogGroupName = "string",
BatchCount = 0,
BatchSize = 0,
BufferDuration = 0,
DatetimeFormat = "string",
Encoding = "string",
FileFingerprintLines = "string",
InitialPosition = "string",
MultilineStartPattern = "string",
TimeZone = "string",
},
},
},
CustomConfigureRecipes = new[]
{
"string",
},
CustomDeployRecipes = new[]
{
"string",
},
CustomInstanceProfileArn = "string",
CustomJson = "string",
CustomSecurityGroupIds = new[]
{
"string",
},
CustomSetupRecipes = new[]
{
"string",
},
CustomShutdownRecipes = new[]
{
"string",
},
UseEbsOptimizedInstances = false,
AutoAssignPublicIps = false,
LoadBasedAutoScaling = new Aws.OpsWorks.Inputs.RailsAppLayerLoadBasedAutoScalingArgs
{
Downscaling = new Aws.OpsWorks.Inputs.RailsAppLayerLoadBasedAutoScalingDownscalingArgs
{
Alarms = new[]
{
"string",
},
CpuThreshold = 0,
IgnoreMetricsTime = 0,
InstanceCount = 0,
LoadThreshold = 0,
MemoryThreshold = 0,
ThresholdsWaitTime = 0,
},
Enable = false,
Upscaling = new Aws.OpsWorks.Inputs.RailsAppLayerLoadBasedAutoScalingUpscalingArgs
{
Alarms = new[]
{
"string",
},
CpuThreshold = 0,
IgnoreMetricsTime = 0,
InstanceCount = 0,
LoadThreshold = 0,
MemoryThreshold = 0,
ThresholdsWaitTime = 0,
},
},
ElasticLoadBalancer = "string",
InstallUpdatesOnBoot = false,
InstanceShutdownTimeout = 0,
EbsVolumes = new[]
{
new Aws.OpsWorks.Inputs.RailsAppLayerEbsVolumeArgs
{
MountPoint = "string",
NumberOfDisks = 0,
Size = 0,
Encrypted = false,
Iops = 0,
RaidLevel = "string",
Type = "string",
},
},
ManageBundler = false,
Name = "string",
PassengerVersion = "string",
RubyVersion = "string",
RubygemsVersion = "string",
AutoAssignElasticIps = false,
AppServer = "string",
Tags =
{
{ "string", "string" },
},
CustomUndeployRecipes = new[]
{
"string",
},
});
example, err := opsworks.NewRailsAppLayer(ctx, "railsAppLayerResource", &opsworks.RailsAppLayerArgs{
StackId: pulumi.String("string"),
DrainElbOnShutdown: pulumi.Bool(false),
SystemPackages: pulumi.StringArray{
pulumi.String("string"),
},
AutoHealing: pulumi.Bool(false),
BundlerVersion: pulumi.String("string"),
CloudwatchConfiguration: &opsworks.RailsAppLayerCloudwatchConfigurationArgs{
Enabled: pulumi.Bool(false),
LogStreams: opsworks.RailsAppLayerCloudwatchConfigurationLogStreamArray{
&opsworks.RailsAppLayerCloudwatchConfigurationLogStreamArgs{
File: pulumi.String("string"),
LogGroupName: pulumi.String("string"),
BatchCount: pulumi.Int(0),
BatchSize: pulumi.Int(0),
BufferDuration: pulumi.Int(0),
DatetimeFormat: pulumi.String("string"),
Encoding: pulumi.String("string"),
FileFingerprintLines: pulumi.String("string"),
InitialPosition: pulumi.String("string"),
MultilineStartPattern: pulumi.String("string"),
TimeZone: pulumi.String("string"),
},
},
},
CustomConfigureRecipes: pulumi.StringArray{
pulumi.String("string"),
},
CustomDeployRecipes: pulumi.StringArray{
pulumi.String("string"),
},
CustomInstanceProfileArn: pulumi.String("string"),
CustomJson: pulumi.String("string"),
CustomSecurityGroupIds: pulumi.StringArray{
pulumi.String("string"),
},
CustomSetupRecipes: pulumi.StringArray{
pulumi.String("string"),
},
CustomShutdownRecipes: pulumi.StringArray{
pulumi.String("string"),
},
UseEbsOptimizedInstances: pulumi.Bool(false),
AutoAssignPublicIps: pulumi.Bool(false),
LoadBasedAutoScaling: &opsworks.RailsAppLayerLoadBasedAutoScalingArgs{
Downscaling: &opsworks.RailsAppLayerLoadBasedAutoScalingDownscalingArgs{
Alarms: pulumi.StringArray{
pulumi.String("string"),
},
CpuThreshold: pulumi.Float64(0),
IgnoreMetricsTime: pulumi.Int(0),
InstanceCount: pulumi.Int(0),
LoadThreshold: pulumi.Float64(0),
MemoryThreshold: pulumi.Float64(0),
ThresholdsWaitTime: pulumi.Int(0),
},
Enable: pulumi.Bool(false),
Upscaling: &opsworks.RailsAppLayerLoadBasedAutoScalingUpscalingArgs{
Alarms: pulumi.StringArray{
pulumi.String("string"),
},
CpuThreshold: pulumi.Float64(0),
IgnoreMetricsTime: pulumi.Int(0),
InstanceCount: pulumi.Int(0),
LoadThreshold: pulumi.Float64(0),
MemoryThreshold: pulumi.Float64(0),
ThresholdsWaitTime: pulumi.Int(0),
},
},
ElasticLoadBalancer: pulumi.String("string"),
InstallUpdatesOnBoot: pulumi.Bool(false),
InstanceShutdownTimeout: pulumi.Int(0),
EbsVolumes: opsworks.RailsAppLayerEbsVolumeArray{
&opsworks.RailsAppLayerEbsVolumeArgs{
MountPoint: pulumi.String("string"),
NumberOfDisks: pulumi.Int(0),
Size: pulumi.Int(0),
Encrypted: pulumi.Bool(false),
Iops: pulumi.Int(0),
RaidLevel: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
ManageBundler: pulumi.Bool(false),
Name: pulumi.String("string"),
PassengerVersion: pulumi.String("string"),
RubyVersion: pulumi.String("string"),
RubygemsVersion: pulumi.String("string"),
AutoAssignElasticIps: pulumi.Bool(false),
AppServer: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
CustomUndeployRecipes: pulumi.StringArray{
pulumi.String("string"),
},
})
var railsAppLayerResource = new RailsAppLayer("railsAppLayerResource", RailsAppLayerArgs.builder()
.stackId("string")
.drainElbOnShutdown(false)
.systemPackages("string")
.autoHealing(false)
.bundlerVersion("string")
.cloudwatchConfiguration(RailsAppLayerCloudwatchConfigurationArgs.builder()
.enabled(false)
.logStreams(RailsAppLayerCloudwatchConfigurationLogStreamArgs.builder()
.file("string")
.logGroupName("string")
.batchCount(0)
.batchSize(0)
.bufferDuration(0)
.datetimeFormat("string")
.encoding("string")
.fileFingerprintLines("string")
.initialPosition("string")
.multilineStartPattern("string")
.timeZone("string")
.build())
.build())
.customConfigureRecipes("string")
.customDeployRecipes("string")
.customInstanceProfileArn("string")
.customJson("string")
.customSecurityGroupIds("string")
.customSetupRecipes("string")
.customShutdownRecipes("string")
.useEbsOptimizedInstances(false)
.autoAssignPublicIps(false)
.loadBasedAutoScaling(RailsAppLayerLoadBasedAutoScalingArgs.builder()
.downscaling(RailsAppLayerLoadBasedAutoScalingDownscalingArgs.builder()
.alarms("string")
.cpuThreshold(0)
.ignoreMetricsTime(0)
.instanceCount(0)
.loadThreshold(0)
.memoryThreshold(0)
.thresholdsWaitTime(0)
.build())
.enable(false)
.upscaling(RailsAppLayerLoadBasedAutoScalingUpscalingArgs.builder()
.alarms("string")
.cpuThreshold(0)
.ignoreMetricsTime(0)
.instanceCount(0)
.loadThreshold(0)
.memoryThreshold(0)
.thresholdsWaitTime(0)
.build())
.build())
.elasticLoadBalancer("string")
.installUpdatesOnBoot(false)
.instanceShutdownTimeout(0)
.ebsVolumes(RailsAppLayerEbsVolumeArgs.builder()
.mountPoint("string")
.numberOfDisks(0)
.size(0)
.encrypted(false)
.iops(0)
.raidLevel("string")
.type("string")
.build())
.manageBundler(false)
.name("string")
.passengerVersion("string")
.rubyVersion("string")
.rubygemsVersion("string")
.autoAssignElasticIps(false)
.appServer("string")
.tags(Map.of("string", "string"))
.customUndeployRecipes("string")
.build());
rails_app_layer_resource = aws.opsworks.RailsAppLayer("railsAppLayerResource",
stack_id="string",
drain_elb_on_shutdown=False,
system_packages=["string"],
auto_healing=False,
bundler_version="string",
cloudwatch_configuration={
"enabled": False,
"logStreams": [{
"file": "string",
"logGroupName": "string",
"batchCount": 0,
"batchSize": 0,
"bufferDuration": 0,
"datetimeFormat": "string",
"encoding": "string",
"fileFingerprintLines": "string",
"initialPosition": "string",
"multilineStartPattern": "string",
"timeZone": "string",
}],
},
custom_configure_recipes=["string"],
custom_deploy_recipes=["string"],
custom_instance_profile_arn="string",
custom_json="string",
custom_security_group_ids=["string"],
custom_setup_recipes=["string"],
custom_shutdown_recipes=["string"],
use_ebs_optimized_instances=False,
auto_assign_public_ips=False,
load_based_auto_scaling={
"downscaling": {
"alarms": ["string"],
"cpuThreshold": 0,
"ignoreMetricsTime": 0,
"instanceCount": 0,
"loadThreshold": 0,
"memoryThreshold": 0,
"thresholdsWaitTime": 0,
},
"enable": False,
"upscaling": {
"alarms": ["string"],
"cpuThreshold": 0,
"ignoreMetricsTime": 0,
"instanceCount": 0,
"loadThreshold": 0,
"memoryThreshold": 0,
"thresholdsWaitTime": 0,
},
},
elastic_load_balancer="string",
install_updates_on_boot=False,
instance_shutdown_timeout=0,
ebs_volumes=[{
"mountPoint": "string",
"numberOfDisks": 0,
"size": 0,
"encrypted": False,
"iops": 0,
"raidLevel": "string",
"type": "string",
}],
manage_bundler=False,
name="string",
passenger_version="string",
ruby_version="string",
rubygems_version="string",
auto_assign_elastic_ips=False,
app_server="string",
tags={
"string": "string",
},
custom_undeploy_recipes=["string"])
const railsAppLayerResource = new aws.opsworks.RailsAppLayer("railsAppLayerResource", {
stackId: "string",
drainElbOnShutdown: false,
systemPackages: ["string"],
autoHealing: false,
bundlerVersion: "string",
cloudwatchConfiguration: {
enabled: false,
logStreams: [{
file: "string",
logGroupName: "string",
batchCount: 0,
batchSize: 0,
bufferDuration: 0,
datetimeFormat: "string",
encoding: "string",
fileFingerprintLines: "string",
initialPosition: "string",
multilineStartPattern: "string",
timeZone: "string",
}],
},
customConfigureRecipes: ["string"],
customDeployRecipes: ["string"],
customInstanceProfileArn: "string",
customJson: "string",
customSecurityGroupIds: ["string"],
customSetupRecipes: ["string"],
customShutdownRecipes: ["string"],
useEbsOptimizedInstances: false,
autoAssignPublicIps: false,
loadBasedAutoScaling: {
downscaling: {
alarms: ["string"],
cpuThreshold: 0,
ignoreMetricsTime: 0,
instanceCount: 0,
loadThreshold: 0,
memoryThreshold: 0,
thresholdsWaitTime: 0,
},
enable: false,
upscaling: {
alarms: ["string"],
cpuThreshold: 0,
ignoreMetricsTime: 0,
instanceCount: 0,
loadThreshold: 0,
memoryThreshold: 0,
thresholdsWaitTime: 0,
},
},
elasticLoadBalancer: "string",
installUpdatesOnBoot: false,
instanceShutdownTimeout: 0,
ebsVolumes: [{
mountPoint: "string",
numberOfDisks: 0,
size: 0,
encrypted: false,
iops: 0,
raidLevel: "string",
type: "string",
}],
manageBundler: false,
name: "string",
passengerVersion: "string",
rubyVersion: "string",
rubygemsVersion: "string",
autoAssignElasticIps: false,
appServer: "string",
tags: {
string: "string",
},
customUndeployRecipes: ["string"],
});
type: aws:opsworks:RailsAppLayer
properties:
appServer: string
autoAssignElasticIps: false
autoAssignPublicIps: false
autoHealing: false
bundlerVersion: string
cloudwatchConfiguration:
enabled: false
logStreams:
- batchCount: 0
batchSize: 0
bufferDuration: 0
datetimeFormat: string
encoding: string
file: string
fileFingerprintLines: string
initialPosition: string
logGroupName: string
multilineStartPattern: string
timeZone: string
customConfigureRecipes:
- string
customDeployRecipes:
- string
customInstanceProfileArn: string
customJson: string
customSecurityGroupIds:
- string
customSetupRecipes:
- string
customShutdownRecipes:
- string
customUndeployRecipes:
- string
drainElbOnShutdown: false
ebsVolumes:
- encrypted: false
iops: 0
mountPoint: string
numberOfDisks: 0
raidLevel: string
size: 0
type: string
elasticLoadBalancer: string
installUpdatesOnBoot: false
instanceShutdownTimeout: 0
loadBasedAutoScaling:
downscaling:
alarms:
- string
cpuThreshold: 0
ignoreMetricsTime: 0
instanceCount: 0
loadThreshold: 0
memoryThreshold: 0
thresholdsWaitTime: 0
enable: false
upscaling:
alarms:
- string
cpuThreshold: 0
ignoreMetricsTime: 0
instanceCount: 0
loadThreshold: 0
memoryThreshold: 0
thresholdsWaitTime: 0
manageBundler: false
name: string
passengerVersion: string
rubyVersion: string
rubygemsVersion: string
stackId: string
systemPackages:
- string
tags:
string: string
useEbsOptimizedInstances: false
RailsAppLayer Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The RailsAppLayer resource accepts the following input properties:
- Stack
Id string - ID of the stack the layer will belong to.
- App
Server string - Keyword for the app server to use. Defaults to "apache_passenger".
- Auto
Assign boolElastic Ips - Whether to automatically assign an elastic IP address to the layer's instances.
- Auto
Assign boolPublic Ips - 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 string - When OpsWorks is managing Bundler, which version to use. Defaults to "1.5.3".
- Cloudwatch
Configuration RailsApp Layer Cloudwatch Configuration - Custom
Configure List<string>Recipes - Custom
Deploy List<string>Recipes - Custom
Instance stringProfile Arn - The ARN of an IAM profile that will be used for the layer's instances.
- Custom
Json string - Custom JSON attributes to apply to the layer.
- Custom
Security List<string>Group Ids - Ids for a set of security groups to apply to the layer's instances.
- Custom
Setup List<string>Recipes - Custom
Shutdown List<string>Recipes - Custom
Undeploy List<string>Recipes - Drain
Elb boolOn Shutdown - Whether to enable Elastic Load Balancing connection draining.
- Ebs
Volumes List<RailsApp Layer Ebs Volume> ebs_volume
blocks, as described below, will each create an EBS volume and connect it to the layer's instances.- Elastic
Load stringBalancer - Name of an Elastic Load Balancer to attach to this layer
- Install
Updates boolOn Boot - Whether to install OS and package updates on each instance when it boots.
- Instance
Shutdown intTimeout - The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
- Load
Based RailsAuto Scaling App Layer Load Based Auto Scaling - Manage
Bundler bool - Whether OpsWorks should manage bundler. On by default.
- Name string
- A human-readable name for the layer.
- Passenger
Version string - The version of Passenger to use. Defaults to "4.0.46".
- Ruby
Version string - The version of Ruby to use. Defaults to "2.0.0".
- Rubygems
Version string - The version of RubyGems to use. Defaults to "2.2.2".
- System
Packages List<string> - Names of a set of system packages to install on the layer's instances.
- Dictionary<string, string>
A map of tags to assign to the resource. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.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:
- Use
Ebs boolOptimized Instances - Whether to use EBS-optimized instances.
- Stack
Id string - ID of the stack the layer will belong to.
- App
Server string - Keyword for the app server to use. Defaults to "apache_passenger".
- Auto
Assign boolElastic Ips - Whether to automatically assign an elastic IP address to the layer's instances.
- Auto
Assign boolPublic Ips - 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 string - When OpsWorks is managing Bundler, which version to use. Defaults to "1.5.3".
- Cloudwatch
Configuration RailsApp Layer Cloudwatch Configuration Args - Custom
Configure []stringRecipes - Custom
Deploy []stringRecipes - Custom
Instance stringProfile Arn - The ARN of an IAM profile that will be used for the layer's instances.
- Custom
Json string - Custom JSON attributes to apply to the layer.
- Custom
Security []stringGroup Ids - Ids for a set of security groups to apply to the layer's instances.
- Custom
Setup []stringRecipes - Custom
Shutdown []stringRecipes - Custom
Undeploy []stringRecipes - Drain
Elb boolOn Shutdown - Whether to enable Elastic Load Balancing connection draining.
- Ebs
Volumes []RailsApp Layer Ebs Volume Args ebs_volume
blocks, as described below, will each create an EBS volume and connect it to the layer's instances.- Elastic
Load stringBalancer - Name of an Elastic Load Balancer to attach to this layer
- Install
Updates boolOn Boot - Whether to install OS and package updates on each instance when it boots.
- Instance
Shutdown intTimeout - The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
- Load
Based RailsAuto Scaling App Layer Load Based Auto Scaling Args - Manage
Bundler bool - Whether OpsWorks should manage bundler. On by default.
- Name string
- A human-readable name for the layer.
- Passenger
Version string - The version of Passenger to use. Defaults to "4.0.46".
- Ruby
Version string - The version of Ruby to use. Defaults to "2.0.0".
- Rubygems
Version string - The version of RubyGems to use. Defaults to "2.2.2".
- System
Packages []string - Names of a set of system packages to install on the layer's instances.
- map[string]string
A map of tags to assign to the resource. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.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:
- Use
Ebs boolOptimized Instances - Whether to use EBS-optimized instances.
- stack
Id String - ID of the stack the layer will belong to.
- app
Server String - Keyword for the app server to use. Defaults to "apache_passenger".
- auto
Assign BooleanElastic Ips - Whether to automatically assign an elastic IP address to the layer's instances.
- auto
Assign BooleanPublic Ips - For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances.
- auto
Healing Boolean - Whether to enable auto-healing for the layer.
- bundler
Version String - When OpsWorks is managing Bundler, which version to use. Defaults to "1.5.3".
- cloudwatch
Configuration RailsApp Layer Cloudwatch Configuration - custom
Configure List<String>Recipes - custom
Deploy List<String>Recipes - custom
Instance StringProfile Arn - The ARN of an IAM profile that will be used for the layer's instances.
- custom
Json String - Custom JSON attributes to apply to the layer.
- custom
Security List<String>Group Ids - Ids for a set of security groups to apply to the layer's instances.
- custom
Setup List<String>Recipes - custom
Shutdown List<String>Recipes - custom
Undeploy List<String>Recipes - drain
Elb BooleanOn Shutdown - Whether to enable Elastic Load Balancing connection draining.
- ebs
Volumes List<RailsApp Layer Ebs Volume> ebs_volume
blocks, as described below, will each create an EBS volume and connect it to the layer's instances.- elastic
Load StringBalancer - Name of an Elastic Load Balancer to attach to this layer
- install
Updates BooleanOn Boot - Whether to install OS and package updates on each instance when it boots.
- instance
Shutdown IntegerTimeout - The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
- load
Based RailsAuto Scaling App Layer Load Based Auto Scaling - manage
Bundler Boolean - Whether OpsWorks should manage bundler. On by default.
- name String
- A human-readable name for the layer.
- passenger
Version String - The version of Passenger to use. Defaults to "4.0.46".
- ruby
Version String - The version of Ruby to use. Defaults to "2.0.0".
- rubygems
Version String - The version of RubyGems to use. Defaults to "2.2.2".
- system
Packages List<String> - Names of a set of system packages to install on the layer's instances.
- Map<String,String>
A map of tags to assign to the resource. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.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:
- use
Ebs BooleanOptimized Instances - Whether to use EBS-optimized instances.
- stack
Id string - ID of the stack the layer will belong to.
- app
Server string - Keyword for the app server to use. Defaults to "apache_passenger".
- auto
Assign booleanElastic Ips - Whether to automatically assign an elastic IP address to the layer's instances.
- auto
Assign booleanPublic Ips - For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances.
- auto
Healing boolean - Whether to enable auto-healing for the layer.
- bundler
Version string - When OpsWorks is managing Bundler, which version to use. Defaults to "1.5.3".
- cloudwatch
Configuration RailsApp Layer Cloudwatch Configuration - custom
Configure string[]Recipes - custom
Deploy string[]Recipes - custom
Instance stringProfile Arn - The ARN of an IAM profile that will be used for the layer's instances.
- custom
Json string - Custom JSON attributes to apply to the layer.
- custom
Security string[]Group Ids - Ids for a set of security groups to apply to the layer's instances.
- custom
Setup string[]Recipes - custom
Shutdown string[]Recipes - custom
Undeploy string[]Recipes - drain
Elb booleanOn Shutdown - Whether to enable Elastic Load Balancing connection draining.
- ebs
Volumes RailsApp Layer Ebs Volume[] ebs_volume
blocks, as described below, will each create an EBS volume and connect it to the layer's instances.- elastic
Load stringBalancer - Name of an Elastic Load Balancer to attach to this layer
- install
Updates booleanOn Boot - Whether to install OS and package updates on each instance when it boots.
- instance
Shutdown numberTimeout - The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
- load
Based RailsAuto Scaling App Layer Load Based Auto Scaling - manage
Bundler boolean - Whether OpsWorks should manage bundler. On by default.
- name string
- A human-readable name for the layer.
- passenger
Version string - The version of Passenger to use. Defaults to "4.0.46".
- ruby
Version string - The version of Ruby to use. Defaults to "2.0.0".
- rubygems
Version string - The version of RubyGems to use. Defaults to "2.2.2".
- system
Packages string[] - Names of a set of system packages to install on the layer's instances.
- {[key: string]: string}
A map of tags to assign to the resource. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.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:
- use
Ebs booleanOptimized Instances - Whether to use EBS-optimized instances.
- stack_
id str - 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_ boolelastic_ ips - Whether to automatically assign an elastic IP address to the layer's instances.
- auto_
assign_ boolpublic_ ips - 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".
- cloudwatch_
configuration RailsApp Layer Cloudwatch Configuration Args - custom_
configure_ Sequence[str]recipes - custom_
deploy_ Sequence[str]recipes - custom_
instance_ strprofile_ arn - 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_ Sequence[str]group_ ids - Ids for a set of security groups to apply to the layer's instances.
- custom_
setup_ Sequence[str]recipes - custom_
shutdown_ Sequence[str]recipes - custom_
undeploy_ Sequence[str]recipes - drain_
elb_ boolon_ shutdown - Whether to enable Elastic Load Balancing connection draining.
- ebs_
volumes Sequence[RailsApp Layer Ebs Volume Args] ebs_volume
blocks, as described below, will each create an EBS volume and connect it to the layer's instances.- elastic_
load_ strbalancer - Name of an Elastic Load Balancer to attach to this layer
- install_
updates_ boolon_ boot - Whether to install OS and package updates on each instance when it boots.
- instance_
shutdown_ inttimeout - The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
- load_
based_ Railsauto_ scaling App Layer Load Based Auto Scaling Args - 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 Sequence[str] - Names of a set of system packages to install on the layer's instances.
- Mapping[str, str]
A map of tags to assign to the resource. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.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:
- use_
ebs_ booloptimized_ instances - Whether to use EBS-optimized instances.
- stack
Id String - ID of the stack the layer will belong to.
- app
Server String - Keyword for the app server to use. Defaults to "apache_passenger".
- auto
Assign BooleanElastic Ips - Whether to automatically assign an elastic IP address to the layer's instances.
- auto
Assign BooleanPublic Ips - For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances.
- auto
Healing Boolean - Whether to enable auto-healing for the layer.
- bundler
Version String - When OpsWorks is managing Bundler, which version to use. Defaults to "1.5.3".
- cloudwatch
Configuration Property Map - custom
Configure List<String>Recipes - custom
Deploy List<String>Recipes - custom
Instance StringProfile Arn - The ARN of an IAM profile that will be used for the layer's instances.
- custom
Json String - Custom JSON attributes to apply to the layer.
- custom
Security List<String>Group Ids - Ids for a set of security groups to apply to the layer's instances.
- custom
Setup List<String>Recipes - custom
Shutdown List<String>Recipes - custom
Undeploy List<String>Recipes - drain
Elb BooleanOn Shutdown - Whether to enable Elastic Load Balancing connection draining.
- ebs
Volumes List<Property Map> ebs_volume
blocks, as described below, will each create an EBS volume and connect it to the layer's instances.- elastic
Load StringBalancer - Name of an Elastic Load Balancer to attach to this layer
- install
Updates BooleanOn Boot - Whether to install OS and package updates on each instance when it boots.
- instance
Shutdown NumberTimeout - The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
- load
Based Property MapAuto Scaling - manage
Bundler Boolean - Whether OpsWorks should manage bundler. On by default.
- name String
- A human-readable name for the layer.
- passenger
Version String - The version of Passenger to use. Defaults to "4.0.46".
- ruby
Version String - The version of Ruby to use. Defaults to "2.0.0".
- rubygems
Version String - The version of RubyGems to use. Defaults to "2.2.2".
- system
Packages List<String> - Names of a set of system packages to install on the layer's instances.
- Map<String>
A map of tags to assign to the resource. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.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:
- use
Ebs BooleanOptimized Instances - 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:
Look up 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
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
app_server: Optional[str] = None,
arn: Optional[str] = None,
auto_assign_elastic_ips: Optional[bool] = None,
auto_assign_public_ips: Optional[bool] = None,
auto_healing: Optional[bool] = None,
bundler_version: Optional[str] = None,
cloudwatch_configuration: Optional[RailsAppLayerCloudwatchConfigurationArgs] = None,
custom_configure_recipes: Optional[Sequence[str]] = None,
custom_deploy_recipes: Optional[Sequence[str]] = None,
custom_instance_profile_arn: Optional[str] = None,
custom_json: Optional[str] = None,
custom_security_group_ids: Optional[Sequence[str]] = None,
custom_setup_recipes: Optional[Sequence[str]] = None,
custom_shutdown_recipes: Optional[Sequence[str]] = None,
custom_undeploy_recipes: Optional[Sequence[str]] = None,
drain_elb_on_shutdown: Optional[bool] = None,
ebs_volumes: Optional[Sequence[RailsAppLayerEbsVolumeArgs]] = None,
elastic_load_balancer: Optional[str] = None,
install_updates_on_boot: Optional[bool] = None,
instance_shutdown_timeout: Optional[int] = None,
load_based_auto_scaling: Optional[RailsAppLayerLoadBasedAutoScalingArgs] = None,
manage_bundler: Optional[bool] = None,
name: Optional[str] = None,
passenger_version: Optional[str] = None,
ruby_version: Optional[str] = None,
rubygems_version: Optional[str] = None,
stack_id: Optional[str] = None,
system_packages: Optional[Sequence[str]] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None,
use_ebs_optimized_instances: Optional[bool] = None) -> RailsAppLayer
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)
public static RailsAppLayer get(String name, Output<String> id, RailsAppLayerState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- 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.
- App
Server string - Keyword for the app server to use. Defaults to "apache_passenger".
- Arn string
- The Amazon Resource Name(ARN) of the layer.
- Auto
Assign boolElastic Ips - Whether to automatically assign an elastic IP address to the layer's instances.
- Auto
Assign boolPublic Ips - 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 string - When OpsWorks is managing Bundler, which version to use. Defaults to "1.5.3".
- Cloudwatch
Configuration RailsApp Layer Cloudwatch Configuration - Custom
Configure List<string>Recipes - Custom
Deploy List<string>Recipes - Custom
Instance stringProfile Arn - The ARN of an IAM profile that will be used for the layer's instances.
- Custom
Json string - Custom JSON attributes to apply to the layer.
- Custom
Security List<string>Group Ids - Ids for a set of security groups to apply to the layer's instances.
- Custom
Setup List<string>Recipes - Custom
Shutdown List<string>Recipes - Custom
Undeploy List<string>Recipes - Drain
Elb boolOn Shutdown - Whether to enable Elastic Load Balancing connection draining.
- Ebs
Volumes List<RailsApp Layer Ebs Volume> ebs_volume
blocks, as described below, will each create an EBS volume and connect it to the layer's instances.- Elastic
Load stringBalancer - Name of an Elastic Load Balancer to attach to this layer
- Install
Updates boolOn Boot - Whether to install OS and package updates on each instance when it boots.
- Instance
Shutdown intTimeout - The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
- Load
Based RailsAuto Scaling App Layer Load Based Auto Scaling - Manage
Bundler bool - Whether OpsWorks should manage bundler. On by default.
- Name string
- A human-readable name for the layer.
- Passenger
Version string - The version of Passenger to use. Defaults to "4.0.46".
- Ruby
Version string - The version of Ruby to use. Defaults to "2.0.0".
- Rubygems
Version string - The version of RubyGems to use. Defaults to "2.2.2".
- Stack
Id string - ID of the stack the layer will belong to.
- System
Packages List<string> - Names of a set of system packages to install on the layer's instances.
- Dictionary<string, string>
A map of tags to assign to the resource. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.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:
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Use
Ebs boolOptimized Instances - Whether to use EBS-optimized instances.
- App
Server string - Keyword for the app server to use. Defaults to "apache_passenger".
- Arn string
- The Amazon Resource Name(ARN) of the layer.
- Auto
Assign boolElastic Ips - Whether to automatically assign an elastic IP address to the layer's instances.
- Auto
Assign boolPublic Ips - 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 string - When OpsWorks is managing Bundler, which version to use. Defaults to "1.5.3".
- Cloudwatch
Configuration RailsApp Layer Cloudwatch Configuration Args - Custom
Configure []stringRecipes - Custom
Deploy []stringRecipes - Custom
Instance stringProfile Arn - The ARN of an IAM profile that will be used for the layer's instances.
- Custom
Json string - Custom JSON attributes to apply to the layer.
- Custom
Security []stringGroup Ids - Ids for a set of security groups to apply to the layer's instances.
- Custom
Setup []stringRecipes - Custom
Shutdown []stringRecipes - Custom
Undeploy []stringRecipes - Drain
Elb boolOn Shutdown - Whether to enable Elastic Load Balancing connection draining.
- Ebs
Volumes []RailsApp Layer Ebs Volume Args ebs_volume
blocks, as described below, will each create an EBS volume and connect it to the layer's instances.- Elastic
Load stringBalancer - Name of an Elastic Load Balancer to attach to this layer
- Install
Updates boolOn Boot - Whether to install OS and package updates on each instance when it boots.
- Instance
Shutdown intTimeout - The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
- Load
Based RailsAuto Scaling App Layer Load Based Auto Scaling Args - Manage
Bundler bool - Whether OpsWorks should manage bundler. On by default.
- Name string
- A human-readable name for the layer.
- Passenger
Version string - The version of Passenger to use. Defaults to "4.0.46".
- Ruby
Version string - The version of Ruby to use. Defaults to "2.0.0".
- Rubygems
Version string - The version of RubyGems to use. Defaults to "2.2.2".
- Stack
Id string - ID of the stack the layer will belong to.
- System
Packages []string - Names of a set of system packages to install on the layer's instances.
- map[string]string
A map of tags to assign to the resource. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.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:
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Use
Ebs boolOptimized Instances - Whether to use EBS-optimized instances.
- app
Server String - Keyword for the app server to use. Defaults to "apache_passenger".
- arn String
- The Amazon Resource Name(ARN) of the layer.
- auto
Assign BooleanElastic Ips - Whether to automatically assign an elastic IP address to the layer's instances.
- auto
Assign BooleanPublic Ips - For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances.
- auto
Healing Boolean - Whether to enable auto-healing for the layer.
- bundler
Version String - When OpsWorks is managing Bundler, which version to use. Defaults to "1.5.3".
- cloudwatch
Configuration RailsApp Layer Cloudwatch Configuration - custom
Configure List<String>Recipes - custom
Deploy List<String>Recipes - custom
Instance StringProfile Arn - The ARN of an IAM profile that will be used for the layer's instances.
- custom
Json String - Custom JSON attributes to apply to the layer.
- custom
Security List<String>Group Ids - Ids for a set of security groups to apply to the layer's instances.
- custom
Setup List<String>Recipes - custom
Shutdown List<String>Recipes - custom
Undeploy List<String>Recipes - drain
Elb BooleanOn Shutdown - Whether to enable Elastic Load Balancing connection draining.
- ebs
Volumes List<RailsApp Layer Ebs Volume> ebs_volume
blocks, as described below, will each create an EBS volume and connect it to the layer's instances.- elastic
Load StringBalancer - Name of an Elastic Load Balancer to attach to this layer
- install
Updates BooleanOn Boot - Whether to install OS and package updates on each instance when it boots.
- instance
Shutdown IntegerTimeout - The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
- load
Based RailsAuto Scaling App Layer Load Based Auto Scaling - manage
Bundler Boolean - Whether OpsWorks should manage bundler. On by default.
- name String
- A human-readable name for the layer.
- passenger
Version String - The version of Passenger to use. Defaults to "4.0.46".
- ruby
Version String - The version of Ruby to use. Defaults to "2.0.0".
- rubygems
Version String - The version of RubyGems to use. Defaults to "2.2.2".
- stack
Id String - ID of the stack the layer will belong to.
- system
Packages List<String> - Names of a set of system packages to install on the layer's instances.
- Map<String,String>
A map of tags to assign to the resource. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.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:
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - use
Ebs BooleanOptimized Instances - Whether to use EBS-optimized instances.
- app
Server string - Keyword for the app server to use. Defaults to "apache_passenger".
- arn string
- The Amazon Resource Name(ARN) of the layer.
- auto
Assign booleanElastic Ips - Whether to automatically assign an elastic IP address to the layer's instances.
- auto
Assign booleanPublic Ips - For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances.
- auto
Healing boolean - Whether to enable auto-healing for the layer.
- bundler
Version string - When OpsWorks is managing Bundler, which version to use. Defaults to "1.5.3".
- cloudwatch
Configuration RailsApp Layer Cloudwatch Configuration - custom
Configure string[]Recipes - custom
Deploy string[]Recipes - custom
Instance stringProfile Arn - The ARN of an IAM profile that will be used for the layer's instances.
- custom
Json string - Custom JSON attributes to apply to the layer.
- custom
Security string[]Group Ids - Ids for a set of security groups to apply to the layer's instances.
- custom
Setup string[]Recipes - custom
Shutdown string[]Recipes - custom
Undeploy string[]Recipes - drain
Elb booleanOn Shutdown - Whether to enable Elastic Load Balancing connection draining.
- ebs
Volumes RailsApp Layer Ebs Volume[] ebs_volume
blocks, as described below, will each create an EBS volume and connect it to the layer's instances.- elastic
Load stringBalancer - Name of an Elastic Load Balancer to attach to this layer
- install
Updates booleanOn Boot - Whether to install OS and package updates on each instance when it boots.
- instance
Shutdown numberTimeout - The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
- load
Based RailsAuto Scaling App Layer Load Based Auto Scaling - manage
Bundler boolean - Whether OpsWorks should manage bundler. On by default.
- name string
- A human-readable name for the layer.
- passenger
Version string - The version of Passenger to use. Defaults to "4.0.46".
- ruby
Version string - The version of Ruby to use. Defaults to "2.0.0".
- rubygems
Version string - The version of RubyGems to use. Defaults to "2.2.2".
- stack
Id string - ID of the stack the layer will belong to.
- system
Packages string[] - Names of a set of system packages to install on the layer's instances.
- {[key: string]: string}
A map of tags to assign to the resource. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.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:
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - use
Ebs booleanOptimized Instances - 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_ boolelastic_ ips - Whether to automatically assign an elastic IP address to the layer's instances.
- auto_
assign_ boolpublic_ ips - 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".
- cloudwatch_
configuration RailsApp Layer Cloudwatch Configuration Args - custom_
configure_ Sequence[str]recipes - custom_
deploy_ Sequence[str]recipes - custom_
instance_ strprofile_ arn - 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_ Sequence[str]group_ ids - Ids for a set of security groups to apply to the layer's instances.
- custom_
setup_ Sequence[str]recipes - custom_
shutdown_ Sequence[str]recipes - custom_
undeploy_ Sequence[str]recipes - drain_
elb_ boolon_ shutdown - Whether to enable Elastic Load Balancing connection draining.
- ebs_
volumes Sequence[RailsApp Layer Ebs Volume Args] ebs_volume
blocks, as described below, will each create an EBS volume and connect it to the layer's instances.- elastic_
load_ strbalancer - Name of an Elastic Load Balancer to attach to this layer
- install_
updates_ boolon_ boot - Whether to install OS and package updates on each instance when it boots.
- instance_
shutdown_ inttimeout - The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
- load_
based_ Railsauto_ scaling App Layer Load Based Auto Scaling Args - 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 - ID of the stack the layer will belong to.
- system_
packages Sequence[str] - Names of a set of system packages to install on the layer's instances.
- Mapping[str, str]
A map of tags to assign to the resource. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.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:
- Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - use_
ebs_ booloptimized_ instances - Whether to use EBS-optimized instances.
- app
Server String - Keyword for the app server to use. Defaults to "apache_passenger".
- arn String
- The Amazon Resource Name(ARN) of the layer.
- auto
Assign BooleanElastic Ips - Whether to automatically assign an elastic IP address to the layer's instances.
- auto
Assign BooleanPublic Ips - For stacks belonging to a VPC, whether to automatically assign a public IP address to each of the layer's instances.
- auto
Healing Boolean - Whether to enable auto-healing for the layer.
- bundler
Version String - When OpsWorks is managing Bundler, which version to use. Defaults to "1.5.3".
- cloudwatch
Configuration Property Map - custom
Configure List<String>Recipes - custom
Deploy List<String>Recipes - custom
Instance StringProfile Arn - The ARN of an IAM profile that will be used for the layer's instances.
- custom
Json String - Custom JSON attributes to apply to the layer.
- custom
Security List<String>Group Ids - Ids for a set of security groups to apply to the layer's instances.
- custom
Setup List<String>Recipes - custom
Shutdown List<String>Recipes - custom
Undeploy List<String>Recipes - drain
Elb BooleanOn Shutdown - Whether to enable Elastic Load Balancing connection draining.
- ebs
Volumes List<Property Map> ebs_volume
blocks, as described below, will each create an EBS volume and connect it to the layer's instances.- elastic
Load StringBalancer - Name of an Elastic Load Balancer to attach to this layer
- install
Updates BooleanOn Boot - Whether to install OS and package updates on each instance when it boots.
- instance
Shutdown NumberTimeout - The time, in seconds, that OpsWorks will wait for Chef to complete after triggering the Shutdown event.
- load
Based Property MapAuto Scaling - manage
Bundler Boolean - Whether OpsWorks should manage bundler. On by default.
- name String
- A human-readable name for the layer.
- passenger
Version String - The version of Passenger to use. Defaults to "4.0.46".
- ruby
Version String - The version of Ruby to use. Defaults to "2.0.0".
- rubygems
Version String - The version of RubyGems to use. Defaults to "2.2.2".
- stack
Id String - ID of the stack the layer will belong to.
- system
Packages List<String> - Names of a set of system packages to install on the layer's instances.
- Map<String>
A map of tags to assign to the resource. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.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:
- Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - use
Ebs BooleanOptimized Instances - Whether to use EBS-optimized instances.
Supporting Types
RailsAppLayerCloudwatchConfiguration, RailsAppLayerCloudwatchConfigurationArgs
- enabled Boolean
- log
Streams List<Property Map>
RailsAppLayerCloudwatchConfigurationLogStream, RailsAppLayerCloudwatchConfigurationLogStreamArgs
- File string
- Log
Group stringName - Batch
Count int - Batch
Size int - Buffer
Duration int - Datetime
Format string - Encoding string
- File
Fingerprint stringLines - Initial
Position string - Multiline
Start stringPattern - Time
Zone string
- File string
- Log
Group stringName - Batch
Count int - Batch
Size int - Buffer
Duration int - Datetime
Format string - Encoding string
- File
Fingerprint stringLines - Initial
Position string - Multiline
Start stringPattern - Time
Zone string
- file String
- log
Group StringName - batch
Count Integer - batch
Size Integer - buffer
Duration Integer - datetime
Format String - encoding String
- file
Fingerprint StringLines - initial
Position String - multiline
Start StringPattern - time
Zone String
- file string
- log
Group stringName - batch
Count number - batch
Size number - buffer
Duration number - datetime
Format string - encoding string
- file
Fingerprint stringLines - initial
Position string - multiline
Start stringPattern - time
Zone string
- file str
- log_
group_ strname - batch_
count int - batch_
size int - buffer_
duration int - datetime_
format str - encoding str
- file_
fingerprint_ strlines - initial_
position str - multiline_
start_ strpattern - time_
zone str
- file String
- log
Group StringName - batch
Count Number - batch
Size Number - buffer
Duration Number - datetime
Format String - encoding String
- file
Fingerprint StringLines - initial
Position String - multiline
Start StringPattern - time
Zone String
RailsAppLayerEbsVolume, RailsAppLayerEbsVolumeArgs
- Mount
Point string - The path to mount the EBS volume on the layer's instances.
- Number
Of intDisks - 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.
- Raid
Level string - The RAID level to use for the volume.
- Type string
- The type of volume to create. This may be
standard
(the default),io1
orgp2
.
- Mount
Point string - The path to mount the EBS volume on the layer's instances.
- Number
Of intDisks - 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.
- Raid
Level string - The RAID level to use for the volume.
- Type string
- The type of volume to create. This may be
standard
(the default),io1
orgp2
.
- mount
Point String - The path to mount the EBS volume on the layer's instances.
- number
Of IntegerDisks - The number of disks to use for the EBS volume.
- size Integer
- The size of the volume in gigabytes.
- encrypted Boolean
- iops Integer
- For PIOPS volumes, the IOPS per disk.
- raid
Level String - The RAID level to use for the volume.
- type String
- The type of volume to create. This may be
standard
(the default),io1
orgp2
.
- mount
Point string - The path to mount the EBS volume on the layer's instances.
- number
Of numberDisks - 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.
- raid
Level string - The RAID level to use for the volume.
- type string
- The type of volume to create. This may be
standard
(the default),io1
orgp2
.
- mount_
point str - The path to mount the EBS volume on the layer's instances.
- number_
of_ intdisks - 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.
- raid_
level str - The RAID level to use for the volume.
- type str
- The type of volume to create. This may be
standard
(the default),io1
orgp2
.
- mount
Point String - The path to mount the EBS volume on the layer's instances.
- number
Of NumberDisks - 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.
- raid
Level String - The RAID level to use for the volume.
- type String
- The type of volume to create. This may be
standard
(the default),io1
orgp2
.
RailsAppLayerLoadBasedAutoScaling, RailsAppLayerLoadBasedAutoScalingArgs
RailsAppLayerLoadBasedAutoScalingDownscaling, RailsAppLayerLoadBasedAutoScalingDownscalingArgs
- Alarms List<string>
- Cpu
Threshold double - Ignore
Metrics intTime - Instance
Count int - Load
Threshold double - Memory
Threshold double - Thresholds
Wait intTime
- Alarms []string
- Cpu
Threshold float64 - Ignore
Metrics intTime - Instance
Count int - Load
Threshold float64 - Memory
Threshold float64 - Thresholds
Wait intTime
- alarms List<String>
- cpu
Threshold Double - ignore
Metrics IntegerTime - instance
Count Integer - load
Threshold Double - memory
Threshold Double - thresholds
Wait IntegerTime
- alarms string[]
- cpu
Threshold number - ignore
Metrics numberTime - instance
Count number - load
Threshold number - memory
Threshold number - thresholds
Wait numberTime
- alarms Sequence[str]
- cpu_
threshold float - ignore_
metrics_ inttime - instance_
count int - load_
threshold float - memory_
threshold float - thresholds_
wait_ inttime
- alarms List<String>
- cpu
Threshold Number - ignore
Metrics NumberTime - instance
Count Number - load
Threshold Number - memory
Threshold Number - thresholds
Wait NumberTime
RailsAppLayerLoadBasedAutoScalingUpscaling, RailsAppLayerLoadBasedAutoScalingUpscalingArgs
- Alarms List<string>
- Cpu
Threshold double - Ignore
Metrics intTime - Instance
Count int - Load
Threshold double - Memory
Threshold double - Thresholds
Wait intTime
- Alarms []string
- Cpu
Threshold float64 - Ignore
Metrics intTime - Instance
Count int - Load
Threshold float64 - Memory
Threshold float64 - Thresholds
Wait intTime
- alarms List<String>
- cpu
Threshold Double - ignore
Metrics IntegerTime - instance
Count Integer - load
Threshold Double - memory
Threshold Double - thresholds
Wait IntegerTime
- alarms string[]
- cpu
Threshold number - ignore
Metrics numberTime - instance
Count number - load
Threshold number - memory
Threshold number - thresholds
Wait numberTime
- alarms Sequence[str]
- cpu_
threshold float - ignore_
metrics_ inttime - instance_
count int - load_
threshold float - memory_
threshold float - thresholds_
wait_ inttime
- alarms List<String>
- cpu
Threshold Number - ignore
Metrics NumberTime - instance
Count Number - load
Threshold Number - memory
Threshold Number - thresholds
Wait NumberTime
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.