Automatically replace AWS EC2 instances in AutoScaling groups with cheapest compatible spot instances https://autospotting.org
hi team i tried to run your code and this is the error i am getting, any idea on how to fix it?
[TSS\nramukannan@a-m9zs8coj0bb5 AutoSpotting]$ docker-compose run autospotting
Building autospotting
Step 1/6 : FROM golang:alpine
---> dd6fd110e957
Step 2/6 : ARG flavor
---> Using cache
---> 710224afc66b
Step 3/6 : RUN apk add -U --no-cache ca-certificates git make
---> Running in 143d331cf9df
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.15/main: temporary error (try again later)
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.15/community: temporary error (try again later)
ERROR: unable to select packages:
git (no such package):
required by: world[git]
make (no such package):
required by: world[make]
ERROR: Service 'autospotting' failed to build: The command '/bin/sh -c apk add -U --no-cache ca-certificates git make' returned a non-zero code: 2
also in docker-compose.yaml how should i add below values?
environment:
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_SESSION_TOKEN
just replace the AWS_ACCESS_KEY_ID with my actual key ? actually in IAM i have only 2 values ACCESS_KEY _ID and SECRET_ACCESS_KEY, there is not session token so what should I use?