Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aws ec2 modify-image-attribute appears broken in 0.6.0 #53

Closed
nonspecialist opened this issue Feb 21, 2013 · 3 comments
Closed

aws ec2 modify-image-attribute appears broken in 0.6.0 #53

nonspecialist opened this issue Feb 21, 2013 · 3 comments

Comments

@nonspecialist
Copy link

Given an existing AMI:

aws ec2 modify-image-attribute \
    --image-id ami-d00dbeef --launch-permission '{"add":[{"user_id":"123456789012"}]}'

returns the error:

{
    "Response": {
        "Errors": {
            "Error": {
                "Message": "Value (<bound method ListParameter) for parameter QueryStringParameter is invalid. Invalid or illegal XML character specified", 
                "Code": "InvalidParameterValue"
            }
        }, 
    "RequestID": "232bab5b-71d4-4bdd-b6df-0e58a3c199ed"
    }
}

Attempting to use the other method (as half-documented in the help) gives a different error:

aws ec2 modify-image-attribute \
    --image-id ami-d00dbeef \
    --operation-type add --user-ids 0123456789012

"Error": {
    "Message": "An internal error has occurred", 
    "Code": "InternalError"
}

Note this error occurs whether you use a single user ID, or a list (of the form '["0123456789012"]' )

@garnaat
Copy link
Contributor

garnaat commented Feb 21, 2013

The first issue is the result of a bug in botocore which was fixed in boto/botocore@bd47fc7.

The second issue is a bit more mysterious and we are still investigating. Thanks for reporting it.

@garnaat
Copy link
Contributor

garnaat commented Feb 22, 2013

For the second issue, I have found that this incantation does work:

aws ec2 modify-image-attribute \
--image-id ami-d00dbeef \
--operation-type add --user-ids 0123456789012 \
--attribute launchPermission

Does that work for you?

@nonspecialist
Copy link
Author

Yes, thanks -- using awscli 0.7.0 all is well

kdaily pushed a commit to kdaily/aws-cli that referenced this issue Apr 15, 2021
Accept multiple callbacks to aggregate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants