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.8

Providers

Name Version
aws >= 3.8

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_rds_cluster_database_name Name for an automatically created database on cluster creation
mysql_rds_cluster_endpoint The cluster endpoint
mysql_rds_cluster_id The ID of the cluster
mysql_rds_cluster_instance_endpoints A list of all cluster instance endpoints
mysql_rds_cluster_instance_ids A list of all cluster instance ids
mysql_rds_cluster_master_password The master password
mysql_rds_cluster_master_username The master username
mysql_rds_cluster_port The port
mysql_rds_cluster_reader_endpoint The cluster reader endpoint
mysql_rds_cluster_resource_id The Resource ID of the cluster
mysql_security_group_id The security group ID of the cluster
postgresql_rds_cluster_database_name Name for an automatically created database on cluster creation
postgresql_rds_cluster_endpoint The cluster endpoint
postgresql_rds_cluster_id The ID of the cluster
postgresql_rds_cluster_instance_endpoints A list of all cluster instance endpoints
postgresql_rds_cluster_instance_ids A list of all cluster instance ids
postgresql_rds_cluster_master_password The master password
postgresql_rds_cluster_master_username The master username
postgresql_rds_cluster_port The port
postgresql_rds_cluster_reader_endpoint The cluster reader endpoint
postgresql_rds_cluster_resource_id The Resource ID of the cluster
postgresql_security_group_id The security group ID of the cluster