Aws-sam-cli: Make sam deploy output more user-friendly

Created on 11 Dec 2019  路  2Comments  路  Source: aws/aws-sam-cli

Describe your idea/feature/enhancement

The new sam deploy command is fantastic, but the output can be slightly more UX-friendly.
For example, the output is nicely formatted, but when I try the copy the URL, which is in the multiple lines, I get the URL with spaces.

Here's the screenshot of the action:
Screenshot_2019-12-11_at_14_38_04

Expected result of the copy action:

https://abcdefghij.execute-api.eu-central-1.amazonaws.com

Actual result:

https://abcdefghij.execute-api.eu-
                                                      central-1.amazonaws.com

or this, if the paste destination doesn't support new lines:

https://abcdefghij.execute-api.eu-                                                      central-1.amazonaws.com

It's even more confusing if I try to copy something with the long key. For example, if I try to copy the Arn from the previous screenshot, I'll get the "Arn" string in the middle of my actual Arn.

Proposal

Not sure what's the best solution to this, but it would be much more useful if I can copy the output.

typux ufeedback

Most helpful comment

I would like to see this with a --output=json or similar flag to allow processing the output with jmespath or jq.

If appropriate I can file a separate issue for this, but to me they're related.

All 2 comments

Thanks for the feedback! this is definitely on our mind to fix.

I would like to see this with a --output=json or similar flag to allow processing the output with jmespath or jq.

If appropriate I can file a separate issue for this, but to me they're related.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

GerbenRampaart picture GerbenRampaart  路  3Comments

joekiller picture joekiller  路  4Comments

red8888 picture red8888  路  3Comments

rhlsthrm picture rhlsthrm  路  4Comments

chestongo picture chestongo  路  3Comments