使用 CloudFormation 创建 RDS 免费套餐实例?

Create RDS free tier instance using CloudFormation?

在此处查看文档 https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html

我没有看到指定我想在免费套餐中创建 RDS 实例的方法。有办法吗?

没有标志或选项可以“在免费套餐内”创建任何 AWS 资源。免费层只是您可以免费使用的资源列表。您将创建符合免费层限制的资源,它们将在您的月度账单上显示为免费。

A​​WS Free Tier for RDS 目前声明:

  • 750 hours of Amazon RDS Single-AZ db.t2.micro Instance usage running MySQL, MariaDB, PostgreSQL, Oracle BYOL or SQL Server (running SQL Server Express Edition) – enough hours to run a DB Instance continuously each month
  • 20 GB of General Purpose (SSD) DB Storage*
  • 20 GB of backup storage for your automated database backups and any user-initiated DB Snapshots*

因此您需要确保创建了一个 db.t2.micro 实例,确保您没有配置超过 20GB 的通用存储,并确保您没有启用任何其他功能,例如配置IO 或性能洞察,以确保您不被收费。