Skip to content

fdiskbrain/sts-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aliyun sts server

Purpose

  • Redurce the requests to aliyun sts service.
  • More efficient realization of the same function as aliyun sts server sample code

How to use

  1. Prepare Environment variable
    cat <<EOF>test.env
    ACCESS_KEY_ID=LTAXXXXXXXXXXXXXXXXXXX
    ACCESS_KEY_SECRET=XXXXXXXXXX
    ROLE_ARN=acs:ram::100000000000000000000:role/test
    REGION=cn-hangzhou
    DURATIONSECONDS=1000
    EOF
  2. Build docker images
    docker build -t sts-server .
  3. Run local
    docker run --env-file=./test.env -d -p 80:80 ghcr.io/fdiskbrain/sts-server
  4. Check the result
    curl -v localhost

Todo

  1. Realize health check
  2. kubernets deployment

About

Building fast aliyun sts server without too many codes

Resources

License

Stars

Watchers

Forks

Packages