Table: aws_emr_security_configuration - Query AWS EMR Security Configurations using SQL
AWS EMR (Amazon Elastic MapReduce) Security Configuration is a set of security settings and configurations that can be applied to EMR clusters to manage encryption, authentication, and authorization. These configurations are crucial for ensuring that your EMR clusters handle data securely, protecting sensitive information, and complying with various data security standards and regulations.
Table Usage Guide
The aws_emr_security_configuration
table in Steampipe allows users to query information about AWS EMR Security Configurations. These configurations are essential for securing EMR clusters, managing encryption, and ensuring compliance with data security standards. Users can retrieve details such as the configuration name, creation date and time, encryption configuration, instance metadata service configuration, and the overall security configuration.
Examples
Basic info
Retrieve basic information about AWS EMR Security Configurations, including their names, creation date and time, encryption configurations, instance metadata service configurations, and security configurations. This query provides an overview of the security configurations in your AWS EMR environment.
select name, creation_date_time, encryption_configuration, instance_metadata_service_configuration, security_configurationfrom aws_emr_security_configuration;
select name, creation_date_time, encryption_configuration, instance_metadata_service_configuration, security_configurationfrom aws_emr_security_configuration;
List security configurations created in the last 30 days
Identify AWS EMR Security Configurations created within the last 30 days. This query helps you keep track of recently created security configurations.
select name, creation_date_time, security_configurationfrom aws_emr_security_configurationwhere creation_date_time >= now() - interval '30' day;
select name, creation_date_time, security_configurationfrom aws_emr_security_configurationwhere creation_date_time >= datetime('now', '-30 day');
Get encryption configuration details for security configurations
Retrieve detailed encryption configuration information for AWS EMR Security Configurations. This includes information such as AWS KMS keys, EBS encryption settings, encryption key provider types, S3 encryption configurations, and more. This query allows you to inspect the encryption settings in your security configurations.
select name, creation_date_time, encryption_configuration -> 'AtRestEncryptionConfiguration' -> 'LocalDiskEncryptionConfiguration' ->> 'AwsKmsKey' as aws_kms_key, encryption_configuration -> 'AtRestEncryptionConfiguration' -> 'LocalDiskEncryptionConfiguration' ->> 'EnableEbsEncryption' as enable_ebs_encryption, encryption_configuration -> 'AtRestEncryptionConfiguration' -> 'LocalDiskEncryptionConfiguration' ->> 'EncryptionKeyProviderType' as encryption_key_provider_type, encryption_configuration -> 'S3EncryptionConfiguration' as s3_encryption_configuration, encryption_configuration ->> 'EnableAtRestEncryption' as enable_at_rest_encryption, encryption_configuration ->> 'EnableInTransitEncryption' as enable_in_transit_encryption, encryption_configuration -> 'InTransitEncryptionConfiguration' as in_transit_encryption_configurationfrom aws_emr_security_configuration;
select name, creation_date_time, json_extract( encryption_configuration, '$.AtRestEncryptionConfiguration.LocalDiskEncryptionConfiguration.AwsKmsKey' ) as aws_kms_key, json_extract( encryption_configuration, '$.AtRestEncryptionConfiguration.LocalDiskEncryptionConfiguration.EnableEbsEncryption' ) as enable_ebs_encryption, json_extract( encryption_configuration, '$.AtRestEncryptionConfiguration.LocalDiskEncryptionConfiguration.EncryptionKeyProviderType' ) as encryption_key_provider_type, json_extract( encryption_configuration, '$.S3EncryptionConfiguration' ) as s3_encryption_configuration, json_extract( encryption_configuration, '$.EnableAtRestEncryption' ) as enable_at_rest_encryption, json_extract( encryption_configuration, '$.EnableInTransitEncryption' ) as enable_in_transit_encryption, json_extract( encryption_configuration, '$.InTransitEncryptionConfiguration' ) as in_transit_encryption_configurationfrom aws_emr_security_configuration;
Control examples
- All Controls > EMR > EMR cluster local disks should be encrypted with CMK
- All Controls > EMR > EMR clusters client side encryption (CSE CMK) enabled with CMK
- All Controls > EMR > EMR clusters encryption at rest should be enabled
- All Controls > EMR > EMR clusters encryption in transit should be enabled
- All Controls > EMR > EMR clusters local disk encryption should be enabled
- All Controls > EMR > EMR clusters server side encryption (SSE KMS) enabled with KMS
Schema for aws_emr_security_configuration
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form. | |
account_id | text | =, !=, ~~, ~~*, !~~, !~~* | The AWS Account ID in which the resource is located. |
creation_date_time | timestamp with time zone | The date and time the security configuration was created. | |
encryption_configuration | jsonb | The encryption configuration details for a secutiry configuration. | |
instance_metadata_service_configuration | jsonb | The instance metadata service configuration details for a secutiry configuration. | |
name | text | = | The name of the security configuration. |
partition | text | The AWS partition in which the resource is located (aws, aws-cn, or aws-us-gov). | |
region | text | The AWS Region in which the resource is located. | |
security_configuration | jsonb | The security configuration details in JSON format. | |
sp_connection_name | text | =, !=, ~~, ~~*, !~~, !~~* | Steampipe connection name. |
sp_ctx | jsonb | Steampipe context in JSON form. | |
title | text | Title of the resource. |
Export
This table is available as a standalone Exporter CLI. Steampipe exporters are stand-alone binaries that allow you to extract data using Steampipe plugins without a database.
You can download the tarball for your platform from the Releases page, but it is simplest to install them with the steampipe_export_installer.sh
script:
/bin/sh -c "$(curl -fsSL https://steampipe.io/install/export.sh)" -- aws
You can pass the configuration to the command with the --config
argument:
steampipe_export_aws --config '<your_config>' aws_emr_security_configuration