AWS Fundamentals Logo
AWS Fundamentals
AWS::OpsWorks::Stack

OpsWorks Stack

Resource Type definition for AWS::OpsWorks::Stack

Properties

25 configurable properties. 3 required. Click a row to see details.

Filter:
PropertyTypeFlags
DefaultInstanceProfileArn
string
Required
Name
string
Required
ServiceRoleArn
string
RequiredCreate-only
AgentVersion
string
Attributes
object
ChefConfiguration
ChefConfiguration
CloneAppIds
Array<string>
Create-only
ClonePermissions
boolean
Create-only
ConfigurationManager
StackConfigurationManager
CustomCookbooksSource
Source
CustomJson
object
DefaultAvailabilityZone
string
DefaultOs
string
DefaultRootDeviceType
string
DefaultSshKeyName
string
DefaultSubnetId
string
EcsClusterArn
string
ElasticIps
Array<ElasticIp>
HostnameTheme
string
RdsDbInstances
Array<RdsDbInstance>
SourceStackId
string
Create-only
Tags
Array<Tag>
UseCustomCookbooks
boolean
UseOpsworksSecurityGroups
boolean
VpcId
string
Create-only

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::Stack

Resources:
  MyResource:
    Type: AWS::OpsWorks::Stack
    Properties:
      DefaultInstanceProfileArn: "arn:aws:service:region:account:resource"
      ServiceRoleArn: "arn:aws:service:region:account:resource"
      Name: "my-name"
      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
Properties26
Required3
TaggingNot supported
Primary IDId

Immutable After Creation

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

ServiceRoleArnCloneAppIdsClonePermissionsVpcIdSourceStackId

External Links