View a markdown version of this page

Actions, resources, and condition keys for Amazon Managed Workflows for Apache Airflow - Service Authorization Reference
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Actions, resources, and condition keys for Amazon Managed Workflows for Apache Airflow

Amazon Managed Workflows for Apache Airflow (service prefix: airflow) provides the following service-specific operations, resources, actions, and condition keys for use in IAM permission policies.

References:

API operations defined by Amazon Managed Workflows for Apache Airflow

The following table maps API operations to the IAM actions they authorize. Only condition keys that have static values for the given API and action are listed; for the full set of condition keys supported by each action, see the Actions table.

Operation IAM action Condition key Possible value(s) Access level

CreateCliToken

airflow:CreateCliToken

Write

CreateEnvironment

airflow:CreateEnvironment

Write

airflow:TagResource

Tagging, Write

iam:PassRole

iam:PassedToService

airflow.amazonaws.com

Write

CreateWebLoginToken

airflow:CreateWebLoginToken

Write

DeleteEnvironment

airflow:DeleteEnvironment

Write

GetEnvironment

airflow:GetEnvironment

Read

InvokeRestApi

airflow:InvokeRestApi

Write

ListEnvironments

airflow:ListEnvironments

List

ListTagsForResource

airflow:ListTagsForResource

Read

PublishMetrics

airflow:PublishMetrics

Write

TagResource

airflow:TagResource

Tagging, Write

UntagResource

airflow:UntagResource

Tagging, Write

UpdateEnvironment

airflow:UpdateEnvironment

Write

iam:PassRole

iam:PassedToService

airflow.amazonaws.com

Write

Actions defined by Amazon Managed Workflows for Apache Airflow

You can specify the following actions in the Action element of an IAM policy statement. Use policies to grant permissions to perform an operation in Amazon. When you use an action in a policy, you usually allow or deny access to the API operation or CLI command with the same name. However, in some cases, a single action controls access to more than one operation. Alternatively, some operations require several different actions.

Actions Description Resource types (*required) Condition keys Access level

CreateCliToken

Grants permission to create a short-lived token that allows a user to invoke Airflow CLI via an endpoint on the Apache Airflow Webserver

environment*

Write

CreateEnvironment

Grants permission to create an Amazon MWAA environment

environment*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

Write

CreateWebLoginToken

Grants permission to create a short-lived token that allows a user to log into Apache Airflow web UI

rbac-role*

Write

DeleteEnvironment

Grants permission to delete an Amazon MWAA environment

environment*

aws:ResourceTag/${TagKey}

Write

GetEnvironment

Grants permission to view details about an Amazon MWAA environment

environment*

aws:ResourceTag/${TagKey}

Read

InvokeRestApi

Grants permission to invoke Airflow REST API via an endpoint on the Apache Airflow Webserver

rbac-role*

Write

ListEnvironments

Grants permission to list the Amazon MWAA environments in your account

List

ListTagsForResource

Grants permission to lists tag for an Amazon MWAA environment

environment

aws:ResourceTag/${TagKey}

Read

PublishMetrics

Grants permission to publish metrics for an Amazon MWAA environment

environment*

Write

TagResource

Grants permission to tag an Amazon MWAA environment

environment

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

Tagging, Write

UntagResource

Grants permission to untag an Amazon MWAA environment

environment

aws:ResourceTag/${TagKey}

aws:TagKeys

Tagging, Write

UpdateEnvironment

Grants permission to modify an Amazon MWAA environment

environment*

aws:ResourceTag/${TagKey}

Write

Resource types defined by Amazon Managed Workflows for Apache Airflow

The following resource types are defined by this service and can be used in the Resource element of IAM permission policy statements.

Resource types ARN Condition keys

environment

arn:${Partition}:airflow:${Region}:${Account}:environment/${EnvironmentName}

rbac-role

arn:${Partition}:airflow:${Region}:${Account}:role/${EnvironmentName}/${RoleName}

Condition keys for Amazon Managed Workflows for Apache Airflow

Amazon Managed Workflows for Apache Airflow defines the following condition keys that can be used in the Condition element of an IAM policy.

Condition keys Description Type

aws:RequestTag/${TagKey}

Filters access by the presence of tag key-value pairs in the request

String

aws:ResourceTag/${TagKey}

Filters access by tag key-value pairs attached to the resource

String

aws:TagKeys

Filters access by tag keys in the request

ArrayOfString