Description
Both examples run Memcached. Compare the deployed version with the Memcached releases AWS supports for your Region and node type, and with your patching requirements.
Potential impact
An old release can retain known defects, while an incompatible update can interrupt connections. To assess PCI DSS coverage, also check the service scope and your encryption, authentication and access controls.
Remediation
Choose a supported upgrade path, test clients and parameters, and prepare to recover the data or rebuild the cache. Schedule the change carefully because community.aws 11.1.0 requests immediate application of version changes. Verify the running version and application connectivity afterward.
Examples
The tasks target the same cluster. 1.4.14 is the older configuration. Supply the tested Memcached version as approved_memcached_version, a supported cache_node_type, and the cluster’s networking and access settings.
Before
- name: Configure the Memcached version
community.aws.elasticache:
name: test-please-delete
state: present
engine: memcached
cache_engine_version: 1.4.14
node_type: "{{ cache_node_type }}"
num_nodes: 1
After
- name: Configure the Memcached version
community.aws.elasticache:
name: test-please-delete
state: present
engine: memcached
cache_engine_version: "{{ approved_memcached_version }}"
node_type: "{{ cache_node_type }}"
num_nodes: 1
References
- CWE-665
- Ansible community.aws.elasticache documentation
- Ansible community.aws 11.1.0 ElastiCache implementation
- AWS's 2018 ElastiCache for Redis PCI DSS announcement
- Current ElastiCache compliance scope and responsibilities
- Supported engine versions
- ElastiCache engine version management
- Considerations when changing versions