airflow.providers.amazon.aws.hooks.cloud_formation

This module contains AWS CloudFormation Hook

Module Contents

Classes

CloudFormationHook

Interact with AWS CloudFormation.

class airflow.providers.amazon.aws.hooks.cloud_formation.CloudFormationHook(*args, **kwargs)[source]

Bases: airflow.providers.amazon.aws.hooks.base_aws.AwsBaseHook

Interact with AWS CloudFormation. Provide thin wrapper around boto3.client("cloudformation").

Additional arguments (such as aws_conn_id) may be specified and are passed down to the underlying AwsBaseHook.

get_stack_status(stack_name)[source]

Get stack status from CloudFormation.

create_stack(stack_name, cloudformation_parameters)[source]

Create stack in CloudFormation.

Parameters
  • stack_name (str) – stack_name.

  • cloudformation_parameters (dict) – parameters to be passed to CloudFormation.

delete_stack(stack_name, cloudformation_parameters=None)[source]

Delete stack in CloudFormation.

Parameters
  • stack_name (str) – stack_name.

  • cloudformation_parameters (dict | None) – parameters to be passed to CloudFormation (optional).

Was this entry helpful?