1

How can I change the access policies of a cloudsearch domain via boto? Is it possible at all?

Using boto 2.6.0 I see a get_access_policies() method in the domain instance, but nothing for modifying the policies.

Charles
  • 50,943
  • 13
  • 104
  • 142
Alfe
  • 56,346
  • 20
  • 107
  • 159

1 Answers1

1

That method returns an OptionStatus object. It looks like you can change the object's attributes and then call its save() method to modify policies.

khagler
  • 3,996
  • 29
  • 40
  • Thanks! Yes, that solution was also used in http://boto.readthedocs.org/en/latest/cloudsearch_tut.html – Alfe Dec 10 '12 at 08:29
  • Ah, and finding one's own external IP in an EC2 instance can be done by GETting the answer for http://169.254.169.254/latest/meta-data/public-ipv4 – Alfe Dec 10 '12 at 08:31