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 Serverless V1 (PostgreSQL, MySQL), and Serverless V2 (PostgreSQL).

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 >= 1.0
aws >= 5.64
random >= 3.5

Providers

Name Version
aws >= 5.64
random >= 3.5

Modules

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

Resources

Name Type
random_password.master resource
aws_availability_zones.available data source
aws_rds_engine_version.postgresql data source

Inputs

No inputs.

Outputs

Name Description
aurora_mysql_v2_additional_cluster_endpoints A map of additional cluster endpoints and their attributes
aurora_mysql_v2_cluster_arn Amazon Resource Name (ARN) of cluster
aurora_mysql_v2_cluster_database_name Name for an automatically created database on cluster creation
aurora_mysql_v2_cluster_endpoint Writer endpoint for the cluster
aurora_mysql_v2_cluster_engine_version_actual The running version of the cluster database
aurora_mysql_v2_cluster_hosted_zone_id The Route53 Hosted Zone ID of the endpoint
aurora_mysql_v2_cluster_id The RDS Cluster Identifier
aurora_mysql_v2_cluster_instances A map of cluster instances and their attributes
aurora_mysql_v2_cluster_master_password The database master password
aurora_mysql_v2_cluster_master_username The database master username
aurora_mysql_v2_cluster_members List of RDS Instances that are a part of this cluster
aurora_mysql_v2_cluster_port The database port
aurora_mysql_v2_cluster_reader_endpoint A read-only endpoint for the cluster, automatically load-balanced across replicas
aurora_mysql_v2_cluster_resource_id The RDS Cluster Resource ID
aurora_mysql_v2_cluster_role_associations A map of IAM roles associated with the cluster and their attributes
aurora_mysql_v2_db_subnet_group_name The db subnet group name
aurora_mysql_v2_enhanced_monitoring_iam_role_arn The Amazon Resource Name (ARN) specifying the enhanced monitoring role
aurora_mysql_v2_enhanced_monitoring_iam_role_name The name of the enhanced monitoring role
aurora_mysql_v2_enhanced_monitoring_iam_role_unique_id Stable and unique string identifying the enhanced monitoring role
aurora_mysql_v2_security_group_id The security group ID of the cluster
aurora_postgresql_v2_additional_cluster_endpoints A map of additional cluster endpoints and their attributes
aurora_postgresql_v2_cluster_arn Amazon Resource Name (ARN) of cluster
aurora_postgresql_v2_cluster_database_name Name for an automatically created database on cluster creation
aurora_postgresql_v2_cluster_endpoint Writer endpoint for the cluster
aurora_postgresql_v2_cluster_engine_version_actual The running version of the cluster database
aurora_postgresql_v2_cluster_hosted_zone_id The Route53 Hosted Zone ID of the endpoint
aurora_postgresql_v2_cluster_id The RDS Cluster Identifier
aurora_postgresql_v2_cluster_instances A map of cluster instances and their attributes
aurora_postgresql_v2_cluster_master_password The database master password
aurora_postgresql_v2_cluster_master_username The database master username
aurora_postgresql_v2_cluster_members List of RDS Instances that are a part of this cluster
aurora_postgresql_v2_cluster_port The database port
aurora_postgresql_v2_cluster_reader_endpoint A read-only endpoint for the cluster, automatically load-balanced across replicas
aurora_postgresql_v2_cluster_resource_id The RDS Cluster Resource ID
aurora_postgresql_v2_cluster_role_associations A map of IAM roles associated with the cluster and their attributes
aurora_postgresql_v2_db_subnet_group_name The db subnet group name
aurora_postgresql_v2_enhanced_monitoring_iam_role_arn The Amazon Resource Name (ARN) specifying the enhanced monitoring role
aurora_postgresql_v2_enhanced_monitoring_iam_role_name The name of the enhanced monitoring role
aurora_postgresql_v2_enhanced_monitoring_iam_role_unique_id Stable and unique string identifying the enhanced monitoring role
aurora_postgresql_v2_security_group_id The security group ID of the cluster
aurora_postresql_v2_cloudwatch_log_groups Map of CloudWatch log groups created and their attributes
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