π‘οΈ AWS Elastic Beanstalk Environment does not have managed platform updates enabledπ’
- Contextual name: π‘οΈ Environment does not have managed platform updates enabledπ’
- ID:
/ce/ca/aws/elastic-beanstalk/environment-updates - Tags:
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
RELIABILITY
Logicβ
- π§ prod.logic.yamlπ’
Similar Policiesβ
- AWS Security Hub: [ElasticBeanstalk.2] Elastic Beanstalk managed platform updates should be enabled
- Cloud Conformity: Elastic Beanstalk Managed Platform Updates
Descriptionβ
Descriptionβ
This policy identifies AWS Elastic Beanstalk Environments that do not have Managed Platform Updates enabled.
Managed platform updates use an immutable deployment model to automatically upgrade an Elastic Beanstalk environment to a new platform version. During an immutable update, Elastic Beanstalk provisions a parallel set of EC2 instances running the new platform version while the existing instances continue to serve traffic. Once the new instances pass all health checks, the original instances are terminated, leaving only the updated environment in service. This approach ensures platform updates are applied without service interruption or in-place modification of existing instances.
Rationaleβ
Amazon Elastic Beanstalk regularly releases platform updates for Linux- and Windows-based environments. These updates include security patches, operating system fixes, performance improvements, and new platform features.
When Managed Platform Updates are enabled, Elastic Beanstalk applies these updates automatically during a user-defined maintenance window. Updates are performed using an immutable deployment strategy, ensuring that the environment can safely roll back to its original state if an update fails. This reduces operational risk while helping maintain a secure, stable, and up-to-date application environment.
... see more
Remediationβ
Remediationβ
Enable Managed Platform Updates the Elastic Beanstalk Environmentβ
Managed platform updates allow Elastic Beanstalk to automatically apply platform updates during a defined maintenance window using an immutable deployment strategy, helping ensure availability and safe rollback in the event of a failure.
From Command Lineβ
Run the
update-environmentcommand to enable managed platform updates and configure the maintenance window and update behavior for the selected environment:aws elasticbeanstalk update-environment \
--region {{region}} \
--environment-name {{environment-name}} \
--option-settings \
Namespace=aws:elasticbeanstalk:managedactions,OptionName=ManagedActionsEnabled,Value=true \
Namespace=aws:elasticbeanstalk:managedactions,OptionName=PreferredStartTime,Value={{day:hour:minute}} \
Namespace=aws:elasticbeanstalk:managedactions,OptionName=ServiceRoleForManagedUpdates,Value={{ServiceRole}} \
Namespace=aws:elasticbeanstalk:managedactions:platformupdate,OptionName=UpdateLevel,Value={{major | minor | patch}} \
... [see more](remediation.md)