Triage and Remediation
Remediation
Using Console
Using Console
To remediate the misconfiguration of Firehose Delivery Stream Destination Encryption for AWS DynamoDB using the AWS console, follow these steps:
- Sign in to the AWS Management Console: Go to https://aws.amazon.com/ and sign in to your AWS account.
- Navigate to Amazon Kinesis: In the AWS Management Console, navigate to the Amazon Kinesis service by either searching for it in the search bar or locating it under the “Analytics” section.
- Select the Kinesis Data Firehose service: Click on “Kinesis Data Firehose” from the list of services.
- Choose your Delivery Stream: Select the specific delivery stream that is connected to the DynamoDB table that you want to remediate.
- Edit the Delivery Stream: Click on the “Edit” button to modify the settings of the delivery stream.
- Enable Server-Side Encryption: In the “Destination” section, locate the “Server-Side Encryption” option and enable it.
- Select the Encryption Type: Choose the appropriate encryption type for your DynamoDB data. You can select either “AWS KMS master key” or “Amazon S3 master key” based on your security requirements.
- Configure Encryption Settings: Follow the on-screen instructions to configure the encryption settings, such as selecting the KMS key or S3 key to use for encryption.
- Save Changes: Once you have configured the encryption settings, click on the “Save” button to apply the changes to the delivery stream.
- Verify Encryption Configuration: After saving the changes, verify that the server-side encryption is enabled for the delivery stream by checking the settings.
Using CLI
Using CLI
To remediate the misconfiguration of Firehose Delivery Stream Destination Encryption for AWS DynamoDB using AWS CLI, follow these steps:Replace the placeholders with the actual values:
- Open your terminal or command prompt.
- Use the following AWS CLI command to update the Firehose Delivery Stream with the correct encryption settings:
YOUR_DELIVERY_STREAM_NAME
: The name of your Firehose Delivery Stream.YOUR_DELIVERY_STREAM_VERSION_ID
: The version ID of your Firehose Delivery Stream.YOUR_DESTINATION_ID
: The ID of the destination you want to update.
- After running the command, the Firehose Delivery Stream Destination Encryption for AWS DynamoDB should be successfully updated to use no encryption.
Using Python
Using Python
To remediate the misconfiguration of Firehose Delivery Stream Destination Encryption for AWS DynamoDB using Python, you can follow these steps:
- Install the AWS SDK for Python (Boto3) if you haven’t already. You can install it using pip:
- Use the following Python script to update the Firehose Delivery Stream Destination Encryption for AWS DynamoDB:
-
Replace
'YOUR_DELIVERY_STREAM_NAME'
with the name of your Firehose Delivery Stream and'YOUR_KMS_KEY_ARN'
with the ARN of the KMS key you want to use for encryption. - Run the Python script to update the Firehose Delivery Stream Destination Encryption for AWS DynamoDB.