Skip to content

Commit

Permalink
Mongo outputs (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
sekka1 authored Jan 21, 2022
1 parent 205077a commit ac78c8a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions terraform-modules/aws/mongodb-atlas/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,12 @@ output "name" {
output "service_endpoint_dns" {
value = aws_vpc_endpoint.mongodbatlas.dns_entry[0]["dns_name"]
}

# https://registry.terraform.io/providers/mongodb/mongodbatlas/latest/docs/resources/cluster#example---return-a-connection-string
output "connect_string_aws_private_endpoint" {
value = mongodbatlas_cluster.cluster.connection_strings[0].private_endpoint[0].srv_connection_string
}

output "connect_string_standard" {
value = mongodbatlas_cluster.cluster.connection_strings[0].standard
}

0 comments on commit ac78c8a

Please sign in to comment.