You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ aws iam put-user-policy --user-name snoopy --policy-name tooty
Traceback (most recent call last):
File "/usr/bin/aws", line 24, in <module>
main()
File "/usr/bin/aws", line 20, in main
driver.main()
File "/usr/lib/python2.7/site-packages/awscli/clidriver.py", line 315, in main
args = self.create_service_parser(remaining)
File "/usr/lib/python2.7/site-packages/awscli/clidriver.py", line 136, in create_service_parser
return self.create_operation_parser(remaining)
File "/usr/lib/python2.7/site-packages/awscli/clidriver.py", line 167, in create_operation_parser
type=self.type_map[param.type],
KeyError: u'jsondoc'
supplying the policy as a document on the command-line as raw JSON has the same issue.
The text was updated successfully, but these errors were encountered:
I believe this is fixed, as of 0.7.0. We removed the jsondoc attribute from the model. Now, if you have a JSON policy in a file called, for example, my_policy.json, you can refer to that file like this:
$ aws iam put-user-policy --user-name snoopy --policy-name tooty --policy-document file:my_policy.json
You can specify a relative or full-qualified path after the file: prefix. I hope that works for you. I'm going to close this issue now but re-open if you continue to have problems.
using:
aws-cli/0.6.0 Python/2.7.3 Linux/3.7.6-102.fc17.x86_64
gives the stack trace:
supplying the policy as a document on the command-line as raw JSON has the same issue.
The text was updated successfully, but these errors were encountered: