AWS Fundamentals Logo
AWS Fundamentals
AWS::OpsWorks::Layer

OpsWorks Layer

Resource Type definition for AWS::OpsWorks::Layer

Properties

19 configurable properties. 7 required. Click a row to see details.

Filter:
PropertyTypeFlags
AutoAssignElasticIps
boolean
Required
AutoAssignPublicIps
boolean
Required
EnableAutoHealing
boolean
Required
Name
string
Required
Shortname
string
Required
StackId
string
RequiredCreate-only
Type
string
RequiredCreate-only
Attributes
object
CustomInstanceProfileArn
string
CustomJson
object
CustomRecipes
Recipes
CustomSecurityGroupIds
Array<string>
InstallUpdatesOnBoot
boolean
LifecycleEventConfiguration
LifecycleEventConfiguration
LoadBasedAutoScaling
LoadBasedAutoScaling
Packages
Array<string>
Tags
Array<Tag>
UseEbsOptimizedInstances
boolean
VolumeConfigurations
Array<VolumeConfiguration>

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
Idstring-

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::OpsWorks::Layer

Resources:
  MyResource:
    Type: AWS::OpsWorks::Layer
    Properties:
      EnableAutoHealing: true
      Name: "my-name"
      Type: "value"
      AutoAssignElasticIps: true
      Shortname: "my-shortname"
      AutoAssignPublicIps: true
      StackId: "my-stackid"
      Tags:
        - Key: Environment
          Value: Production

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

ServiceOpsWorks
Properties20
Required7
TaggingNot supported
Primary IDId

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

TypeStackId

External Links