Skip to content

Latest commit

 

History

History
 
 

complete-mysql

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Complete RDS example for MySQL

Configuration in this directory creates a set of RDS resources including DB instance, DB subnet group and DB parameter group.

Usage

To run this example you need to execute:

$ terraform init
$ terraform plan
$ terraform apply

Note that this example may create resources which cost money. Run terraform destroy when you don't need these resources.

Requirements

Name Version
terraform >= 0.12.26
aws >= 2.49

Providers

No providers.

Modules

Name Source Version
db ../../
db_default ../../
security_group terraform-aws-modules/security-group/aws ~> 4
vpc terraform-aws-modules/vpc/aws ~> 2

Resources

No resources.

Inputs

No inputs.

Outputs

Name Description
db_default_instance_address The address of the RDS instance
db_default_instance_arn The ARN of the RDS instance
db_default_instance_availability_zone The availability zone of the RDS instance
db_default_instance_endpoint The connection endpoint
db_default_instance_hosted_zone_id The canonical hosted zone ID of the DB instance (to be used in a Route 53 Alias record)
db_default_instance_id The RDS instance ID
db_default_instance_name The database name
db_default_instance_password The database password (this password may be old, because Terraform doesn't track it after initial creation)
db_default_instance_port The database port
db_default_instance_resource_id The RDS Resource ID of this instance
db_default_instance_status The RDS instance status
db_default_instance_username The master username for the database
db_default_parameter_group_arn The ARN of the db parameter group
db_default_parameter_group_id The db parameter group id
db_default_subnet_group_arn The ARN of the db subnet group
db_default_subnet_group_id The db subnet group name
db_enhanced_monitoring_iam_role_arn The Amazon Resource Name (ARN) specifying the monitoring role
db_instance_address The address of the RDS instance
db_instance_arn The ARN of the RDS instance
db_instance_availability_zone The availability zone of the RDS instance
db_instance_endpoint The connection endpoint
db_instance_hosted_zone_id The canonical hosted zone ID of the DB instance (to be used in a Route 53 Alias record)
db_instance_id The RDS instance ID
db_instance_name The database name
db_instance_password The database password (this password may be old, because Terraform doesn't track it after initial creation)
db_instance_port The database port
db_instance_resource_id The RDS Resource ID of this instance
db_instance_status The RDS instance status
db_instance_username The master username for the database
db_parameter_group_arn The ARN of the db parameter group
db_parameter_group_id The db parameter group id
db_subnet_group_arn The ARN of the db subnet group
db_subnet_group_id The db subnet group name