stack#

Exec module for managing Amazon Cloudformation Stacks.

async idem_aws.exec.aws.cloudformation.stack.get(hub, ctx, name: str, resource_id: str)[source]#

Get a Cloudformation Stack from AWS.

Parameters:
  • name (str) – The name of the Cloudformation Stack.

  • resource_id (str) – The StackID of the Cloudformation Stack.

Examples

Calling this exec module function from the cli with resource_id

idem exec aws.cloudformation.stack.get name="name" resource_id="unmanaged_stack"

Calling this exec module function from within a state module in pure python

my_unmanaged_stack:
  exec.run:
    - path: aws.cloudformation.stack.get
    - kwargs:
        name: test-stack-name
        resource_id: ax0li