airflow.providers.amazon.aws.operators.cloud_formation

This module contains CloudFormation create/delete stack operators.

Module Contents

Classes

CloudFormationCreateStackOperator

An operator that creates a CloudFormation stack.

CloudFormationDeleteStackOperator

An operator that deletes a CloudFormation stack.

class airflow.providers.amazon.aws.operators.cloud_formation.CloudFormationCreateStackOperator(*, stack_name, cloudformation_parameters, aws_conn_id='aws_default', **kwargs)[source]

Bases: airflow.models.BaseOperator

An operator that creates a CloudFormation stack.

See also

For more information on how to use this operator, take a look at the guide: Create an AWS CloudFormation stack

Parameters
  • stack_name (str) – stack name (templated)

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

  • aws_conn_id (str) – aws connection to uses

template_fields: Sequence[str] = ('stack_name', 'cloudformation_parameters')[source]
template_ext: Sequence[str] = ()[source]
ui_color = '#6b9659'[source]
execute(context)[source]

This is the main method to derive when creating an operator. Context is the same dictionary used as when rendering jinja templates.

Refer to get_template_context for more context.

class airflow.providers.amazon.aws.operators.cloud_formation.CloudFormationDeleteStackOperator(*, stack_name, cloudformation_parameters=None, aws_conn_id='aws_default', **kwargs)[source]

Bases: airflow.models.BaseOperator

An operator that deletes a CloudFormation stack.

Parameters
  • stack_name (str) – stack name (templated)

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

See also

For more information on how to use this operator, take a look at the guide: Delete an AWS CloudFormation stack

Parameters

aws_conn_id (str) – aws connection to uses

template_fields: Sequence[str] = ('stack_name',)[source]
template_ext: Sequence[str] = ()[source]
ui_color = '#1d472b'[source]
ui_fgcolor = '#FFF'[source]
execute(context)[source]

This is the main method to derive when creating an operator. Context is the same dictionary used as when rendering jinja templates.

Refer to get_template_context for more context.

Was this entry helpful?