Jack
Jack
RRunPod
Created by Jack on 10/18/2024 in #⚡|serverless
What environment variables are available in a serverless worker?
To be clear, this is distinct from the custom environment variables that are set on the template. We want to get the Worker ID from a given serverless worker. This is primarily to improve our logging capability, but it would also be useful to know of any other relevant environment variables exposed in a worker. Note I will be away for the next week so I might take a while to respond.
6 replies
RRunPod
Created by Jack on 9/24/2024 in #⚡|serverless
AWS ECR Registry Authentication
Is it possible to use a private AWS ECR as a container registry as opposed to Docker Hub? Although RunPod allows username and password credentials to be configured (which would work with Docker Hub) there does not appear to be a feature to use AWS IAM credentials. The AWS CLI allows an IAM principal to obtain a password using aws ecr get-login-password however this is only valid for 12 hours so would need to be cycled regularly but there does not appear to be a programatic way of doing this in RunPod. This question was put to the ai-helper but it was unable to provide a resolution on this (https://discord.com/channels/912829806415085598/1118945694863065230/1288092289977290762). I know this question isn't Serverless specific but I couldn't find a better place to put this question and we're using RunPod Serverless. I also think it might apply to Serverless more so than Pods due to the potential nature of having to pull images more frequently (potentially every cold start?).
10 replies