Uploads a policy to an account.


euare-accountuploadpolicy -a account_name -p 
				policy_name [-o policy_content | -f policy_document


Option Description Required
-a, --account-name account_name Name of the account the policy is associated with Yes
-p, --policy-name policy_name Name of the policy document to upload Yes
-o, --policy-content policy_content The policy document content. Include this content if you do not include the policy-document option. Conditional
-f, --policy-document policy_document The policy document file. Include this file if you do not include the policy-content option. Conditional

Common Options

Option Description
--region=region Region to direct requests to.
-U url,--url=url Override service URL with this value.
-I access_key_id, --access-key=access_key_id Override configured access key ID with this value.
-S secret_key, --secret-key=secret_key Override configured secret key with this value.
--security-token=token Security token.
--debug Prints what the command sends to the server and what it receives from the server. Use when you're trying to debug Euca2ools.
--debugger Enable interactive debugger on error.
-h,--help Display the manual page for the command.
--version Display the version of this tool.


Eucalyptus does not return any message.


The following example uploads a policy using the policy content in the command.

euare-accountuploadpolicy -a myacct -p mypolicy -o '<IAM policy>'

The following example uploads a policy using content in a policy file.

euare-accountuploadpolicy -a myacct -p mypolicy -f <file containing
IAM policy>