OpsWorks

class opsworks.stack

Example:

resources = storage_connector.read_resources(
    service="opsworks",
    resource_type="stack")
for resource in resources:
    resource.load()
    print(resource.urn)
    print(resource.agent_version)
    print(resource.arn)
    print(resource.attributes)
    print(resource.chef_configuration)
    print(resource.configuration_manager)
    print(resource.created_at)
    print(resource.custom_cookbooks_source)
    print(resource.custom_json)
    print(resource.default_availability_zone)
    print(resource.default_instance_profile_arn)
    print(resource.default_os)
    print(resource.default_root_device_type)
    print(resource.default_ssh_key_name)
    print(resource.default_subnet_id)
    print(resource.hostname_theme)
    print(resource.name)
    print(resource.region)
    print(resource.service_role_arn)
    print(resource.stack_id)
    print(resource.use_custom_cookbooks)
    print(resource.use_opsworks_security_groups)
    print(resource.vpc_id)
agent_version

The agent version. This parameter is set to LATEST for auto-update. or a version number for a fixed agent version.

arn

The stack’s ARN.

attributes

The stack’s attributes.

chef_configuration

A ChefConfiguration object that specifies whether to enable Berkshelf and the Berkshelf version. For more information, see Create a New Stack .

configuration_manager

The configuration manager.

created_at

The date when the stack was created.

custom_cookbooks_source

Contains the information required to retrieve an app or cookbook from a repository. For more information, see Adding Apps or Cookbooks and Recipes .

custom_json

A JSON object that contains user-defined attributes to be added to the stack configuration and deployment attributes. You can use custom JSON to override the corresponding default stack configuration attribute values or to pass data to recipes. The string should be in the following format: "{\"key1\": \"value1\", \"key2\": \"value2\",...}" For more information on custom JSON, see Use Custom JSON to Modify the Stack Configuration Attributes .

default_availability_zone

The stack’s default Availability Zone. For more information, see Regions and Endpoints .

default_instance_profile_arn

The ARN of an IAM profile that is the default profile for all of the stack’s EC2 instances. For more information about IAM ARNs, see Using Identifiers .

default_os

The stack’s default operating system.

default_root_device_type

The default root device type. This value is used by default for all instances in the stack, but you can override it when you create an instance. For more information, see Storage for the Root Device .

default_ssh_key_name

A default Amazon EC2 key pair for the stack’s instances. You can override this value when you create or update an instance.

default_subnet_id

The default subnet ID; applicable only if the stack is running in a VPC.

hostname_theme

The stack host name theme, with spaces replaced by underscores.

name

The stack name.

region

The stack AWS region, such as “ap-northeast-2”. For more information about AWS regions, see Regions and Endpoints .

service_role_arn

The stack AWS Identity and Access Management (IAM) role.

stack_id

The stack ID.

use_custom_cookbooks

Whether the stack uses custom cookbooks.

use_opsworks_security_groups

Whether the stack automatically associates the AWS OpsWorks Stacks built-in security groups with the stack’s layers.

vpc_id

The VPC ID; applicable only if the stack is running in a VPC.