Skip to main content

Triage and Remediation

Remediation

Using Console

To remediate the misconfiguration of enabling Firehose Delivery Stream Server-Side Encryption for AWS DynamoDB using the AWS Management Console, follow these step-by-step instructions:
  1. Sign in to the AWS Management Console:
  2. Navigate to Amazon Kinesis Data Firehose:
    • In the AWS Management Console, search for “Kinesis” in the search bar at the top and select “Kinesis” under the Analytics section.
  3. Select the Firehose Delivery Stream:
    • Click on the “Delivery Streams” option on the left sidebar to view a list of your existing Firehose delivery streams.
    • Select the Firehose delivery stream that is connected to your DynamoDB table and requires server-side encryption.
  4. Enable Server-Side Encryption:
    • In the selected Firehose delivery stream details page, click on the “Edit” button to modify the settings.
    • Scroll down to the “Server-side encryption” section and select the option for “Enable server-side encryption.”
    • Choose the appropriate KMS key from the dropdown menu or create a new KMS key if necessary.
  5. Save Changes:
    • After enabling server-side encryption and selecting the KMS key, click on the “Save” button to apply the changes to the Firehose delivery stream.
  6. Verify Encryption Configuration:
    • Once the changes are saved, verify that server-side encryption is enabled for the Firehose delivery stream by checking the settings in the details page.
By following these steps, you will successfully remediate the misconfiguration by enabling Firehose Delivery Stream Server-Side Encryption for AWS DynamoDB using the AWS Management Console.

To enable server-side encryption for an AWS Kinesis Data Firehstream using AWS CLI, follow these steps:
  1. Open the AWS CLI and run the following command to enable server-side encryption for the Firehose Delivery Stream:
Make sure to replace YOUR_DELIVERY_STREAM_NAME with the actual name of your Firehose Delivery Stream.
  1. Once the command is executed successfully, the server-side encryption will be enabled for the specified Firehose Delivery Stream using the AWS-owned Customer Master Key (CMK).
  2. You can verify the changes by describing the delivery stream using the following command:
Look for the EncryptionConfiguration section in the output to confirm that server-side encryption is enabled.By following these steps, you can remediate the misconfiguration and enable server-side encryption for an AWS Kinesis Data Firehose Delivery Stream using AWS CLI.
To remediate the misconfiguration of enabling Firehose Delivery Stream Server-Side Encryption for AWS DynamoDB using Python, follow these steps:
  1. Import the necessary libraries:
  1. Initialize the AWS DynamoDB client:
  1. Get the list of all the existing DynamoDB tables:
  1. Iterate through each table and enable server-side encryption for the desired table:
  1. Run the Python script to enable server-side encryption for all the DynamoDB tables.
By following these steps, you can remediate the misconfiguration of enabling Firehose Delivery Stream Server-Side Encryption for AWS DynamoDB using Python.
Enabling or changing server_side_encryption on an existing Firehose delivery stream is applied in-place via the underlying StartDeliveryStreamEncryption API and does not force replacement of the stream.For verification, terraform plan should show an update to aws_kinesis_firehose_delivery_stream.this adding or modifying the server_side_encryption block so that enabled is true and key_type (and key_arn if using a customer-managed CMK) match the desired configuration.