Skip to content

exposes AWS credentials on REST Endpoint to be consumed by PostMan

Notifications You must be signed in to change notification settings

jitunayak/env-on-restapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Run in Postman

Instruction for docker

docker pull jitu715/env-on-restapi

Build your own

docker build . --tag / docker push /:latest

usage

eli --help (shows all the available command line arguments)

Start the Server

eli -server

Only Run A Cron Job from command line

eli --cron --interval 10 --cmd 'echo jitu'

get aws assume role credentials

curl --location 'http://localhost:8088/aws' \
--header 'Content-Type: application/json' \
'

sample response

{
    "accessKeyId":"HHDUUIEKKED",
    "secretKey":"Ng4W//WAttR33ugTroNSBQrbsdsdd7PR7QH7O",
    "sessionToken":"//sddd"
}

generic api to get any ENV variable value

curl --location 'http://localhost:8088/' \
--header 'Content-Type: application/json' \
--data '{
"homeBrewPrefix":"HOMEBREW_PREFIX"
}
'

Run a cron task example

curl --location 'http://localhost:8088/aws?reAuthenticate=true&interval=5&command=mkdir%newFolder'

About

exposes AWS credentials on REST Endpoint to be consumed by PostMan

Resources

Stars

Watchers

Forks

Packages

No packages published