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


On Friday, 15 August 2014 17:03:11 UTC-7, Shih Oon Liong wrote:
>
> I was trying to provision a new memcached server via ansible 
>
> - name: AWS | Create Redis
>       local_action:
>         module: elasticache
>         region: sa-east-1
>         name: "test-please-delete"
>         state: present
>         engine: memcached
>         cache_engine_version: 1.4.14
>         node_type: cache.m1.small
>         num_nodes: 1
>         cache_port: 11211
>         cache_security_groups:
>            - *default*
>         zone: sa-east-1a
>
>
>
> When I ran it I get the error " Use of cache security groups is not 
> permitted in this API version for your account." This seems to only occur 
> in Sau Paolo Region and every other reason. With the only exception being 
> US East for example works fine. 
>
> Any ideas where I can diagnose this - looking for this error on google 
> shows me no lead thus far
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/7a00d0b8-6365-443f-a9af-ec939ca712be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to