Skip to main content

More Info:

Ensure that all your Amazon Elastic Beanstalk (EB) application environments have platform updates enabled in order to receive bug fixes, software updates and new features. Managed platform updates perform immutable environment updates.

Risk Level

Medium

Address

Operational Maturity, Reliability, Security

Compliance Standards

  • APRA CPS 234 (Australia)
  • BSI C5 (Germany)
  • Brazil LGPD
  • CCPA / CPRA (California)
  • CIS Critical Security Controls v8
  • CMMC 2.0
  • CSA Cloud Controls Matrix v4
  • DPDPA
  • Digital Operational Resilience Act (EU)
  • Essential 8
  • HIPAA
  • ISO 27001
  • ISO/IEC 27017
  • ISO/IEC 27018
  • ISO/IEC 27701
  • KSA PDPL
  • MAS Technology Risk Management (Singapore)
  • MITRE ATT&CK (Cloud)
  • NIS2 Directive
  • NIST SP 800-171
  • NYDFS 23 NYCRR 500
  • Reserve Bank of India (RBI) Cyber Security Framework
  • Reserve Bank of India (RBI) Master Direction – Information Technology Framework
  • SWIFT Customer Security Controls Framework
  • Sarbanes-Oxley IT General Controls
  • UK NCSC Cyber Assessment Framework

Triage and Remediation

Remediation

Using Console

To remediate the misconfiguration “Ensure Managed Platform Updates Are Enabled For Elastic Beanstalk Environment” in AWS using AWS console, follow the below steps:
  1. Login to AWS Management Console.
  2. Navigate to Elastic Beanstalk service.
  3. Select the environment for which you want to enable the managed platform updates.
  4. Click on the “Configuration” option from the left-hand menu.
  5. Scroll down to the “Managed platform updates” section and click on “Edit”.
  6. Select the “Enable managed platform updates” checkbox.
  7. Choose the “All platform updates” option from the dropdown.
  8. Click on the “Apply” button to save the changes.
  9. Wait for the environment to update with the latest platform version.
By following the above steps, you will be able to remediate the misconfiguration “Ensure Managed Platform Updates Are Enabled For Elastic Beanstalk Environment” for AWS using AWS console.

To remediate the misconfiguration “Ensure Managed Platform Updates Are Enabled For Elastic Beanstalk Environment” for AWS using AWS CLI, follow the below steps:
  1. Open the terminal and install the AWS CLI if it is not already installed.
  2. Configure the AWS CLI using the aws configure command by providing the Access Key ID, Secret Access Key, Default region name, and output format.
  3. Execute the below command to enable managed platform updates for the Elastic Beanstalk environment:
Note: Replace <environment-name> with the name of the Elastic Beanstalk environment for which you want to enable managed platform updates.
  1. Verify the changes by executing the below command:
Note: Replace <environment-name> with the name of the Elastic Beanstalk environment for which you have enabled managed platform updates.The output of the above command should be true, which indicates that managed platform updates are enabled for the Elastic Beanstalk environment.
To remediate the misconfiguration “Ensure Managed Platform Updates Are Enabled For Elastic Beanstalk Environment” for AWS using Python, you can use the AWS SDK for Python (Boto3) to enable managed platform updates for your Elastic Beanstalk environment. Here are the step-by-step instructions:
  1. Install Boto3:
  1. Import the Boto3 library and create an Elastic Beanstalk client:
  1. Retrieve the list of environments in your account:
  1. Loop through the list of environments and enable managed platform updates for each one:
This code will loop through all the Elastic Beanstalk environments in your account, check if managed platform updates are already enabled, and enable them if they are not. Note that you will need to replace your_application_name with the name of your Elastic Beanstalk application.
Updating these setting blocks changes the environment in place (no Terraform resource replacement), but AWS will perform an environment update which may cause downtime depending on your deployment policy.Verification: terraform plan should show setting entries being added or updated with namespace = "aws:elasticbeanstalk:managedactions" and name/value pairs ManagedActionsEnabled = true, UpdateLevel = minor, and PreferredStartTime = Sun:10:00 for the target environment.

Additional Reading: