Skip to content

Latest commit

 

History

History
 
 

serverless

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Serverless Example

Configuration in this directory creates Aurora serverless clusters for both PostgreSQL and MySQL.

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.13
aws >= 3.63

Providers

Name Version
aws >= 3.63

Modules

Name Source Version
aurora_mysql ../../ n/a
aurora_postgresql ../../ n/a
vpc terraform-aws-modules/vpc/aws ~> 3.0

Resources

Name Type
aws_db_parameter_group.example_mysql resource
aws_db_parameter_group.example_postgresql resource
aws_rds_cluster_parameter_group.example_mysql resource
aws_rds_cluster_parameter_group.example_postgresql resource

Inputs

No inputs.

Outputs

Name Description
mysql_additional_cluster_endpoints A map of additional cluster endpoints and their attributes
mysql_cluster_arn Amazon Resource Name (ARN) of cluster
mysql_cluster_database_name Name for an automatically created database on cluster creation
mysql_cluster_endpoint Writer endpoint for the cluster
mysql_cluster_engine_version_actual The running version of the cluster database
mysql_cluster_hosted_zone_id The Route53 Hosted Zone ID of the endpoint
mysql_cluster_id The RDS Cluster Identifier
mysql_cluster_instances A map of cluster instances and their attributes
mysql_cluster_master_password The database master password
mysql_cluster_master_username The database master username
mysql_cluster_members List of RDS Instances that are a part of this cluster
mysql_cluster_port The database port
mysql_cluster_reader_endpoint A read-only endpoint for the cluster, automatically load-balanced across replicas
mysql_cluster_resource_id The RDS Cluster Resource ID
mysql_cluster_role_associations A map of IAM roles associated with the cluster and their attributes
mysql_db_subnet_group_name The db subnet group name
mysql_enhanced_monitoring_iam_role_arn The Amazon Resource Name (ARN) specifying the enhanced monitoring role
mysql_enhanced_monitoring_iam_role_name The name of the enhanced monitoring role
mysql_enhanced_monitoring_iam_role_unique_id Stable and unique string identifying the enhanced monitoring role
mysql_security_group_id The security group ID of the cluster
postgresql_additional_cluster_endpoints A map of additional cluster endpoints and their attributes
postgresql_cluster_arn Amazon Resource Name (ARN) of cluster
postgresql_cluster_database_name Name for an automatically created database on cluster creation
postgresql_cluster_endpoint Writer endpoint for the cluster
postgresql_cluster_engine_version_actual The running version of the cluster database
postgresql_cluster_hosted_zone_id The Route53 Hosted Zone ID of the endpoint
postgresql_cluster_id The RDS Cluster Identifier
postgresql_cluster_instances A map of cluster instances and their attributes
postgresql_cluster_master_password The database master password
postgresql_cluster_master_username The database master username
postgresql_cluster_members List of RDS Instances that are a part of this cluster
postgresql_cluster_port The database port
postgresql_cluster_reader_endpoint A read-only endpoint for the cluster, automatically load-balanced across replicas
postgresql_cluster_resource_id The RDS Cluster Resource ID
postgresql_cluster_role_associations A map of IAM roles associated with the cluster and their attributes
postgresql_db_subnet_group_name The db subnet group name
postgresql_enhanced_monitoring_iam_role_arn The Amazon Resource Name (ARN) specifying the enhanced monitoring role
postgresql_enhanced_monitoring_iam_role_name The name of the enhanced monitoring role
postgresql_enhanced_monitoring_iam_role_unique_id Stable and unique string identifying the enhanced monitoring role
postgresql_security_group_id The security group ID of the cluster