Skip to main content

security_configurations

Creates, updates, deletes or gets a security_configuration resource or lists security_configurations in a region

Overview

Namesecurity_configurations
TypeResource
DescriptionUse a SecurityConfiguration resource to configure data encryption, Kerberos authentication, and Amazon S3 authorization for EMRFS.
Idaws.emr.security_configurations

Fields

NameDatatypeDescription
namestringThe name of the security configuration.
security_configurationobjectThe security configuration details in JSON format.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTSecurityConfiguration, region
delete_resourceDELETEdata__Identifier, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all security_configurations in a region.

SELECT
region,
name,
security_configuration
FROM aws.emr.security_configurations
WHERE region = 'us-east-1';

Gets all properties from an individual security_configuration.

SELECT
region,
name,
security_configuration
FROM aws.emr.security_configurations
WHERE region = 'us-east-1' AND data__Identifier = '<Name>';

INSERT example

Use the following StackQL query and manifest file to create a new security_configuration resource, using stack-deploy.

/*+ create */
INSERT INTO aws.emr.security_configurations (
SecurityConfiguration,
region
)
SELECT
'{{ SecurityConfiguration }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.emr.security_configurations
WHERE data__Identifier = '<Name>'
AND region = 'us-east-1';

Permissions

To operate on the security_configurations resource, the following permissions are required:

Create

elasticmapreduce:CreateSecurityConfiguration,
elasticmapreduce:DescribeSecurityConfiguration

Read

elasticmapreduce:DescribeSecurityConfiguration

Delete

elasticmapreduce:DeleteSecurityConfiguration

List

elasticmapreduce:ListSecurityConfigurations