Disable automatic backups in RDS and EFS

0

We are migrating our backups to AWS Backup and want to know if there is a way to 'prevent' or disable the ability to use the default backup process in RDS and EFS. Everything we have found suggests manually disabling within each single instance, but we want to look at a way to prevent them from being enabled when they are created by end users.

We use AWS Organizations to create backup policies centrally and do not want users to use the automatic backup defaults and have duplication of backups.

Does anyone know if this is possible by SCP, IAM or an AWS Config based solution?

1개 답변
0
수락된 답변

There's no direct feature provided by AWS to disable automated backups for RDS and EFS at the organization level. These settings are typically managed at the individual service level (RDS, EFS, etc.) during the creation of each instance. There also aren't service control policies (SCPs) that directly control these settings.

However, using AWS Config along with custom AWS Lambda functions, you could potentially create a system that automatically turns off automatic backups whenever a new RDS or EFS instance is created.

Here is a rough outline of how you might achieve this:

  • Set up AWS Config to track changes in your AWS environment.

  • Create AWS Config rules that trigger whenever a new RDS instance or EFS is created.

  • When such a rule is triggered, have AWS Config execute a custom AWS Lambda function.

  • This AWS Lambda function would then use the AWS SDK to modify the settings of the new RDS or EFS instance and turn off automatic backups.

Remember that this approach would require appropriate permissions for the Lambda function to be able to modify RDS and EFS instances.

Additionally, you could use IAM to limit the permissions of end users such that they cannot enable automated backups on these services. However, this would also restrict their ability to manage other aspects of these services and may not be suitable depending on your organization's needs.

Keep in mind that this information is based on the AWS features available as of September 2021, and AWS frequently releases new features and capabilities. Please check the latest AWS documentation or consult with AWS Support for the most current solutions.

profile picture
답변함 9달 전
profile picture
전문가
검토됨 9달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠