-
Notifications
You must be signed in to change notification settings - Fork 173
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
Document capture of Outputs
and sls info
results
#26
Comments
Solid tip I made a plugin that outputs Outputs into a "manifest file" https://www.npmjs.com/package/serverless-manifest-plugin This might help avoid some hardcore greps. I'd love if |
@DavidWells thanks, and nice plugin. I think we've identified the same need. The first time I saw you could set output params. this way in sls I thought it was great. When I found the only way to access them was re-running sls, requiring re-authorization and again setting the stage and the verbose flag, then having to dig for the result, I was not pleased. |
Thank you @matthewpoer Just want to add that I'm using |
Thank you so much for this plugin!!!
|
This took a while to figure out so I'd like to share and advise that it'd be nice to see in the README or elsewhere in the documentation.
My use case was that I needed to capture some of my
resources.Outputs
from a serverless deployment for use with later scripting. For example, here's an excerpt from myserverless.yml
file:With that in place I can run
sls info --verbose
and capture in that output is the desiredPublicDnsName
but I have to grep and adjust for that, e.g.All that said, I found it difficult to perform that scrub-and-grab sequence in a Github Action using this container, but finally landed on overwriting the
entrypoint
and prefixing my command with a-c
, which is appended as an argument to the bash invocation. It's a bit confusing to me still, but it's functional:The text was updated successfully, but these errors were encountered: