Specifying Encryption Options Using the AWS CLI The sections that follow use

Specifying encryption options using the aws cli the

This preview shows page 155 - 158 out of 395 pages.

Specifying Encryption Options Using the AWS CLI The sections that follow use sample scenarios to illustrate well-formed --security-configuration JSON for different configurations and key providers, followed by a reference for the JSON parameters and appropriate values. Example In-Transit Data Encryption Options The example below illustrates the following scenario: In-transit data encryption is enabled and at-rest data encryption is disabled. A zip file with certificates in Amazon S3 is used as the key provider (see Providing Certificates for Encrypting Data in Transit with Amazon EMR Encryption (p. 171) for certificate requirements. aws emr create-security-configuration --name "MySecConfig" --security-configuration '{ "EncryptionConfiguration": { "EnableInTransitEncryption" : true, "EnableAtRestEncryption" : false, "InTransitEncryptionConfiguration" : { "TLSCertificateConfiguration" : { "CertificateProviderType" : "PEM", "S3Object" : "s3://MyConfigStore/artifacts/MyCerts.zip" } } } }' The example below illustrates the following scenario: In-transit data encryption is enabled and at-rest data encryption is disabled. A custom key provider is used (see Providing Certificates for Encrypting Data in Transit with Amazon EMR Encryption (p. 171) for certificate requirements). 149
Image of page 155
Amazon EMR Management Guide Create a Security Configuration aws emr create-security-configuration --name "MySecConfig" --security-configuration '{ "EncryptionConfiguration": { "EnableInTransitEncryption" : true, "EnableAtRestEncryption" : false, "InTransitEncryptionConfiguration" : { "TLSCertificateConfiguration" : { "CertificateProviderType" : "Custom", "S3Object" : "s3://MyConfig/artifacts/MyCerts.jar", "CertificateProviderClass" : "com.mycompany.MyCertProvider" } } } }' Example At-Rest Data Encryption Options The example below illustrates the following scenario: In-transit data encryption is disabled and at-rest data encryption is enabled. SSE-S3 is used for Amazon S3 encryption. Local disk encryption uses AWS KMS as the key provider. aws emr create-security-configuration --name "MySecConfig" --security-configuration '{ "EncryptionConfiguration": { "EnableInTransitEncryption" : false, "EnableAtRestEncryption" : true, "AtRestEncryptionConfiguration" : { "S3EncryptionConfiguration" : { "EncryptionMode" : "SSE-S3" }, "LocalDiskEncryptionConfiguration" : { "EncryptionKeyProviderType" : "AwsKms", "AwsKmsKey" : "arn:aws:kms:us- east-1:123456789012:key/12345678-1234-1234-1234-123456789012" } } } }' The example below illustrates the following scenario: In-transit data encryption is enabled and references a zip file with PEM certificates in Amazon S3, using the ARN. SSE-KMS is used for Amazon S3 encryption. Local disk encryption uses AWS KMS as the key provider. aws emr create-security-configuration --name "MySecConfig" --security-configuration '{ "EncryptionConfiguration": { "EnableInTransitEncryption" : true, "EnableAtRestEncryption" : true, "InTransitEncryptionConfiguration" : { "TLSCertificateConfiguration" : { "CertificateProviderType" : "PEM", "S3Object" : "arn:aws:s3:::MyConfigStore/artifacts/MyCerts.zip" } }, 150
Image of page 156
Amazon EMR Management Guide Create a Security Configuration "AtRestEncryptionConfiguration" : { "S3EncryptionConfiguration" : { "EncryptionMode" : "SSE-KMS", "AwsKmsKey" : "arn:aws:kms:us-
Image of page 157
Image of page 158

You've reached the end of your free preview.

Want to read all 395 pages?

  • Spring '12
  • LauraParker
  • Amazon Web Services, Amazon Elastic Compute Cloud

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors