Kubernetes: how to set VolumeMount user group and file permissions

The Pod Security Context supports setting an fsGroup, which allows you to set the group ID that owns the volume, and thus who can write to it. The example in the docs: apiVersion: v1 kind: Pod metadata: name: hello-world spec: containers: # specification of the pod’s containers # … securityContext: fsGroup: 1234 More info on … Read more

AWS lambda invoke not calling another lambda function – Node.js

Note I will denote by executor the lambda that executes the second lambda. Why Timeout? Since the executor is “locked” behind a VPC – all internet communications are blocked. That results in any http(s) calls to be timed out as they request packet never gets to the destination. That is why all actions done by … Read more

API Gateway – POST multipart/form-data

API Gateway does not currently support multipart form data. This is being considered for future development. In the meantime, you will need to modify your client to use multiple requests or a single one-part request. Update: API Gateway now supports binary payloads. Simply define multipart/form-data as a binary media type for your API and proxy … Read more

How do you pass custom environment variable on Amazon Elastic Beanstalk (AWS EBS)?

As a heads up to anyone who uses the .ebextensions/*.config way: nowadays you can add, edit and remove environment variables in the Elastic Beanstalk web interface. The variables are under Configuration → Software Configuration: Creating the vars in .ebextensions like in Onema’s answer still works. It can even be preferable, e.g. if you will deploy … Read more