Discussion:
interacting with AWS account password policy?
Jeff Gelb
2012-12-11 17:03:43 UTC
Permalink
Hi. I'm new to fog.

Two questions:

- Is there any support for the AccountPasswordPolicy APIs ? I see
wrappers for the user and group policies in the AWS models and requests,
but nothing for accounts.

- If the answer to the above is no or not yet, is there a canonical way
to use the Connection to work directly with cloud vendor APIs that are not
yet supported?

Thanks!
Frederick Cheung
2012-12-11 17:23:43 UTC
Permalink
Post by Jeff Gelb
Hi. I'm new to fog.
- Is there any support for the AccountPasswordPolicy APIs ? I see wrappers for the user and group policies in the AWS models and requests, but nothing for accounts.
Not sure about that.
Post by Jeff Gelb
- If the answer to the above is no or not yet, is there a canonical way to use the Connection to work directly with cloud vendor APIs that are not yet supported?
The requests that ship as part of fog aren't really 'blessed' in any particular way. You can call add_user_to_group(…) but that is no different to calling

request( 'Action' => 'AddUserToGroup',
'GroupName' => group_name,
'UserName' => user_name,
:parser => Fog::Parsers::AWS::IAM::Basic.new
)

Of course if the api you're poking returns data you'll have to write a parser class, but again whether or not that is actually part of fog doesn't really matter.

If you figure our the request & the parser then you're most of the way to adding full fog support - just tests + some boiler plate is need on top of that.

Fred
Post by Jeff Gelb
Thanks!
Loading...