I’m running Mail-in-a-Box on a Linux EC2 instance and want to back up to S3. How do I use dynamic credentials (the attached instance profile) to authenticate instead of statically configured credentials?
I’m guessing you’d have to modify MiaB frontend to accept empty values in the access key/secret key fields when setting up backups… and then modify the backup script to not set those env vars (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY) if they are not set. From looking at the duplicity code, it should “Just Work™” without those env vars set so long as the instance role has access to the bucket.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.