# Creation mongodb backups using Kubernetes Service Account for access to S3 bucket

**URL:** <https://forums.percona.com/t/creation-mongodb-backups-using-kubernetes-service-account-for-access-to-s3-bucket/19903>\
**Category:** Percona Backup for MongoDB\
**Tags:** closed-no-reply\
**Created:** [February 3, 2023, 11:03am UTC](https://forums.percona.com/t/creation-mongodb-backups-using-kubernetes-service-account-for-access-to-s3-bucket/19903 "2023-02-03T11:03:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndreX](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@AndreX](https://forums.percona.com/u/AndreX)\
**Post date:** [February 3, 2023, 11:03am UTC](https://forums.percona.com/t/creation-mongodb-backups-using-kubernetes-service-account-for-access-to-s3-bucket/19903/1 "2023-02-03T11:03:49Z")

</div>

Hello All. I would to like to configure mongodb backups to create them on aws s3 bucket. I have created a special serviceaccount, role in iam and granted permission for access to the s3 bucket where I plan to store the backups([Configuring a Kubernetes service account to assume an IAM role - Amazon EKS](https://docs.aws.amazon.com/eks/latest/userguide/associate-service-account-role.html)). I configured backups in PerconaServerMongoDB and pointed the serviceaccount and arn of iam role. But backup-agent was able to connect to s3. It was getting 403 error.  
Is it possible to configure access to s3 by ServiceAccount?
