Skip to content

Latest commit

 

History

History

rds-reserved-instance

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

rds-reserved-instance

This module creates following resources.

  • aws_rds_reserved_instance

Requirements

Name Version
terraform >= 1.5
aws >= 4.58

Providers

Name Version
aws 5.19.0

Modules

Name Source Version
resource_group tedilabs/misc/aws//modules/resource-group ~> 0.10.0

Resources

Name Type
aws_rds_reserved_instance.this resource
aws_rds_reserved_instance_offering.this data source

Inputs

Name Description Type Default Required
name (Required) The customer-specified identifier to track this reservation. string n/a yes
offering (Required) The configuration for offering of the reservation. offering as defined below.
(Required) type - The offering type of this reserved DB instance.
(Required) duration - The duration of the reservation in years or seconds. Valid values are 1, 3, 31536000, 94608000.
(Required) product - The product description of the reserved DB instance.
(Required) instance_class - The DB instance type(instance class) for the reserved DB instance, for example db.m5.large. Not all DB instance classes are available in all AWS Regions, or for all database engines.
(Required) multi_az - Whether the reservation is for Multi-AZ deployments.
object({
type = string
duration = number
product = string
instance_class = string
multi_az = bool
})
n/a yes
instance_count (Optional) The number of instances to reserve. Defaults to 1. number 1 no
module_tags_enabled (Optional) Whether to create AWS Resource Tags for the module informations. bool true no
resource_group_description (Optional) The description of Resource Group. string "Managed by Terraform." no
resource_group_enabled (Optional) Whether to create Resource Group to find and group AWS resources which are created by this module. bool true no
resource_group_name (Optional) The name of Resource Group. A Resource Group name can have a maximum of 127 characters, including letters, numbers, hyphens, dots, and underscores. The name cannot start with AWS or aws. string "" no
tags (Optional) A map of tags to add to all resources. map(string) {} no

Outputs

Name Description
arn The ARN for the reserved DB instance.
id The unique identifier for the reservation.
instance_count The number of reserved instances.
lease_id The unique identifier for the lease associated with the reserved DB instance.
name The customer-specified identifier to track this reservation.
offering The offering information for the RDS reserved instance.
id - The unique identifier for the reservation offering.
type - The offering type of this reserved DB instance.
duration - The duration of the reservation in seconds.
product - The product description of the reserved DB instance.
instance_type - The DB instance type(instance class) for the reserved DB instance, for example db.m5.large.
multi_az - Whether the reservation is for Multi-AZ deployments.
currency_code - The currency code for the reserved DB instance.
fixed_price - The fixed price charged for this reserved DB instance.
usage_price - The hourly price charged for this offering.
recurring_price - The recurring price charged to run this reserved DB instance.
started_at The time the reservation started.
state The state of the reserved DB instance.