OpsWorks
opsworks.stack
- class opsworks.stack
Discovery Example:
>>> from cloudwanderer import CloudWanderer, ServiceResourceType >>> from cloudwanderer.storage_connectors import GremlinStorageConnector >>> cloud_wanderer = CloudWanderer(storage_connectors=[ ... GremlinStorageConnector( ... endpoint_url="ws://localhost:8182", ... ) ... ]) >>> cloud_wanderer.write_resources( ... service_resource_types=[ServiceResourceType("opsworks","stack")] ... )
OpenCypher Example:
How to query resources of this type using OpenCypher in Neptune.
MATCH (stack:aws_opsworks_stack) RETURN *
Gremlin Example:
How to query resources of this type using Gremlin in Neptune/local Gremlin.
g.V().hasLabel('aws_opsworks_stack').out().path().by(valueMap(true))
- 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.