Ruby unable to execute shell command from rails console -


i have following command in 1 of scripts:

`aws elb describe-instance-health --region eu-west-1 --load-balancer-name foobar --instances i-05swhkqp'` 

when executes or execute rails console, following error , script breaks:

a client error (invalidclienttokenid) occurred when calling describeinstancehealth operation: security token included in request invalid. => "" 

but when execute bash, response expect:

{     "instancestates": [         {             "instanceid": "i-05swhkqp",             "reasoncode": "n/a",             "state": "inservice",             "description": "n/a"         }     ] } 

is there way include in ruby script or on rails console, command can executed?


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -