Configuration in this directory creates a set of RDS resources including DB instance, DB subnet group and DB parameter group.
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.
Name | Version |
---|---|
terraform | >= 0.13.1 |
aws | >= 4.6 |
Name | Version |
---|---|
aws | >= 4.6 |
Name | Source | Version |
---|---|---|
db | ../../ | n/a |
db_automated_backups_replication | ../../modules/db_instance_automated_backups_replication | n/a |
db_default | ../../ | n/a |
db_disabled | ../../ | n/a |
kms | terraform-aws-modules/kms/aws | ~> 1.0 |
security_group | terraform-aws-modules/security-group/aws | ~> 4.0 |
vpc | terraform-aws-modules/vpc/aws | ~> 3.0 |
Name | Type |
---|---|
aws_caller_identity.current | data source |
No inputs.
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_cloudwatch_log_groups | Map of CloudWatch log groups created and their attributes |
db_default_instance_endpoint | The connection endpoint |
db_default_instance_engine | The database engine |
db_default_instance_engine_version | The running version of the database |
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_cloudwatch_log_groups | Map of CloudWatch log groups created and their attributes |
db_instance_endpoint | The connection endpoint |
db_instance_engine | The database engine |
db_instance_engine_version_actual | The running version of the database |
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 |