Closed madhuravius closed 2 years ago
This pull request has been linked to Shortcut Story #4187: CLI - Add command to retrieve logs.
@joshraker - works on my local for some reason 🤔, possible dep issue or something else
Can you help me understand how to test this? I have deploy-api and sweetness changes deployed:
I have an operation uploaded to s3, but i get an error using this command:
[aptible-cli]$ test-alex aptible operation:logs 1307
Requesting operation logs for succeeded deploy #1307 on deploy-api...
Printing out results of operation logs for 1307
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>8ZZQMBB58RVR23FK</RequestId><HostId>5k6/UApXWtjuyQ8dXOLMCIWI0BEdnKZnigkCvgLKt0cMGy3rOkvvmjmaqct5N0UGURaGBRpcWjQ=</HostId></Error>
[aptible-cli]$ echo $?
0
I think this is just incomplete setup (missing permission?) on my part, since I created that bucket myself?
Also, i think this command should return an error when we get an error response, but it does not.
I think this is just incomplete setup (missing permission?) on my part, since I created that bucket myself?
This requires a deploy-api set of changes you may or may not have had set up (and there's permissions changes too). I'm moving this to draft mode as there's 1-2 other changes that have to go into this that Josh is currently working on.
Regarding Also, i think this command should return an error when we get an error response, but it does not.
What kind of errors would you expect to see? Following up directly on slack
Edit - this was namely around the s3 file return
This command can be tested locally with:
aptible operation:logs OPERATION_ID
This appears like this:
This is dependent on this shared gem PR being merged: https://github.com/aptible/aptible-api-ruby/pull/142
This will do the following: