Skip to content

Latest commit

 

History

History
75 lines (64 loc) · 7.19 KB

File metadata and controls

75 lines (64 loc) · 7.19 KB

Requirements

Name Version
terraform >= 0.12
mongodbatlas 1.12.1

Providers

Name Version
aws n/a
mongodbatlas 1.12.1

Modules

No modules.

Resources

Name Type
aws_vpc_peering_connection_accepter.peer resource
mongodbatlas_cluster.cluster resource
mongodbatlas_database_user.user resource
mongodbatlas_network_peering.mongo_peer resource
mongodbatlas_project.project resource
mongodbatlas_project_ip_access_list.access_list resource
mongodbatlas_teams.team resource

Inputs

Name Description Type Default Required
access_lists An object that contains all the network white-lists that should be created in the project map(any) {} no
auto_scaling_disk_gb_enabled Indicating if disk auto-scaling is enabled bool true no
backing_provider_name The cloud provider to use for the cluster string null no
backup_enabled Indicating if the cluster uses Cloud Backup for backups bool true no
cluster_name The cluster name string n/a yes
cluster_type The MongoDB Atlas cluster type - SHARDED/REPLICASET/GEOSHARDED string n/a yes
database_users An object that contains all the database users that should be created in the project
map(object({
username = string
password = string
role = object({
role_name = string
database_name = string
})
}))
{} no
disk_size_gb Capacity,in gigabytes,of the host’s root volume number null no
instance_type The Atlas instance-type name string n/a yes
mongodb_major_ver The MongoDB cluster major version number n/a yes
name Name to be used on all the resources as identifier string "" no
num_shards number of shards number n/a yes
org_id The ID of the Atlas organization you want to create the project within string n/a yes
pit_enabled Indicating if the cluster uses Continuous Cloud Backup, if set to true - provider_backup must also be set to true bool false no
project_name The name of the project you want to create string n/a yes
provider_disk_iops The maximum IOPS the system can perform number null no
provider_encrypt_ebs_volume Indicating if the AWS EBS encryption feature encrypts the server’s root volume bool false no
provider_name The cloud provider to use for the cluster string null no
region The AWS region-name that the cluster will be deployed on string n/a yes
replication_factor The Number of replica set members, possible values are 3/5/7 number null no
tags Any extra tags to assign to objects map(any) {} no
teams An object that contains all the groups that should be created in the project map(any) {} no
volume_type STANDARD or PROVISIONED for IOPS higher than the default instance IOPS string null no
vpc_peer An object that contains all VPC peering requests from the cluster to AWS VPC's map(any) {} no

Outputs

Name Description
cluster_id The cluster ID
connection_strings Set of connection strings that your applications use to connect to this cluster
container_id The Network Peering Container ID
mongo_db_version Version of MongoDB the cluster runs, in major-version.minor-version format
mongo_uri Base connection string for the cluster
mongo_uri_updated Lists when the connection string was last updated
mongo_uri_with_options connection string for connecting to the Atlas cluster. Includes the replicaSet, ssl, and authSource query parameters in the connection string with values appropriate for the cluster
paused Flag that indicates whether the cluster is paused or not
srv_address Connection string for connecting to the Atlas cluster. The +srv modifier forces the connection to use TLS/SSL
state_name Current state of the cluster