Instance
Provides an RDS instance resource. A DB instance is an isolated database environment in the cloud. A DB instance can contain multiple user-created databases.
Changes to a DB instance can occur when you manually change a parameter, such as
allocated_storage, and are reflected in the next maintenance window. Because
of this, this provider may report a difference in its planning phase because a
modification has not yet taken place. You can use the apply_immediately flag
to instruct the service to apply the change immediately (see documentation
below).
When upgrading the major version of an engine, allow_major_version_upgrade
must be set to true.
Note: using
apply_immediatelycan result in a brief downtime as the server reboots. See the AWS Docs on [RDS Maintenance][2] for more information.Note: All arguments including the username and password will be stored in the raw state as plain-text.
RDS Instance Class Types
Amazon RDS supports three types of instance classes: Standard, Memory Optimized, and Burstable Performance. For more information please read the AWS RDS documentation about DB Instance Class Types
Example Usage
Basic Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var @default = new Aws.Rds.Instance("default", new Aws.Rds.InstanceArgs
{
AllocatedStorage = 20,
Engine = "mysql",
EngineVersion = "5.7",
InstanceClass = "db.t2.micro",
Name = "mydb",
ParameterGroupName = "default.mysql5.7",
Password = "foobarbaz",
StorageType = "gp2",
Username = "foo",
});
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/rds"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := rds.NewInstance(ctx, "_default", &rds.InstanceArgs{
AllocatedStorage: pulumi.Int(20),
Engine: pulumi.String("mysql"),
EngineVersion: pulumi.String("5.7"),
InstanceClass: pulumi.String("db.t2.micro"),
Name: pulumi.String("mydb"),
ParameterGroupName: pulumi.String("default.mysql5.7"),
Password: pulumi.String("foobarbaz"),
StorageType: pulumi.String("gp2"),
Username: pulumi.String("foo"),
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
default = aws.rds.Instance("default",
allocated_storage=20,
engine="mysql",
engine_version="5.7",
instance_class="db.t2.micro",
name="mydb",
parameter_group_name="default.mysql5.7",
password="foobarbaz",
storage_type="gp2",
username="foo")import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const defaultInstance = new aws.rds.Instance("default", {
allocatedStorage: 20,
engine: "mysql",
engineVersion: "5.7",
instanceClass: "db.t2.micro",
name: "mydb",
parameterGroupName: "default.mysql5.7",
password: "foobarbaz",
storageType: "gp2",
username: "foo",
});Storage Autoscaling
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.Rds.Instance("example", new Aws.Rds.InstanceArgs
{
AllocatedStorage = 50,
MaxAllocatedStorage = 100,
});
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/rds"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := rds.NewInstance(ctx, "example", &rds.InstanceArgs{
AllocatedStorage: pulumi.Int(50),
MaxAllocatedStorage: pulumi.Int(100),
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
example = aws.rds.Instance("example",
allocated_storage=50,
max_allocated_storage=100)import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.rds.Instance("example", {
allocatedStorage: 50,
maxAllocatedStorage: 100,
});Create a Instance Resource
new Instance(name: string, args: InstanceArgs, opts?: CustomResourceOptions);def Instance(resource_name, opts=None, allocated_storage=None, allow_major_version_upgrade=None, apply_immediately=None, auto_minor_version_upgrade=None, availability_zone=None, backup_retention_period=None, backup_window=None, ca_cert_identifier=None, character_set_name=None, copy_tags_to_snapshot=None, db_subnet_group_name=None, delete_automated_backups=None, deletion_protection=None, domain=None, domain_iam_role_name=None, enabled_cloudwatch_logs_exports=None, engine=None, engine_version=None, final_snapshot_identifier=None, iam_database_authentication_enabled=None, identifier=None, identifier_prefix=None, instance_class=None, iops=None, kms_key_id=None, license_model=None, maintenance_window=None, max_allocated_storage=None, monitoring_interval=None, monitoring_role_arn=None, multi_az=None, name=None, option_group_name=None, parameter_group_name=None, password=None, performance_insights_enabled=None, performance_insights_kms_key_id=None, performance_insights_retention_period=None, port=None, publicly_accessible=None, replicate_source_db=None, s3_import=None, security_group_names=None, skip_final_snapshot=None, snapshot_identifier=None, storage_encrypted=None, storage_type=None, tags=None, timezone=None, username=None, vpc_security_group_ids=None, __props__=None);func NewInstance(ctx *Context, name string, args InstanceArgs, opts ...ResourceOption) (*Instance, error)public Instance(string name, InstanceArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Instance Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Instance resource accepts the following input properties:
- Instance
Class string The instance type of the RDS instance.
- Allocated
Storage int The allocated storage in gibibytes. If
max_allocated_storageis configured, this argument represents the initial storage allocation and differences from the configuration will be ignored automatically when Storage Autoscaling occurs.- Allow
Major boolVersion Upgrade Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible.
- Apply
Immediately bool Specifies whether any database modifications are applied immediately, or during the next maintenance window. Default is
false. See Amazon RDS Documentation for more information.- Auto
Minor boolVersion Upgrade Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window. Defaults to true.
- Availability
Zone string The AZ for the RDS instance.
- Backup
Retention intPeriod The days to retain backups for. Must be between
0and35. Must be greater than0if the database is used as a source for a Read Replica. [See Read Replica][1].- Backup
Window string The daily time range (in UTC) during which automated backups are created if they are enabled. Example: “09:46-10:16”. Must not overlap with
maintenance_window.- Ca
Cert stringIdentifier The identifier of the CA certificate for the DB instance.
- Character
Set stringName The character set name to use for DB encoding in Oracle and Microsoft SQL instances (collation). This can’t be changed. See Oracle Character Sets Supported in Amazon RDS or Server-Level Collation for Microsoft SQL Server for more information.
- bool
Copy all Instance
tagsto snapshots. Default isfalse.- Db
Subnet stringGroup Name Name of
DB subnet group. DB instance will be created in the VPC associated with the DB subnet group. If unspecified, will be created in thedefaultVPC, or in EC2 Classic, if available. When working with read replicas, it should be specified only if the source database specifies an instance in another AWS Region. See DBSubnetGroupName in API action CreateDBInstanceReadReplica for additional read replica contraints.- Delete
Automated boolBackups Specifies whether to remove automated backups immediately after the DB instance is deleted. Default is
true.- Deletion
Protection bool If the DB instance should have deletion protection enabled. The database can’t be deleted when this value is set to
true. The default isfalse.- Domain string
The ID of the Directory Service Active Directory domain to create the instance in.
- Domain
Iam stringRole Name The name of the IAM role to be used when making API calls to the Directory Service.
- Enabled
Cloudwatch List<string>Logs Exports List of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. Valid values (depending on
engine). MySQL and MariaDB:audit,error,general,slowquery. PostgreSQL:postgresql,upgrade. MSSQL:agent,error. Oracle:alert,audit,listener,trace.- Engine string
(Required unless a
snapshot_identifierorreplicate_source_dbis provided) The database engine to use. For supported values, see the Engine parameter in API action CreateDBInstance. Note that for Amazon Aurora instances the engine must match theDB cluster’s engine’. For information on the difference between the available Aurora MySQL engines see Comparison between Aurora MySQL 1 and Aurora MySQL 2 in the Amazon RDS User Guide.- Engine
Version string The engine version to use. If
auto_minor_version_upgradeis enabled, you can provide a prefix of the version such as5.7(for5.7.10) and this attribute will ignore differences in the patch version automatically (e.g.5.7.17). For supported values, see the EngineVersion parameter in API action CreateDBInstance. Note that for Amazon Aurora instances the engine version must match theDB cluster’s engine version’.- Final
Snapshot stringIdentifier The name of your final DB snapshot when this DB instance is deleted. Must be provided if
skip_final_snapshotis set tofalse.- Iam
Database boolAuthentication Enabled Specifies whether or mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled.
- Identifier string
The name of the RDS instance, if omitted, this provider will assign a random, unique identifier.
- Identifier
Prefix string Creates a unique identifier beginning with the specified prefix. Conflicts with
identifier.- Iops int
The amount of provisioned IOPS. Setting this implies a storage_type of “io1”.
- Kms
Key stringId The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN.
- License
Model string (Optional, but required for some DB engines, i.e. Oracle SE1) License model information for this DB instance.
- Maintenance
Window string The window to perform maintenance in. Syntax: “ddd:hh24:mi-ddd:hh24:mi”. Eg: “Mon:00:00-Mon:03:00”. See RDS Maintenance Window docs for more information.
- Max
Allocated intStorage When configured, the upper limit to which Amazon RDS can automatically scale the storage of the DB instance. Configuring this will automatically ignore differences to
allocated_storage. Must be greater than or equal toallocated_storageor0to disable Storage Autoscaling.- Monitoring
Interval int The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60.
- Monitoring
Role stringArn The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. You can find more information on the AWS Documentation what IAM permissions are needed to allow Enhanced Monitoring for RDS Instances.
- Multi
Az bool Specifies if the RDS instance is multi-AZ
- Name string
The name of the database to create when the DB instance is created. If this parameter is not specified, no database is created in the DB instance. Note that this does not apply for Oracle or SQL Server engines. See the AWS documentation for more details on what applies for those engines.
- Option
Group stringName Name of the DB option group to associate.
- Parameter
Group stringName Name of the DB parameter group to associate.
- Password string
(Required unless a
snapshot_identifierorreplicate_source_dbis provided) Password for the master DB user. Note that this may show up in logs, and it will be stored in the state file.- Performance
Insights boolEnabled Specifies whether Performance Insights are enabled. Defaults to false.
- Performance
Insights stringKms Key Id The ARN for the KMS key to encrypt Performance Insights data. When specifying
performance_insights_kms_key_id,performance_insights_enabledneeds to be set to true. Once KMS key is set, it can never be changed.- Performance
Insights intRetention Period The amount of time in days to retain Performance Insights data. Either 7 (7 days) or 731 (2 years). When specifying
performance_insights_retention_period,performance_insights_enabledneeds to be set to true. Defaults to ‘7’.- Port int
The port on which the DB accepts connections.
- Publicly
Accessible bool Bool to control if instance is publicly accessible. Default is
false.- Replicate
Source stringDb Specifies that this resource is a Replicate database, and to use this value as the source database. This correlates to the
identifierof another Amazon RDS Database to replicate (if replicating within a single region) or ARN of the Amazon RDS Database to replicate (if replicating cross-region). Note that if you are creating a cross-region replica of an encrypted database you will also need to specify akms_key_id. See [DB Instance Replication][1] and Working with PostgreSQL and MySQL Read Replicas for more information on using Replication.- S3Import
Instance
S3Import Args Restore from a Percona Xtrabackup in S3. See Importing Data into an Amazon RDS MySQL DB Instance
- Security
Group List<string>Names List of DB Security Groups to associate. Only used for DB Instances on the EC2-Classic Platform.
- Skip
Final boolSnapshot Determines whether a final DB snapshot is created before the DB instance is deleted. If true is specified, no DBSnapshot is created. If false is specified, a DB snapshot is created before the DB instance is deleted, using the value from
final_snapshot_identifier. Default isfalse.- Snapshot
Identifier string Specifies whether or not to create this database from a snapshot. This correlates to the snapshot ID you’d find in the RDS console, e.g: rds:production-2015-06-26-06-05.
- Storage
Encrypted bool Specifies whether the DB instance is encrypted. Note that if you are creating a cross-region read replica this field is ignored and you should instead declare
kms_key_idwith a valid ARN. The default isfalseif not specified.- Storage
Type string One of “standard” (magnetic), “gp2” (general purpose SSD), or “io1” (provisioned IOPS SSD). The default is “io1” if
iopsis specified, “gp2” if not.- Dictionary<string, string>
A map of tags to assign to the resource.
- Timezone string
Time zone of the DB instance.
timezoneis currently only supported by Microsoft SQL Server. Thetimezonecan only be set on creation. See MSSQL User Guide for more information.- Username string
(Required unless a
snapshot_identifierorreplicate_source_dbis provided) Username for the master DB user.- Vpc
Security List<string>Group Ids List of VPC security groups to associate.
- Instance
Class interface{} The instance type of the RDS instance.
- Allocated
Storage int The allocated storage in gibibytes. If
max_allocated_storageis configured, this argument represents the initial storage allocation and differences from the configuration will be ignored automatically when Storage Autoscaling occurs.- Allow
Major boolVersion Upgrade Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible.
- Apply
Immediately bool Specifies whether any database modifications are applied immediately, or during the next maintenance window. Default is
false. See Amazon RDS Documentation for more information.- Auto
Minor boolVersion Upgrade Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window. Defaults to true.
- Availability
Zone string The AZ for the RDS instance.
- Backup
Retention intPeriod The days to retain backups for. Must be between
0and35. Must be greater than0if the database is used as a source for a Read Replica. [See Read Replica][1].- Backup
Window string The daily time range (in UTC) during which automated backups are created if they are enabled. Example: “09:46-10:16”. Must not overlap with
maintenance_window.- Ca
Cert stringIdentifier The identifier of the CA certificate for the DB instance.
- Character
Set stringName The character set name to use for DB encoding in Oracle and Microsoft SQL instances (collation). This can’t be changed. See Oracle Character Sets Supported in Amazon RDS or Server-Level Collation for Microsoft SQL Server for more information.
- bool
Copy all Instance
tagsto snapshots. Default isfalse.- Db
Subnet stringGroup Name Name of
DB subnet group. DB instance will be created in the VPC associated with the DB subnet group. If unspecified, will be created in thedefaultVPC, or in EC2 Classic, if available. When working with read replicas, it should be specified only if the source database specifies an instance in another AWS Region. See DBSubnetGroupName in API action CreateDBInstanceReadReplica for additional read replica contraints.- Delete
Automated boolBackups Specifies whether to remove automated backups immediately after the DB instance is deleted. Default is
true.- Deletion
Protection bool If the DB instance should have deletion protection enabled. The database can’t be deleted when this value is set to
true. The default isfalse.- Domain string
The ID of the Directory Service Active Directory domain to create the instance in.
- Domain
Iam stringRole Name The name of the IAM role to be used when making API calls to the Directory Service.
- Enabled
Cloudwatch []stringLogs Exports List of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. Valid values (depending on
engine). MySQL and MariaDB:audit,error,general,slowquery. PostgreSQL:postgresql,upgrade. MSSQL:agent,error. Oracle:alert,audit,listener,trace.- Engine string
(Required unless a
snapshot_identifierorreplicate_source_dbis provided) The database engine to use. For supported values, see the Engine parameter in API action CreateDBInstance. Note that for Amazon Aurora instances the engine must match theDB cluster’s engine’. For information on the difference between the available Aurora MySQL engines see Comparison between Aurora MySQL 1 and Aurora MySQL 2 in the Amazon RDS User Guide.- Engine
Version string The engine version to use. If
auto_minor_version_upgradeis enabled, you can provide a prefix of the version such as5.7(for5.7.10) and this attribute will ignore differences in the patch version automatically (e.g.5.7.17). For supported values, see the EngineVersion parameter in API action CreateDBInstance. Note that for Amazon Aurora instances the engine version must match theDB cluster’s engine version’.- Final
Snapshot stringIdentifier The name of your final DB snapshot when this DB instance is deleted. Must be provided if
skip_final_snapshotis set tofalse.- Iam
Database boolAuthentication Enabled Specifies whether or mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled.
- Identifier string
The name of the RDS instance, if omitted, this provider will assign a random, unique identifier.
- Identifier
Prefix string Creates a unique identifier beginning with the specified prefix. Conflicts with
identifier.- Iops int
The amount of provisioned IOPS. Setting this implies a storage_type of “io1”.
- Kms
Key stringId The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN.
- License
Model string (Optional, but required for some DB engines, i.e. Oracle SE1) License model information for this DB instance.
- Maintenance
Window string The window to perform maintenance in. Syntax: “ddd:hh24:mi-ddd:hh24:mi”. Eg: “Mon:00:00-Mon:03:00”. See RDS Maintenance Window docs for more information.
- Max
Allocated intStorage When configured, the upper limit to which Amazon RDS can automatically scale the storage of the DB instance. Configuring this will automatically ignore differences to
allocated_storage. Must be greater than or equal toallocated_storageor0to disable Storage Autoscaling.- Monitoring
Interval int The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60.
- Monitoring
Role stringArn The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. You can find more information on the AWS Documentation what IAM permissions are needed to allow Enhanced Monitoring for RDS Instances.
- Multi
Az bool Specifies if the RDS instance is multi-AZ
- Name string
The name of the database to create when the DB instance is created. If this parameter is not specified, no database is created in the DB instance. Note that this does not apply for Oracle or SQL Server engines. See the AWS documentation for more details on what applies for those engines.
- Option
Group stringName Name of the DB option group to associate.
- Parameter
Group stringName Name of the DB parameter group to associate.
- Password string
(Required unless a
snapshot_identifierorreplicate_source_dbis provided) Password for the master DB user. Note that this may show up in logs, and it will be stored in the state file.- Performance
Insights boolEnabled Specifies whether Performance Insights are enabled. Defaults to false.
- Performance
Insights stringKms Key Id The ARN for the KMS key to encrypt Performance Insights data. When specifying
performance_insights_kms_key_id,performance_insights_enabledneeds to be set to true. Once KMS key is set, it can never be changed.- Performance
Insights intRetention Period The amount of time in days to retain Performance Insights data. Either 7 (7 days) or 731 (2 years). When specifying
performance_insights_retention_period,performance_insights_enabledneeds to be set to true. Defaults to ‘7’.- Port int
The port on which the DB accepts connections.
- Publicly
Accessible bool Bool to control if instance is publicly accessible. Default is
false.- Replicate
Source stringDb Specifies that this resource is a Replicate database, and to use this value as the source database. This correlates to the
identifierof another Amazon RDS Database to replicate (if replicating within a single region) or ARN of the Amazon RDS Database to replicate (if replicating cross-region). Note that if you are creating a cross-region replica of an encrypted database you will also need to specify akms_key_id. See [DB Instance Replication][1] and Working with PostgreSQL and MySQL Read Replicas for more information on using Replication.- S3Import
Instance
S3Import Restore from a Percona Xtrabackup in S3. See Importing Data into an Amazon RDS MySQL DB Instance
- Security
Group []stringNames List of DB Security Groups to associate. Only used for DB Instances on the EC2-Classic Platform.
- Skip
Final boolSnapshot Determines whether a final DB snapshot is created before the DB instance is deleted. If true is specified, no DBSnapshot is created. If false is specified, a DB snapshot is created before the DB instance is deleted, using the value from
final_snapshot_identifier. Default isfalse.- Snapshot
Identifier string Specifies whether or not to create this database from a snapshot. This correlates to the snapshot ID you’d find in the RDS console, e.g: rds:production-2015-06-26-06-05.
- Storage
Encrypted bool Specifies whether the DB instance is encrypted. Note that if you are creating a cross-region read replica this field is ignored and you should instead declare
kms_key_idwith a valid ARN. The default isfalseif not specified.- Storage
Type interface{} One of “standard” (magnetic), “gp2” (general purpose SSD), or “io1” (provisioned IOPS SSD). The default is “io1” if
iopsis specified, “gp2” if not.- map[string]string
A map of tags to assign to the resource.
- Timezone string
Time zone of the DB instance.
timezoneis currently only supported by Microsoft SQL Server. Thetimezonecan only be set on creation. See MSSQL User Guide for more information.- Username string
(Required unless a
snapshot_identifierorreplicate_source_dbis provided) Username for the master DB user.- Vpc
Security []stringGroup Ids List of VPC security groups to associate.
- instance
Class string | InstanceType The instance type of the RDS instance.
- allocated
Storage number The allocated storage in gibibytes. If
max_allocated_storageis configured, this argument represents the initial storage allocation and differences from the configuration will be ignored automatically when Storage Autoscaling occurs.- allow
Major booleanVersion Upgrade Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible.
- apply
Immediately boolean Specifies whether any database modifications are applied immediately, or during the next maintenance window. Default is
false. See Amazon RDS Documentation for more information.- auto
Minor booleanVersion Upgrade Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window. Defaults to true.
- availability
Zone string The AZ for the RDS instance.
- backup
Retention numberPeriod The days to retain backups for. Must be between
0and35. Must be greater than0if the database is used as a source for a Read Replica. [See Read Replica][1].- backup
Window string The daily time range (in UTC) during which automated backups are created if they are enabled. Example: “09:46-10:16”. Must not overlap with
maintenance_window.- ca
Cert stringIdentifier The identifier of the CA certificate for the DB instance.
- character
Set stringName The character set name to use for DB encoding in Oracle and Microsoft SQL instances (collation). This can’t be changed. See Oracle Character Sets Supported in Amazon RDS or Server-Level Collation for Microsoft SQL Server for more information.
- boolean
Copy all Instance
tagsto snapshots. Default isfalse.- db
Subnet stringGroup Name Name of
DB subnet group. DB instance will be created in the VPC associated with the DB subnet group. If unspecified, will be created in thedefaultVPC, or in EC2 Classic, if available. When working with read replicas, it should be specified only if the source database specifies an instance in another AWS Region. See DBSubnetGroupName in API action CreateDBInstanceReadReplica for additional read replica contraints.- delete
Automated booleanBackups Specifies whether to remove automated backups immediately after the DB instance is deleted. Default is
true.- deletion
Protection boolean If the DB instance should have deletion protection enabled. The database can’t be deleted when this value is set to
true. The default isfalse.- domain string
The ID of the Directory Service Active Directory domain to create the instance in.
- domain
Iam stringRole Name The name of the IAM role to be used when making API calls to the Directory Service.
- enabled
Cloudwatch string[]Logs Exports List of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. Valid values (depending on
engine). MySQL and MariaDB:audit,error,general,slowquery. PostgreSQL:postgresql,upgrade. MSSQL:agent,error. Oracle:alert,audit,listener,trace.- engine string
(Required unless a
snapshot_identifierorreplicate_source_dbis provided) The database engine to use. For supported values, see the Engine parameter in API action CreateDBInstance. Note that for Amazon Aurora instances the engine must match theDB cluster’s engine’. For information on the difference between the available Aurora MySQL engines see Comparison between Aurora MySQL 1 and Aurora MySQL 2 in the Amazon RDS User Guide.- engine
Version string The engine version to use. If
auto_minor_version_upgradeis enabled, you can provide a prefix of the version such as5.7(for5.7.10) and this attribute will ignore differences in the patch version automatically (e.g.5.7.17). For supported values, see the EngineVersion parameter in API action CreateDBInstance. Note that for Amazon Aurora instances the engine version must match theDB cluster’s engine version’.- final
Snapshot stringIdentifier The name of your final DB snapshot when this DB instance is deleted. Must be provided if
skip_final_snapshotis set tofalse.- iam
Database booleanAuthentication Enabled Specifies whether or mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled.
- identifier string
The name of the RDS instance, if omitted, this provider will assign a random, unique identifier.
- identifier
Prefix string Creates a unique identifier beginning with the specified prefix. Conflicts with
identifier.- iops number
The amount of provisioned IOPS. Setting this implies a storage_type of “io1”.
- kms
Key stringId The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN.
- license
Model string (Optional, but required for some DB engines, i.e. Oracle SE1) License model information for this DB instance.
- maintenance
Window string The window to perform maintenance in. Syntax: “ddd:hh24:mi-ddd:hh24:mi”. Eg: “Mon:00:00-Mon:03:00”. See RDS Maintenance Window docs for more information.
- max
Allocated numberStorage When configured, the upper limit to which Amazon RDS can automatically scale the storage of the DB instance. Configuring this will automatically ignore differences to
allocated_storage. Must be greater than or equal toallocated_storageor0to disable Storage Autoscaling.- monitoring
Interval number The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60.
- monitoring
Role stringArn The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. You can find more information on the AWS Documentation what IAM permissions are needed to allow Enhanced Monitoring for RDS Instances.
- multi
Az boolean Specifies if the RDS instance is multi-AZ
- name string
The name of the database to create when the DB instance is created. If this parameter is not specified, no database is created in the DB instance. Note that this does not apply for Oracle or SQL Server engines. See the AWS documentation for more details on what applies for those engines.
- option
Group stringName Name of the DB option group to associate.
- parameter
Group stringName Name of the DB parameter group to associate.
- password string
(Required unless a
snapshot_identifierorreplicate_source_dbis provided) Password for the master DB user. Note that this may show up in logs, and it will be stored in the state file.- performance
Insights booleanEnabled Specifies whether Performance Insights are enabled. Defaults to false.
- performance
Insights stringKms Key Id The ARN for the KMS key to encrypt Performance Insights data. When specifying
performance_insights_kms_key_id,performance_insights_enabledneeds to be set to true. Once KMS key is set, it can never be changed.- performance
Insights numberRetention Period The amount of time in days to retain Performance Insights data. Either 7 (7 days) or 731 (2 years). When specifying
performance_insights_retention_period,performance_insights_enabledneeds to be set to true. Defaults to ‘7’.- port number
The port on which the DB accepts connections.
- publicly
Accessible boolean Bool to control if instance is publicly accessible. Default is
false.- replicate
Source stringDb Specifies that this resource is a Replicate database, and to use this value as the source database. This correlates to the
identifierof another Amazon RDS Database to replicate (if replicating within a single region) or ARN of the Amazon RDS Database to replicate (if replicating cross-region). Note that if you are creating a cross-region replica of an encrypted database you will also need to specify akms_key_id. See [DB Instance Replication][1] and Working with PostgreSQL and MySQL Read Replicas for more information on using Replication.- s3Import
Instance
S3Import Restore from a Percona Xtrabackup in S3. See Importing Data into an Amazon RDS MySQL DB Instance
- security
Group string[]Names List of DB Security Groups to associate. Only used for DB Instances on the EC2-Classic Platform.
- skip
Final booleanSnapshot Determines whether a final DB snapshot is created before the DB instance is deleted. If true is specified, no DBSnapshot is created. If false is specified, a DB snapshot is created before the DB instance is deleted, using the value from
final_snapshot_identifier. Default isfalse.- snapshot
Identifier string Specifies whether or not to create this database from a snapshot. This correlates to the snapshot ID you’d find in the RDS console, e.g: rds:production-2015-06-26-06-05.
- storage
Encrypted boolean Specifies whether the DB instance is encrypted. Note that if you are creating a cross-region read replica this field is ignored and you should instead declare
kms_key_idwith a valid ARN. The default isfalseif not specified.- storage
Type string | StorageType One of “standard” (magnetic), “gp2” (general purpose SSD), or “io1” (provisioned IOPS SSD). The default is “io1” if
iopsis specified, “gp2” if not.- {[key: string]: string}
A map of tags to assign to the resource.
- timezone string
Time zone of the DB instance.
timezoneis currently only supported by Microsoft SQL Server. Thetimezonecan only be set on creation. See MSSQL User Guide for more information.- username string
(Required unless a
snapshot_identifierorreplicate_source_dbis provided) Username for the master DB user.- vpc
Security string[]Group Ids List of VPC security groups to associate.
- instance_
class string | str The instance type of the RDS instance.
- allocated_
storage float The allocated storage in gibibytes. If
max_allocated_storageis configured, this argument represents the initial storage allocation and differences from the configuration will be ignored automatically when Storage Autoscaling occurs.- allow_
major_ boolversion_ upgrade Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible.
- apply_
immediately bool Specifies whether any database modifications are applied immediately, or during the next maintenance window. Default is
false. See Amazon RDS Documentation for more information.- auto_
minor_ boolversion_ upgrade Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window. Defaults to true.
- availability_
zone str The AZ for the RDS instance.
- backup_
retention_ floatperiod The days to retain backups for. Must be between
0and35. Must be greater than0if the database is used as a source for a Read Replica. [See Read Replica][1].- backup_
window str The daily time range (in UTC) during which automated backups are created if they are enabled. Example: “09:46-10:16”. Must not overlap with
maintenance_window.- ca_
cert_ stridentifier The identifier of the CA certificate for the DB instance.
- character_
set_ strname The character set name to use for DB encoding in Oracle and Microsoft SQL instances (collation). This can’t be changed. See Oracle Character Sets Supported in Amazon RDS or Server-Level Collation for Microsoft SQL Server for more information.
- bool
Copy all Instance
tagsto snapshots. Default isfalse.- db_
subnet_ strgroup_ name Name of
DB subnet group. DB instance will be created in the VPC associated with the DB subnet group. If unspecified, will be created in thedefaultVPC, or in EC2 Classic, if available. When working with read replicas, it should be specified only if the source database specifies an instance in another AWS Region. See DBSubnetGroupName in API action CreateDBInstanceReadReplica for additional read replica contraints.- delete_
automated_ boolbackups Specifies whether to remove automated backups immediately after the DB instance is deleted. Default is
true.- deletion_
protection bool If the DB instance should have deletion protection enabled. The database can’t be deleted when this value is set to
true. The default isfalse.- domain str
The ID of the Directory Service Active Directory domain to create the instance in.
- domain_
iam_ strrole_ name The name of the IAM role to be used when making API calls to the Directory Service.
- enabled_
cloudwatch_ List[str]logs_ exports List of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. Valid values (depending on
engine). MySQL and MariaDB:audit,error,general,slowquery. PostgreSQL:postgresql,upgrade. MSSQL:agent,error. Oracle:alert,audit,listener,trace.- engine str
(Required unless a
snapshot_identifierorreplicate_source_dbis provided) The database engine to use. For supported values, see the Engine parameter in API action CreateDBInstance. Note that for Amazon Aurora instances the engine must match theDB cluster’s engine’. For information on the difference between the available Aurora MySQL engines see Comparison between Aurora MySQL 1 and Aurora MySQL 2 in the Amazon RDS User Guide.- engine_
version str The engine version to use. If
auto_minor_version_upgradeis enabled, you can provide a prefix of the version such as5.7(for5.7.10) and this attribute will ignore differences in the patch version automatically (e.g.5.7.17). For supported values, see the EngineVersion parameter in API action CreateDBInstance. Note that for Amazon Aurora instances the engine version must match theDB cluster’s engine version’.- final_
snapshot_ stridentifier The name of your final DB snapshot when this DB instance is deleted. Must be provided if
skip_final_snapshotis set tofalse.- iam_
database_ boolauthentication_ enabled Specifies whether or mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled.
- identifier str
The name of the RDS instance, if omitted, this provider will assign a random, unique identifier.
- identifier_
prefix str Creates a unique identifier beginning with the specified prefix. Conflicts with
identifier.- iops float
The amount of provisioned IOPS. Setting this implies a storage_type of “io1”.
- kms_
key_ strid The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN.
- license_
model str (Optional, but required for some DB engines, i.e. Oracle SE1) License model information for this DB instance.
- maintenance_
window str The window to perform maintenance in. Syntax: “ddd:hh24:mi-ddd:hh24:mi”. Eg: “Mon:00:00-Mon:03:00”. See RDS Maintenance Window docs for more information.
- max_
allocated_ floatstorage When configured, the upper limit to which Amazon RDS can automatically scale the storage of the DB instance. Configuring this will automatically ignore differences to
allocated_storage. Must be greater than or equal toallocated_storageor0to disable Storage Autoscaling.- monitoring_
interval float The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60.
- monitoring_
role_ strarn The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. You can find more information on the AWS Documentation what IAM permissions are needed to allow Enhanced Monitoring for RDS Instances.
- multi_
az bool Specifies if the RDS instance is multi-AZ
- name str
The name of the database to create when the DB instance is created. If this parameter is not specified, no database is created in the DB instance. Note that this does not apply for Oracle or SQL Server engines. See the AWS documentation for more details on what applies for those engines.
- option_
group_ strname Name of the DB option group to associate.
- parameter_
group_ strname Name of the DB parameter group to associate.
- password str
(Required unless a
snapshot_identifierorreplicate_source_dbis provided) Password for the master DB user. Note that this may show up in logs, and it will be stored in the state file.- performance_
insights_ boolenabled Specifies whether Performance Insights are enabled. Defaults to false.
- performance_
insights_ strkms_ key_ id The ARN for the KMS key to encrypt Performance Insights data. When specifying
performance_insights_kms_key_id,performance_insights_enabledneeds to be set to true. Once KMS key is set, it can never be changed.- performance_
insights_ floatretention_ period The amount of time in days to retain Performance Insights data. Either 7 (7 days) or 731 (2 years). When specifying
performance_insights_retention_period,performance_insights_enabledneeds to be set to true. Defaults to ‘7’.- port float
The port on which the DB accepts connections.
- publicly_
accessible bool Bool to control if instance is publicly accessible. Default is
false.- replicate_
source_ strdb Specifies that this resource is a Replicate database, and to use this value as the source database. This correlates to the
identifierof another Amazon RDS Database to replicate (if replicating within a single region) or ARN of the Amazon RDS Database to replicate (if replicating cross-region). Note that if you are creating a cross-region replica of an encrypted database you will also need to specify akms_key_id. See [DB Instance Replication][1] and Working with PostgreSQL and MySQL Read Replicas for more information on using Replication.- s3_
import Dict[InstanceS3Import] Restore from a Percona Xtrabackup in S3. See Importing Data into an Amazon RDS MySQL DB Instance
- security_
group_ List[str]names List of DB Security Groups to associate. Only used for DB Instances on the EC2-Classic Platform.
- skip_
final_ boolsnapshot Determines whether a final DB snapshot is created before the DB instance is deleted. If true is specified, no DBSnapshot is created. If false is specified, a DB snapshot is created before the DB instance is deleted, using the value from
final_snapshot_identifier. Default isfalse.- snapshot_
identifier str Specifies whether or not to create this database from a snapshot. This correlates to the snapshot ID you’d find in the RDS console, e.g: rds:production-2015-06-26-06-05.
- storage_
encrypted bool Specifies whether the DB instance is encrypted. Note that if you are creating a cross-region read replica this field is ignored and you should instead declare
kms_key_idwith a valid ARN. The default isfalseif not specified.- storage_
type string | str One of “standard” (magnetic), “gp2” (general purpose SSD), or “io1” (provisioned IOPS SSD). The default is “io1” if
iopsis specified, “gp2” if not.- Dict[str, str]
A map of tags to assign to the resource.
- timezone str
Time zone of the DB instance.
timezoneis currently only supported by Microsoft SQL Server. Thetimezonecan only be set on creation. See MSSQL User Guide for more information.- username str
(Required unless a
snapshot_identifierorreplicate_source_dbis provided) Username for the master DB user.- vpc_
security_ List[str]group_ ids List of VPC security groups to associate.
Outputs
All input properties are implicitly available as output properties. Additionally, the Instance resource produces the following output properties:
- Address string
The hostname of the RDS instance. See also
endpointandport.- Arn string
The ARN of the RDS instance.
- Endpoint string
The connection endpoint in
address:portformat.- Hosted
Zone stringId The canonical hosted zone ID of the DB instance (to be used in a Route 53 Alias record).
- Id string
- The provider-assigned unique ID for this managed resource.
- Replicas List<string>
- Resource
Id string The RDS Resource ID of this instance.
- Status string
The RDS instance status.
- Address string
The hostname of the RDS instance. See also
endpointandport.- Arn string
The ARN of the RDS instance.
- Endpoint string
The connection endpoint in
address:portformat.- Hosted
Zone stringId The canonical hosted zone ID of the DB instance (to be used in a Route 53 Alias record).
- Id string
- The provider-assigned unique ID for this managed resource.
- Replicas []string
- Resource
Id string The RDS Resource ID of this instance.
- Status string
The RDS instance status.
- address string
The hostname of the RDS instance. See also
endpointandport.- arn string
The ARN of the RDS instance.
- endpoint string
The connection endpoint in
address:portformat.- hosted
Zone stringId The canonical hosted zone ID of the DB instance (to be used in a Route 53 Alias record).
- id string
- The provider-assigned unique ID for this managed resource.
- replicas string[]
- resource
Id string The RDS Resource ID of this instance.
- status string
The RDS instance status.
- address str
The hostname of the RDS instance. See also
endpointandport.- arn str
The ARN of the RDS instance.
- endpoint str
The connection endpoint in
address:portformat.- hosted_
zone_ strid The canonical hosted zone ID of the DB instance (to be used in a Route 53 Alias record).
- id str
- The provider-assigned unique ID for this managed resource.
- replicas List[str]
- resource_
id str The RDS Resource ID of this instance.
- status str
The RDS instance status.
Look up an Existing Instance Resource
Get an existing Instance resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: InstanceState, opts?: CustomResourceOptions): Instancestatic get(resource_name, id, opts=None, address=None, allocated_storage=None, allow_major_version_upgrade=None, apply_immediately=None, arn=None, auto_minor_version_upgrade=None, availability_zone=None, backup_retention_period=None, backup_window=None, ca_cert_identifier=None, character_set_name=None, copy_tags_to_snapshot=None, db_subnet_group_name=None, delete_automated_backups=None, deletion_protection=None, domain=None, domain_iam_role_name=None, enabled_cloudwatch_logs_exports=None, endpoint=None, engine=None, engine_version=None, final_snapshot_identifier=None, hosted_zone_id=None, iam_database_authentication_enabled=None, identifier=None, identifier_prefix=None, instance_class=None, iops=None, kms_key_id=None, license_model=None, maintenance_window=None, max_allocated_storage=None, monitoring_interval=None, monitoring_role_arn=None, multi_az=None, name=None, option_group_name=None, parameter_group_name=None, password=None, performance_insights_enabled=None, performance_insights_kms_key_id=None, performance_insights_retention_period=None, port=None, publicly_accessible=None, replicas=None, replicate_source_db=None, resource_id=None, s3_import=None, security_group_names=None, skip_final_snapshot=None, snapshot_identifier=None, status=None, storage_encrypted=None, storage_type=None, tags=None, timezone=None, username=None, vpc_security_group_ids=None, __props__=None);func GetInstance(ctx *Context, name string, id IDInput, state *InstanceState, opts ...ResourceOption) (*Instance, error)public static Instance Get(string name, Input<string> id, InstanceState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Address string
The hostname of the RDS instance. See also
endpointandport.- Allocated
Storage int The allocated storage in gibibytes. If
max_allocated_storageis configured, this argument represents the initial storage allocation and differences from the configuration will be ignored automatically when Storage Autoscaling occurs.- Allow
Major boolVersion Upgrade Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible.
- Apply
Immediately bool Specifies whether any database modifications are applied immediately, or during the next maintenance window. Default is
false. See Amazon RDS Documentation for more information.- Arn string
The ARN of the RDS instance.
- Auto
Minor boolVersion Upgrade Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window. Defaults to true.
- Availability
Zone string The AZ for the RDS instance.
- Backup
Retention intPeriod The days to retain backups for. Must be between
0and35. Must be greater than0if the database is used as a source for a Read Replica. [See Read Replica][1].- Backup
Window string The daily time range (in UTC) during which automated backups are created if they are enabled. Example: “09:46-10:16”. Must not overlap with
maintenance_window.- Ca
Cert stringIdentifier The identifier of the CA certificate for the DB instance.
- Character
Set stringName The character set name to use for DB encoding in Oracle and Microsoft SQL instances (collation). This can’t be changed. See Oracle Character Sets Supported in Amazon RDS or Server-Level Collation for Microsoft SQL Server for more information.
- bool
Copy all Instance
tagsto snapshots. Default isfalse.- Db
Subnet stringGroup Name Name of
DB subnet group. DB instance will be created in the VPC associated with the DB subnet group. If unspecified, will be created in thedefaultVPC, or in EC2 Classic, if available. When working with read replicas, it should be specified only if the source database specifies an instance in another AWS Region. See DBSubnetGroupName in API action CreateDBInstanceReadReplica for additional read replica contraints.- Delete
Automated boolBackups Specifies whether to remove automated backups immediately after the DB instance is deleted. Default is
true.- Deletion
Protection bool If the DB instance should have deletion protection enabled. The database can’t be deleted when this value is set to
true. The default isfalse.- Domain string
The ID of the Directory Service Active Directory domain to create the instance in.
- Domain
Iam stringRole Name The name of the IAM role to be used when making API calls to the Directory Service.
- Enabled
Cloudwatch List<string>Logs Exports List of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. Valid values (depending on
engine). MySQL and MariaDB:audit,error,general,slowquery. PostgreSQL:postgresql,upgrade. MSSQL:agent,error. Oracle:alert,audit,listener,trace.- Endpoint string
The connection endpoint in
address:portformat.- Engine string
(Required unless a
snapshot_identifierorreplicate_source_dbis provided) The database engine to use. For supported values, see the Engine parameter in API action CreateDBInstance. Note that for Amazon Aurora instances the engine must match theDB cluster’s engine’. For information on the difference between the available Aurora MySQL engines see Comparison between Aurora MySQL 1 and Aurora MySQL 2 in the Amazon RDS User Guide.- Engine
Version string The engine version to use. If
auto_minor_version_upgradeis enabled, you can provide a prefix of the version such as5.7(for5.7.10) and this attribute will ignore differences in the patch version automatically (e.g.5.7.17). For supported values, see the EngineVersion parameter in API action CreateDBInstance. Note that for Amazon Aurora instances the engine version must match theDB cluster’s engine version’.- Final
Snapshot stringIdentifier The name of your final DB snapshot when this DB instance is deleted. Must be provided if
skip_final_snapshotis set tofalse.- Hosted
Zone stringId The canonical hosted zone ID of the DB instance (to be used in a Route 53 Alias record).
- Iam
Database boolAuthentication Enabled Specifies whether or mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled.
- Identifier string
The name of the RDS instance, if omitted, this provider will assign a random, unique identifier.
- Identifier
Prefix string Creates a unique identifier beginning with the specified prefix. Conflicts with
identifier.- Instance
Class string The instance type of the RDS instance.
- Iops int
The amount of provisioned IOPS. Setting this implies a storage_type of “io1”.
- Kms
Key stringId The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN.
- License
Model string (Optional, but required for some DB engines, i.e. Oracle SE1) License model information for this DB instance.
- Maintenance
Window string The window to perform maintenance in. Syntax: “ddd:hh24:mi-ddd:hh24:mi”. Eg: “Mon:00:00-Mon:03:00”. See RDS Maintenance Window docs for more information.
- Max
Allocated intStorage When configured, the upper limit to which Amazon RDS can automatically scale the storage of the DB instance. Configuring this will automatically ignore differences to
allocated_storage. Must be greater than or equal toallocated_storageor0to disable Storage Autoscaling.- Monitoring
Interval int The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60.
- Monitoring
Role stringArn The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. You can find more information on the AWS Documentation what IAM permissions are needed to allow Enhanced Monitoring for RDS Instances.
- Multi
Az bool Specifies if the RDS instance is multi-AZ
- Name string
The name of the database to create when the DB instance is created. If this parameter is not specified, no database is created in the DB instance. Note that this does not apply for Oracle or SQL Server engines. See the AWS documentation for more details on what applies for those engines.
- Option
Group stringName Name of the DB option group to associate.
- Parameter
Group stringName Name of the DB parameter group to associate.
- Password string
(Required unless a
snapshot_identifierorreplicate_source_dbis provided) Password for the master DB user. Note that this may show up in logs, and it will be stored in the state file.- Performance
Insights boolEnabled Specifies whether Performance Insights are enabled. Defaults to false.
- Performance
Insights stringKms Key Id The ARN for the KMS key to encrypt Performance Insights data. When specifying
performance_insights_kms_key_id,performance_insights_enabledneeds to be set to true. Once KMS key is set, it can never be changed.- Performance
Insights intRetention Period The amount of time in days to retain Performance Insights data. Either 7 (7 days) or 731 (2 years). When specifying
performance_insights_retention_period,performance_insights_enabledneeds to be set to true. Defaults to ‘7’.- Port int
The port on which the DB accepts connections.
- Publicly
Accessible bool Bool to control if instance is publicly accessible. Default is
false.- Replicas List<string>
- Replicate
Source stringDb Specifies that this resource is a Replicate database, and to use this value as the source database. This correlates to the
identifierof another Amazon RDS Database to replicate (if replicating within a single region) or ARN of the Amazon RDS Database to replicate (if replicating cross-region). Note that if you are creating a cross-region replica of an encrypted database you will also need to specify akms_key_id. See [DB Instance Replication][1] and Working with PostgreSQL and MySQL Read Replicas for more information on using Replication.- Resource
Id string The RDS Resource ID of this instance.
- S3Import
Instance
S3Import Args Restore from a Percona Xtrabackup in S3. See Importing Data into an Amazon RDS MySQL DB Instance
- Security
Group List<string>Names List of DB Security Groups to associate. Only used for DB Instances on the EC2-Classic Platform.
- Skip
Final boolSnapshot Determines whether a final DB snapshot is created before the DB instance is deleted. If true is specified, no DBSnapshot is created. If false is specified, a DB snapshot is created before the DB instance is deleted, using the value from
final_snapshot_identifier. Default isfalse.- Snapshot
Identifier string Specifies whether or not to create this database from a snapshot. This correlates to the snapshot ID you’d find in the RDS console, e.g: rds:production-2015-06-26-06-05.
- Status string
The RDS instance status.
- Storage
Encrypted bool Specifies whether the DB instance is encrypted. Note that if you are creating a cross-region read replica this field is ignored and you should instead declare
kms_key_idwith a valid ARN. The default isfalseif not specified.- Storage
Type string One of “standard” (magnetic), “gp2” (general purpose SSD), or “io1” (provisioned IOPS SSD). The default is “io1” if
iopsis specified, “gp2” if not.- Dictionary<string, string>
A map of tags to assign to the resource.
- Timezone string
Time zone of the DB instance.
timezoneis currently only supported by Microsoft SQL Server. Thetimezonecan only be set on creation. See MSSQL User Guide for more information.- Username string
(Required unless a
snapshot_identifierorreplicate_source_dbis provided) Username for the master DB user.- Vpc
Security List<string>Group Ids List of VPC security groups to associate.
- Address string
The hostname of the RDS instance. See also
endpointandport.- Allocated
Storage int The allocated storage in gibibytes. If
max_allocated_storageis configured, this argument represents the initial storage allocation and differences from the configuration will be ignored automatically when Storage Autoscaling occurs.- Allow
Major boolVersion Upgrade Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible.
- Apply
Immediately bool Specifies whether any database modifications are applied immediately, or during the next maintenance window. Default is
false. See Amazon RDS Documentation for more information.- Arn string
The ARN of the RDS instance.
- Auto
Minor boolVersion Upgrade Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window. Defaults to true.
- Availability
Zone string The AZ for the RDS instance.
- Backup
Retention intPeriod The days to retain backups for. Must be between
0and35. Must be greater than0if the database is used as a source for a Read Replica. [See Read Replica][1].- Backup
Window string The daily time range (in UTC) during which automated backups are created if they are enabled. Example: “09:46-10:16”. Must not overlap with
maintenance_window.- Ca
Cert stringIdentifier The identifier of the CA certificate for the DB instance.
- Character
Set stringName The character set name to use for DB encoding in Oracle and Microsoft SQL instances (collation). This can’t be changed. See Oracle Character Sets Supported in Amazon RDS or Server-Level Collation for Microsoft SQL Server for more information.
- bool
Copy all Instance
tagsto snapshots. Default isfalse.- Db
Subnet stringGroup Name Name of
DB subnet group. DB instance will be created in the VPC associated with the DB subnet group. If unspecified, will be created in thedefaultVPC, or in EC2 Classic, if available. When working with read replicas, it should be specified only if the source database specifies an instance in another AWS Region. See DBSubnetGroupName in API action CreateDBInstanceReadReplica for additional read replica contraints.- Delete
Automated boolBackups Specifies whether to remove automated backups immediately after the DB instance is deleted. Default is
true.- Deletion
Protection bool If the DB instance should have deletion protection enabled. The database can’t be deleted when this value is set to
true. The default isfalse.- Domain string
The ID of the Directory Service Active Directory domain to create the instance in.
- Domain
Iam stringRole Name The name of the IAM role to be used when making API calls to the Directory Service.
- Enabled
Cloudwatch []stringLogs Exports List of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. Valid values (depending on
engine). MySQL and MariaDB:audit,error,general,slowquery. PostgreSQL:postgresql,upgrade. MSSQL:agent,error. Oracle:alert,audit,listener,trace.- Endpoint string
The connection endpoint in
address:portformat.- Engine string
(Required unless a
snapshot_identifierorreplicate_source_dbis provided) The database engine to use. For supported values, see the Engine parameter in API action CreateDBInstance. Note that for Amazon Aurora instances the engine must match theDB cluster’s engine’. For information on the difference between the available Aurora MySQL engines see Comparison between Aurora MySQL 1 and Aurora MySQL 2 in the Amazon RDS User Guide.- Engine
Version string The engine version to use. If
auto_minor_version_upgradeis enabled, you can provide a prefix of the version such as5.7(for5.7.10) and this attribute will ignore differences in the patch version automatically (e.g.5.7.17). For supported values, see the EngineVersion parameter in API action CreateDBInstance. Note that for Amazon Aurora instances the engine version must match theDB cluster’s engine version’.- Final
Snapshot stringIdentifier The name of your final DB snapshot when this DB instance is deleted. Must be provided if
skip_final_snapshotis set tofalse.- Hosted
Zone stringId The canonical hosted zone ID of the DB instance (to be used in a Route 53 Alias record).
- Iam
Database boolAuthentication Enabled Specifies whether or mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled.
- Identifier string
The name of the RDS instance, if omitted, this provider will assign a random, unique identifier.
- Identifier
Prefix string Creates a unique identifier beginning with the specified prefix. Conflicts with
identifier.- Instance
Class interface{} The instance type of the RDS instance.
- Iops int
The amount of provisioned IOPS. Setting this implies a storage_type of “io1”.
- Kms
Key stringId The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN.
- License
Model string (Optional, but required for some DB engines, i.e. Oracle SE1) License model information for this DB instance.
- Maintenance
Window string The window to perform maintenance in. Syntax: “ddd:hh24:mi-ddd:hh24:mi”. Eg: “Mon:00:00-Mon:03:00”. See RDS Maintenance Window docs for more information.
- Max
Allocated intStorage When configured, the upper limit to which Amazon RDS can automatically scale the storage of the DB instance. Configuring this will automatically ignore differences to
allocated_storage. Must be greater than or equal toallocated_storageor0to disable Storage Autoscaling.- Monitoring
Interval int The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60.
- Monitoring
Role stringArn The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. You can find more information on the AWS Documentation what IAM permissions are needed to allow Enhanced Monitoring for RDS Instances.
- Multi
Az bool Specifies if the RDS instance is multi-AZ
- Name string
The name of the database to create when the DB instance is created. If this parameter is not specified, no database is created in the DB instance. Note that this does not apply for Oracle or SQL Server engines. See the AWS documentation for more details on what applies for those engines.
- Option
Group stringName Name of the DB option group to associate.
- Parameter
Group stringName Name of the DB parameter group to associate.
- Password string
(Required unless a
snapshot_identifierorreplicate_source_dbis provided) Password for the master DB user. Note that this may show up in logs, and it will be stored in the state file.- Performance
Insights boolEnabled Specifies whether Performance Insights are enabled. Defaults to false.
- Performance
Insights stringKms Key Id The ARN for the KMS key to encrypt Performance Insights data. When specifying
performance_insights_kms_key_id,performance_insights_enabledneeds to be set to true. Once KMS key is set, it can never be changed.- Performance
Insights intRetention Period The amount of time in days to retain Performance Insights data. Either 7 (7 days) or 731 (2 years). When specifying
performance_insights_retention_period,performance_insights_enabledneeds to be set to true. Defaults to ‘7’.- Port int
The port on which the DB accepts connections.
- Publicly
Accessible bool Bool to control if instance is publicly accessible. Default is
false.- Replicas []string
- Replicate
Source stringDb Specifies that this resource is a Replicate database, and to use this value as the source database. This correlates to the
identifierof another Amazon RDS Database to replicate (if replicating within a single region) or ARN of the Amazon RDS Database to replicate (if replicating cross-region). Note that if you are creating a cross-region replica of an encrypted database you will also need to specify akms_key_id. See [DB Instance Replication][1] and Working with PostgreSQL and MySQL Read Replicas for more information on using Replication.- Resource
Id string The RDS Resource ID of this instance.
- S3Import
Instance
S3Import Restore from a Percona Xtrabackup in S3. See Importing Data into an Amazon RDS MySQL DB Instance
- Security
Group []stringNames List of DB Security Groups to associate. Only used for DB Instances on the EC2-Classic Platform.
- Skip
Final boolSnapshot Determines whether a final DB snapshot is created before the DB instance is deleted. If true is specified, no DBSnapshot is created. If false is specified, a DB snapshot is created before the DB instance is deleted, using the value from
final_snapshot_identifier. Default isfalse.- Snapshot
Identifier string Specifies whether or not to create this database from a snapshot. This correlates to the snapshot ID you’d find in the RDS console, e.g: rds:production-2015-06-26-06-05.
- Status string
The RDS instance status.
- Storage
Encrypted bool Specifies whether the DB instance is encrypted. Note that if you are creating a cross-region read replica this field is ignored and you should instead declare
kms_key_idwith a valid ARN. The default isfalseif not specified.- Storage
Type interface{} One of “standard” (magnetic), “gp2” (general purpose SSD), or “io1” (provisioned IOPS SSD). The default is “io1” if
iopsis specified, “gp2” if not.- map[string]string
A map of tags to assign to the resource.
- Timezone string
Time zone of the DB instance.
timezoneis currently only supported by Microsoft SQL Server. Thetimezonecan only be set on creation. See MSSQL User Guide for more information.- Username string
(Required unless a
snapshot_identifierorreplicate_source_dbis provided) Username for the master DB user.- Vpc
Security []stringGroup Ids List of VPC security groups to associate.
- address string
The hostname of the RDS instance. See also
endpointandport.- allocated
Storage number The allocated storage in gibibytes. If
max_allocated_storageis configured, this argument represents the initial storage allocation and differences from the configuration will be ignored automatically when Storage Autoscaling occurs.- allow
Major booleanVersion Upgrade Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible.
- apply
Immediately boolean Specifies whether any database modifications are applied immediately, or during the next maintenance window. Default is
false. See Amazon RDS Documentation for more information.- arn string
The ARN of the RDS instance.
- auto
Minor booleanVersion Upgrade Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window. Defaults to true.
- availability
Zone string The AZ for the RDS instance.
- backup
Retention numberPeriod The days to retain backups for. Must be between
0and35. Must be greater than0if the database is used as a source for a Read Replica. [See Read Replica][1].- backup
Window string The daily time range (in UTC) during which automated backups are created if they are enabled. Example: “09:46-10:16”. Must not overlap with
maintenance_window.- ca
Cert stringIdentifier The identifier of the CA certificate for the DB instance.
- character
Set stringName The character set name to use for DB encoding in Oracle and Microsoft SQL instances (collation). This can’t be changed. See Oracle Character Sets Supported in Amazon RDS or Server-Level Collation for Microsoft SQL Server for more information.
- boolean
Copy all Instance
tagsto snapshots. Default isfalse.- db
Subnet stringGroup Name Name of
DB subnet group. DB instance will be created in the VPC associated with the DB subnet group. If unspecified, will be created in thedefaultVPC, or in EC2 Classic, if available. When working with read replicas, it should be specified only if the source database specifies an instance in another AWS Region. See DBSubnetGroupName in API action CreateDBInstanceReadReplica for additional read replica contraints.- delete
Automated booleanBackups Specifies whether to remove automated backups immediately after the DB instance is deleted. Default is
true.- deletion
Protection boolean If the DB instance should have deletion protection enabled. The database can’t be deleted when this value is set to
true. The default isfalse.- domain string
The ID of the Directory Service Active Directory domain to create the instance in.
- domain
Iam stringRole Name The name of the IAM role to be used when making API calls to the Directory Service.
- enabled
Cloudwatch string[]Logs Exports List of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. Valid values (depending on
engine). MySQL and MariaDB:audit,error,general,slowquery. PostgreSQL:postgresql,upgrade. MSSQL:agent,error. Oracle:alert,audit,listener,trace.- endpoint string
The connection endpoint in
address:portformat.- engine string
(Required unless a
snapshot_identifierorreplicate_source_dbis provided) The database engine to use. For supported values, see the Engine parameter in API action CreateDBInstance. Note that for Amazon Aurora instances the engine must match theDB cluster’s engine’. For information on the difference between the available Aurora MySQL engines see Comparison between Aurora MySQL 1 and Aurora MySQL 2 in the Amazon RDS User Guide.- engine
Version string The engine version to use. If
auto_minor_version_upgradeis enabled, you can provide a prefix of the version such as5.7(for5.7.10) and this attribute will ignore differences in the patch version automatically (e.g.5.7.17). For supported values, see the EngineVersion parameter in API action CreateDBInstance. Note that for Amazon Aurora instances the engine version must match theDB cluster’s engine version’.- final
Snapshot stringIdentifier The name of your final DB snapshot when this DB instance is deleted. Must be provided if
skip_final_snapshotis set tofalse.- hosted
Zone stringId The canonical hosted zone ID of the DB instance (to be used in a Route 53 Alias record).
- iam
Database booleanAuthentication Enabled Specifies whether or mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled.
- identifier string
The name of the RDS instance, if omitted, this provider will assign a random, unique identifier.
- identifier
Prefix string Creates a unique identifier beginning with the specified prefix. Conflicts with
identifier.- instance
Class string | InstanceType The instance type of the RDS instance.
- iops number
The amount of provisioned IOPS. Setting this implies a storage_type of “io1”.
- kms
Key stringId The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN.
- license
Model string (Optional, but required for some DB engines, i.e. Oracle SE1) License model information for this DB instance.
- maintenance
Window string The window to perform maintenance in. Syntax: “ddd:hh24:mi-ddd:hh24:mi”. Eg: “Mon:00:00-Mon:03:00”. See RDS Maintenance Window docs for more information.
- max
Allocated numberStorage When configured, the upper limit to which Amazon RDS can automatically scale the storage of the DB instance. Configuring this will automatically ignore differences to
allocated_storage. Must be greater than or equal toallocated_storageor0to disable Storage Autoscaling.- monitoring
Interval number The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60.
- monitoring
Role stringArn The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. You can find more information on the AWS Documentation what IAM permissions are needed to allow Enhanced Monitoring for RDS Instances.
- multi
Az boolean Specifies if the RDS instance is multi-AZ
- name string
The name of the database to create when the DB instance is created. If this parameter is not specified, no database is created in the DB instance. Note that this does not apply for Oracle or SQL Server engines. See the AWS documentation for more details on what applies for those engines.
- option
Group stringName Name of the DB option group to associate.
- parameter
Group stringName Name of the DB parameter group to associate.
- password string
(Required unless a
snapshot_identifierorreplicate_source_dbis provided) Password for the master DB user. Note that this may show up in logs, and it will be stored in the state file.- performance
Insights booleanEnabled Specifies whether Performance Insights are enabled. Defaults to false.
- performance
Insights stringKms Key Id The ARN for the KMS key to encrypt Performance Insights data. When specifying
performance_insights_kms_key_id,performance_insights_enabledneeds to be set to true. Once KMS key is set, it can never be changed.- performance
Insights numberRetention Period The amount of time in days to retain Performance Insights data. Either 7 (7 days) or 731 (2 years). When specifying
performance_insights_retention_period,performance_insights_enabledneeds to be set to true. Defaults to ‘7’.- port number
The port on which the DB accepts connections.
- publicly
Accessible boolean Bool to control if instance is publicly accessible. Default is
false.- replicas string[]
- replicate
Source stringDb Specifies that this resource is a Replicate database, and to use this value as the source database. This correlates to the
identifierof another Amazon RDS Database to replicate (if replicating within a single region) or ARN of the Amazon RDS Database to replicate (if replicating cross-region). Note that if you are creating a cross-region replica of an encrypted database you will also need to specify akms_key_id. See [DB Instance Replication][1] and Working with PostgreSQL and MySQL Read Replicas for more information on using Replication.- resource
Id string The RDS Resource ID of this instance.
- s3Import
Instance
S3Import Restore from a Percona Xtrabackup in S3. See Importing Data into an Amazon RDS MySQL DB Instance
- security
Group string[]Names List of DB Security Groups to associate. Only used for DB Instances on the EC2-Classic Platform.
- skip
Final booleanSnapshot Determines whether a final DB snapshot is created before the DB instance is deleted. If true is specified, no DBSnapshot is created. If false is specified, a DB snapshot is created before the DB instance is deleted, using the value from
final_snapshot_identifier. Default isfalse.- snapshot
Identifier string Specifies whether or not to create this database from a snapshot. This correlates to the snapshot ID you’d find in the RDS console, e.g: rds:production-2015-06-26-06-05.
- status string
The RDS instance status.
- storage
Encrypted boolean Specifies whether the DB instance is encrypted. Note that if you are creating a cross-region read replica this field is ignored and you should instead declare
kms_key_idwith a valid ARN. The default isfalseif not specified.- storage
Type string | StorageType One of “standard” (magnetic), “gp2” (general purpose SSD), or “io1” (provisioned IOPS SSD). The default is “io1” if
iopsis specified, “gp2” if not.- {[key: string]: string}
A map of tags to assign to the resource.
- timezone string
Time zone of the DB instance.
timezoneis currently only supported by Microsoft SQL Server. Thetimezonecan only be set on creation. See MSSQL User Guide for more information.- username string
(Required unless a
snapshot_identifierorreplicate_source_dbis provided) Username for the master DB user.- vpc
Security string[]Group Ids List of VPC security groups to associate.
- address str
The hostname of the RDS instance. See also
endpointandport.- allocated_
storage float The allocated storage in gibibytes. If
max_allocated_storageis configured, this argument represents the initial storage allocation and differences from the configuration will be ignored automatically when Storage Autoscaling occurs.- allow_
major_ boolversion_ upgrade Indicates that major version upgrades are allowed. Changing this parameter does not result in an outage and the change is asynchronously applied as soon as possible.
- apply_
immediately bool Specifies whether any database modifications are applied immediately, or during the next maintenance window. Default is
false. See Amazon RDS Documentation for more information.- arn str
The ARN of the RDS instance.
- auto_
minor_ boolversion_ upgrade Indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window. Defaults to true.
- availability_
zone str The AZ for the RDS instance.
- backup_
retention_ floatperiod The days to retain backups for. Must be between
0and35. Must be greater than0if the database is used as a source for a Read Replica. [See Read Replica][1].- backup_
window str The daily time range (in UTC) during which automated backups are created if they are enabled. Example: “09:46-10:16”. Must not overlap with
maintenance_window.- ca_
cert_ stridentifier The identifier of the CA certificate for the DB instance.
- character_
set_ strname The character set name to use for DB encoding in Oracle and Microsoft SQL instances (collation). This can’t be changed. See Oracle Character Sets Supported in Amazon RDS or Server-Level Collation for Microsoft SQL Server for more information.
- bool
Copy all Instance
tagsto snapshots. Default isfalse.- db_
subnet_ strgroup_ name Name of
DB subnet group. DB instance will be created in the VPC associated with the DB subnet group. If unspecified, will be created in thedefaultVPC, or in EC2 Classic, if available. When working with read replicas, it should be specified only if the source database specifies an instance in another AWS Region. See DBSubnetGroupName in API action CreateDBInstanceReadReplica for additional read replica contraints.- delete_
automated_ boolbackups Specifies whether to remove automated backups immediately after the DB instance is deleted. Default is
true.- deletion_
protection bool If the DB instance should have deletion protection enabled. The database can’t be deleted when this value is set to
true. The default isfalse.- domain str
The ID of the Directory Service Active Directory domain to create the instance in.
- domain_
iam_ strrole_ name The name of the IAM role to be used when making API calls to the Directory Service.
- enabled_
cloudwatch_ List[str]logs_ exports List of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. Valid values (depending on
engine). MySQL and MariaDB:audit,error,general,slowquery. PostgreSQL:postgresql,upgrade. MSSQL:agent,error. Oracle:alert,audit,listener,trace.- endpoint str
The connection endpoint in
address:portformat.- engine str
(Required unless a
snapshot_identifierorreplicate_source_dbis provided) The database engine to use. For supported values, see the Engine parameter in API action CreateDBInstance. Note that for Amazon Aurora instances the engine must match theDB cluster’s engine’. For information on the difference between the available Aurora MySQL engines see Comparison between Aurora MySQL 1 and Aurora MySQL 2 in the Amazon RDS User Guide.- engine_
version str The engine version to use. If
auto_minor_version_upgradeis enabled, you can provide a prefix of the version such as5.7(for5.7.10) and this attribute will ignore differences in the patch version automatically (e.g.5.7.17). For supported values, see the EngineVersion parameter in API action CreateDBInstance. Note that for Amazon Aurora instances the engine version must match theDB cluster’s engine version’.- final_
snapshot_ stridentifier The name of your final DB snapshot when this DB instance is deleted. Must be provided if
skip_final_snapshotis set tofalse.- hosted_
zone_ strid The canonical hosted zone ID of the DB instance (to be used in a Route 53 Alias record).
- iam_
database_ boolauthentication_ enabled Specifies whether or mappings of AWS Identity and Access Management (IAM) accounts to database accounts is enabled.
- identifier str
The name of the RDS instance, if omitted, this provider will assign a random, unique identifier.
- identifier_
prefix str Creates a unique identifier beginning with the specified prefix. Conflicts with
identifier.- instance_
class string | str The instance type of the RDS instance.
- iops float
The amount of provisioned IOPS. Setting this implies a storage_type of “io1”.
- kms_
key_ strid The ARN for the KMS encryption key. If creating an encrypted replica, set this to the destination KMS ARN.
- license_
model str (Optional, but required for some DB engines, i.e. Oracle SE1) License model information for this DB instance.
- maintenance_
window str The window to perform maintenance in. Syntax: “ddd:hh24:mi-ddd:hh24:mi”. Eg: “Mon:00:00-Mon:03:00”. See RDS Maintenance Window docs for more information.
- max_
allocated_ floatstorage When configured, the upper limit to which Amazon RDS can automatically scale the storage of the DB instance. Configuring this will automatically ignore differences to
allocated_storage. Must be greater than or equal toallocated_storageor0to disable Storage Autoscaling.- monitoring_
interval float The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid Values: 0, 1, 5, 10, 15, 30, 60.
- monitoring_
role_ strarn The ARN for the IAM role that permits RDS to send enhanced monitoring metrics to CloudWatch Logs. You can find more information on the AWS Documentation what IAM permissions are needed to allow Enhanced Monitoring for RDS Instances.
- multi_
az bool Specifies if the RDS instance is multi-AZ
- name str
The name of the database to create when the DB instance is created. If this parameter is not specified, no database is created in the DB instance. Note that this does not apply for Oracle or SQL Server engines. See the AWS documentation for more details on what applies for those engines.
- option_
group_ strname Name of the DB option group to associate.
- parameter_
group_ strname Name of the DB parameter group to associate.
- password str
(Required unless a
snapshot_identifierorreplicate_source_dbis provided) Password for the master DB user. Note that this may show up in logs, and it will be stored in the state file.- performance_
insights_ boolenabled Specifies whether Performance Insights are enabled. Defaults to false.
- performance_
insights_ strkms_ key_ id The ARN for the KMS key to encrypt Performance Insights data. When specifying
performance_insights_kms_key_id,performance_insights_enabledneeds to be set to true. Once KMS key is set, it can never be changed.- performance_
insights_ floatretention_ period The amount of time in days to retain Performance Insights data. Either 7 (7 days) or 731 (2 years). When specifying
performance_insights_retention_period,performance_insights_enabledneeds to be set to true. Defaults to ‘7’.- port float
The port on which the DB accepts connections.
- publicly_
accessible bool Bool to control if instance is publicly accessible. Default is
false.- replicas List[str]
- replicate_
source_ strdb Specifies that this resource is a Replicate database, and to use this value as the source database. This correlates to the
identifierof another Amazon RDS Database to replicate (if replicating within a single region) or ARN of the Amazon RDS Database to replicate (if replicating cross-region). Note that if you are creating a cross-region replica of an encrypted database you will also need to specify akms_key_id. See [DB Instance Replication][1] and Working with PostgreSQL and MySQL Read Replicas for more information on using Replication.- resource_
id str The RDS Resource ID of this instance.
- s3_
import Dict[InstanceS3Import] Restore from a Percona Xtrabackup in S3. See Importing Data into an Amazon RDS MySQL DB Instance
- security_
group_ List[str]names List of DB Security Groups to associate. Only used for DB Instances on the EC2-Classic Platform.
- skip_
final_ boolsnapshot Determines whether a final DB snapshot is created before the DB instance is deleted. If true is specified, no DBSnapshot is created. If false is specified, a DB snapshot is created before the DB instance is deleted, using the value from
final_snapshot_identifier. Default isfalse.- snapshot_
identifier str Specifies whether or not to create this database from a snapshot. This correlates to the snapshot ID you’d find in the RDS console, e.g: rds:production-2015-06-26-06-05.
- status str
The RDS instance status.
- storage_
encrypted bool Specifies whether the DB instance is encrypted. Note that if you are creating a cross-region read replica this field is ignored and you should instead declare
kms_key_idwith a valid ARN. The default isfalseif not specified.- storage_
type string | str One of “standard” (magnetic), “gp2” (general purpose SSD), or “io1” (provisioned IOPS SSD). The default is “io1” if
iopsis specified, “gp2” if not.- Dict[str, str]
A map of tags to assign to the resource.
- timezone str
Time zone of the DB instance.
timezoneis currently only supported by Microsoft SQL Server. Thetimezonecan only be set on creation. See MSSQL User Guide for more information.- username str
(Required unless a
snapshot_identifierorreplicate_source_dbis provided) Username for the master DB user.- vpc_
security_ List[str]group_ ids List of VPC security groups to associate.
Supporting Types
InstanceS3Import
- Bucket
Name string The bucket name where your backup is stored
- Ingestion
Role string Role applied to load the data.
- Source
Engine string Source engine for the backup
- Source
Engine stringVersion Version of the source engine used to make the backup
- Bucket
Prefix string Can be blank, but is the path to your backup
- Bucket
Name string The bucket name where your backup is stored
- Ingestion
Role string Role applied to load the data.
- Source
Engine string Source engine for the backup
- Source
Engine stringVersion Version of the source engine used to make the backup
- Bucket
Prefix string Can be blank, but is the path to your backup
- bucket
Name string The bucket name where your backup is stored
- ingestion
Role string Role applied to load the data.
- source
Engine string Source engine for the backup
- source
Engine stringVersion Version of the source engine used to make the backup
- bucket
Prefix string Can be blank, but is the path to your backup
- bucket_
name str The bucket name where your backup is stored
- ingestion
Role str Role applied to load the data.
- source
Engine str Source engine for the backup
- source
Engine strVersion Version of the source engine used to make the backup
- bucket_
prefix str Can be blank, but is the path to your backup
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.