CloudFormation

cloudformation.stack

class cloudformation.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("cloudformation","stack")]
... )

OpenCypher Example:

How to query resources of this type using OpenCypher in Neptune.

MATCH (stack:aws_cloudformation_stack)
RETURN *

Gremlin Example:

How to query resources of this type using Gremlin in Neptune/local Gremlin.

g.V().hasLabel('aws_cloudformation_stack').out().path().by(valueMap(true))
capabilities

The capabilities allowed in the stack.

change_set_id

The unique ID of the change set.

creation_time

The time at which the stack was created.

deletion_time

The time the stack was deleted.

description

A user-defined description associated with the stack.

disable_rollback

Boolean to enable or disable rollback on stack creation failures: * true : disable rollback * false : enable rollback

drift_information

Information on whether a stack’s actual configuration differs, or has drifted , from it’s expected configuration, as defined in the stack template and any values specified as template parameters. For more information, see Detecting Unregulated Configuration Changes to Stacks and Resources .

enable_termination_protection

Whether termination protection is enabled for the stack. For nested stacks , termination protection is set on the root stack and cannot be changed directly on the nested stack. For more information, see Protecting a Stack From Being Deleted in the CloudFormation User Guide .

last_updated_time

The time the stack was last updated. This field will only be returned if the stack has been updated at least once.

notification_arns

SNS topic ARNs to which stack related events are published.

outputs

A list of output structures.

parameters

A list of Parameter structures.

parent_id

For nested stacks–stacks created as resources for another stack–the stack ID of the direct parent of this stack. For the first level of nested stacks, the root stack is also the parent stack. For more information, see Working with Nested Stacks in the CloudFormation User Guide .

role_arn

The Amazon Resource Name (ARN) of an Identity and Access Management (IAM) role that is associated with the stack. During a stack operation, CloudFormation uses this role’s credentials to make calls on your behalf.

rollback_configuration

The rollback triggers for CloudFormation to monitor during stack creation and updating operations, and for the specified monitoring period afterwards.

root_id

For nested stacks–stacks created as resources for another stack–the stack ID of the top-level stack to which the nested stack ultimately belongs. For more information, see Working with Nested Stacks in the CloudFormation User Guide .

stack_id

Unique identifier of the stack.

stack_name

The name associated with the stack.

stack_status

Current status of the stack.

stack_status_reason

Success/failure message associated with the stack status.

tags

A list of Tag s that specify information about the stack.

timeout_in_minutes

The amount of time within which stack creation should complete.