security_configurations
Creates, updates, deletes or gets a security_configuration
resource or lists security_configurations
in a region
Overview
Name | security_configurations |
Type | Resource |
Description | Use a SecurityConfiguration resource to configure data encryption, Kerberos authentication, and Amazon S3 authorization for EMRFS. |
Id | aws.emr.security_configurations |
Fields
Name | Datatype | Description |
---|---|---|
name | string | The name of the security configuration. |
security_configuration | object | The security configuration details in JSON format. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | SecurityConfiguration, region |
delete_resource | DELETE | data__Identifier, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.emr.security_configurations (
SecurityConfiguration,
region
)
SELECT
'{{ SecurityConfiguration }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.emr.security_configurations (
Name,
SecurityConfiguration,
region
)
SELECT
'{{ Name }}',
'{{ SecurityConfiguration }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: security_configuration
props:
- name: Name
value: '{{ Name }}'
- name: SecurityConfiguration
value: {}
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