aws.emr¶
Resource manager for Elastic MapReduce clusters
Filters¶
security-configuration¶
- Filter for annotate security configuration and
filter based on its attributes.
- example:
policies:
- name: emr-security-configuration
resource: emr
filters:
- type: security-configuration
key: EnableAtRestEncryption
value: true
properties:
default:
type: object
key:
type: string
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
type:
enum:
- security-configuration
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 - elasticmapreduce:ListSecurityConfigurations, elasticmapreduce:DescribeSecurityConfiguration
Actions¶
terminate¶
Action to terminate EMR cluster(s)
It is recommended to apply a filter to the terminate action to avoid termination of all EMR clusters
- example:
policies:
- name: emr-terminate
resource: emr
query:
- ClusterStates: [STARTING, BOOTSTRAPPING, RUNNING, WAITING]
actions:
- terminate
properties:
force:
type: boolean
type:
enum:
- terminate
required:
- type
Permissions - elasticmapreduce:TerminateJobFlows