aws.airflow
Filters
kms-key
Filter a Managed Workflow for Apache Airflow environment by its associcated kms key and optionally the aliasname of the kms key by using ‘c7n:AliasName’
- example:
policies:
- name: airflow-kms-key-filter
resource: airflow
filters:
- type: kms-key
key: c7n:AliasName
value: alias/aws/mwaa
properties:
default:
type: object
key:
type: string
match-resource:
type: boolean
op:
enum:
- eq
- equal
- ne
- not-equal
- gt
- greater-than
- ge
- gte
- le
- lte
- lt
- less-than
- glob
- regex
- regex-case
- in
- ni
- not-in
- contains
- difference
- intersect
- mod
operator:
enum:
- and
- or
type:
enum:
- kms-key
value:
oneOf:
- type: array
- type: string
- type: boolean
- type: number
- type: 'null'
value_from:
additionalProperties: 'False'
properties:
expr:
oneOf:
- type: integer
- type: string
format:
enum:
- csv
- json
- txt
- csv2dict
headers:
patternProperties:
? ''
: type: string
type: object
query:
type: string
url:
type: string
required:
- url
type: object
value_path:
type: string
value_regex:
type: string
value_type:
enum:
- age
- integer
- expiration
- normalize
- size
- cidr
- cidr_size
- swap
- resource_count
- expr
- unique_size
- date
- version
- float
required:
- type
Permissions - kms:ListKeys, tag:GetResources, kms:ListResourceTags, kms:DescribeKey
Actions
delete-environment
Action to delete a Managed Workflow for Apache Airflow environment
- example:
policies:
- name: delete-airflow-environment
resource: airflow
actions:
- type: delete-environment
properties:
type:
enum:
- delete-environment
required:
- type
Permissions - airflow:DeleteEnvironment
update-environment
Action to update an Airflow environment to set the WebserverAccessMode to PRIVATE_ONLY or PUBLIC_ONLY.
- example:
policies:
- name: set-webserver-access-mode
resource: airflow
actions:
- type: update-environment
access_mode: PRIVATE_ONLY
properties:
access_mode:
enum:
- PRIVATE_ONLY
- PUBLIC_ONLY
type: string
type:
enum:
- update-environment
required:
- access_mode
- type
Permissions - airflow:UpdateEnvironment