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
MediumAddress
Operational Maturity, Reliability, SecurityCompliance 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
Remediation
Using Console
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:
- Login to AWS Management Console.
- Navigate to Elastic Beanstalk service.
- Select the environment for which you want to enable the managed platform updates.
- Click on the “Configuration” option from the left-hand menu.
- Scroll down to the “Managed platform updates” section and click on “Edit”.
- Select the “Enable managed platform updates” checkbox.
- Choose the “All platform updates” option from the dropdown.
- Click on the “Apply” button to save the changes.
- Wait for the environment to update with the latest platform version.
Using CLI
Using CLI
To remediate the misconfiguration “Ensure Managed Platform Updates Are Enabled For Elastic Beanstalk Environment” for AWS using AWS CLI, follow the below steps:Note: Replace Note: Replace
- Open the terminal and install the AWS CLI if it is not already installed.
-
Configure the AWS CLI using the
aws configurecommand by providing the Access Key ID, Secret Access Key, Default region name, and output format. - Execute the below command to enable managed platform updates for the Elastic Beanstalk environment:
<environment-name> with the name of the Elastic Beanstalk environment for which you want to enable managed platform updates.- Verify the changes by executing the below command:
<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.Using Python
Using Python
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: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
- Install Boto3:
- Import the Boto3 library and create an Elastic Beanstalk client:
- Retrieve the list of environments in your account:
- Loop through the list of environments and enable managed platform updates for each one:
your_application_name with the name of your Elastic Beanstalk application.Using Terraform
Using Terraform
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.
