eeshugerman / postgres-backup-s3

A handy Docker container to periodically backup PostgreSQL to S3
MIT License
485 stars 167 forks source link

Using AWS instance profile #21

Closed fred4jupiter closed 2 years ago

fred4jupiter commented 2 years ago

[Feature Request]

Hi eeshugerman,

thanks for this great tool! :-)

It would be great to use an AWS EC2 instance profile where you set the permissions in the IAM role for the instance. This way you don´t need to set the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY. The AWS CLI will look for the instance profile when these parameters are not set automatically.

Could you make S3_ACCESS_KEY_ID and S3_SECRET_ACCESS_KEY optional for that?

Best regards, Michael

eeshugerman commented 2 years ago

Done :)