Thanks for the replies. I have posted a support on AWS Forum, so hopefully I get a reply back.
I have though manage to semi fixed it. It seems in some regions, AWS either 'cache_security_groups' to be empty OR 'security_group_ids' to be passed empty. The below seems to now work happily with AWS for some reason - my example uses Redis.
- name: AWS | Create Database in Redis
local_action:
region: sa-east-1
module: elasticache
name: "test-please-delete3"
state: present
engine: redis
cache_engine_version: 2.8.6
node_type: cache.m1.small
num_nodes: 1
cache_port: 6379
cache_security_groups: []
security_group_ids:
- sg-x1x1x1x1
zone: sa-east-1a
Passing an empty list to 'cache_security_groups' seems to fix it fine. This is in ansible version 1.7.1