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

Error parsing parameter #2201

Closed
Baskaran164 opened this issue Sep 27, 2016 · 2 comments
Closed

Error parsing parameter #2201

Baskaran164 opened this issue Sep 27, 2016 · 2 comments
Labels
closing-soon This issue will automatically close in 4 days unless further comments are made. guidance Question that needs advice or information.

Comments

@Baskaran164
Copy link

Baskaran164 commented Sep 27, 2016

while executing this

aws ec2 describe-tags --filters "Name=resource-id","Values=$INSTANCE_ID" > ec2_tags
    TAG_LINE=$(grep -n "EC2KeyName" "ec2_tags" | cut -d':' -f1)

Error parsing parameter '--filters': Expected: ',', received: '"' for input:
Name=resource-id,Values=Please login as the user "ec2-user" rather than the user "root".

awscli -version : aws-cli/1.10.66 Python/2.7.6 Linux/3.13.0-95-generic botocore/1.4.56

@JordonPhillips
Copy link
Member

Looks like your $INSTANCE_ID parameter isn't getting set right, it's being passed in as Please login as the user "ec2-user" rather than the user "root" which is breaking the parser as you have non-encapsulated string values. Though I'm fairly certain you don't want that value for $INSTANCE_ID, you could make it work by encapsulating the value with single quotes like so: aws ec2 describe-tags --filters "Name=resource-id","Values='$INSTANCE_ID'"

@JordonPhillips JordonPhillips added question closing-soon This issue will automatically close in 4 days unless further comments are made. labels Sep 27, 2016
@JordonPhillips
Copy link
Member

Closing due to inactivity

@diehlaws diehlaws added guidance Question that needs advice or information. and removed question labels Jan 4, 2019
thoward-godaddy pushed a commit to thoward-godaddy/aws-cli that referenced this issue Feb 12, 2022
…aws#2201)

* chore: bump lambda-builder version v1.1.0 and sam-cli version v1.2.0.

* after updating version, run a command to update requirements/reproducible-linux.txt file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closing-soon This issue will automatically close in 4 days unless further comments are made. guidance Question that needs advice or information.
Projects
None yet
Development

No branches or pull requests

3 participants