Skip to content

rwirdemann/configserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Config Server

Some endpoints to maintain simple key / value config items.

Deployment

make deploy

Endpoints

GET /config

Returns config value for the given key as string in the response body.

curl https://jkyszaoly5.execute-api.eu-central-1.amazonaws.com/dev/config/{key}

Jobdog example

curl https://xo94oqzj8e.execute-api.eu-central-1.amazonaws.com/dev/config/jobdog.publishservice.url

POST /config

Creates or updates an existing config key value.

curl -X POST https://xo94oqzj8e.execute-api.eu-central-1.amazonaws.com/dev/config \
   -H 'Content-Type: application/json' \
   -d '{
      "key": "jobdog.publishservice.url",
      "value": "https://77srys74sh.execute-api.eu-central-1.amazonaws.com/dev/jobs"
   }'

AWS CLI Hints

aws lambda list-functions
aws lambda get-function-configuration --function-name config-dev-putconfig
saw watch /aws/lambda/config-dev-putconfig
aws dynamodb scan --table-name ConfigItems

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published