Skip to content

Commit 3fbd99a

Browse files
committed
adding back in terraform
1 parent 5ed8b49 commit 3fbd99a

File tree

3 files changed

+149
-0
lines changed

3 files changed

+149
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Apply complete! Resources: 4 added, 0 changed, 0 destroyed.
2+
3+
Outputs:
4+
5+
connection_strings = [
6+
[
7+
{
8+
"aws_private_link" = {}
9+
"aws_private_link_srv" = {}
10+
"private" = ""
11+
"private_srv" = ""
12+
"standard" = "mongodb://myCluster-shard-00-00-xxxxx.mongodb.net:27017,myCluster-shard-00-01-xxxxx.mongodb.net:27017,myCluster-shard-00-02-xxxxx.mongodb.net:27017/?ssl=true&authSource=admin&replicaSet=myCluster-shard-0"
13+
"standard_srv" = "mongodb+srv://myCluster-xxxxx.mongodb.net"
14+
},
15+
],
16+
]
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Initializing the backend...
2+
3+
Initializing provider plugins...
4+
- Checking for available provider plugins...
5+
- Downloading plugin for provider "mongodbatlas" (terraform-providers/mongodbatlas) 0.5.1...
6+
7+
The following providers do not have any version constraints in configuration,
8+
so the latest version was installed.
9+
10+
To prevent automatic upgrades to new major versions that may contain breaking
11+
changes, it is recommended to add version = "..." constraints to the
12+
corresponding provider blocks in configuration, with the constraint strings
13+
suggested below.
14+
15+
* provider.mongodbatlas: version = "~> 0.5"
16+
17+
Terraform has been successfully initialized!
Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
Refreshing Terraform state in-memory prior to plan...
2+
The refreshed state will be used to calculate this plan, but will not be
3+
persisted to local or remote state storage.
4+
5+
6+
------------------------------------------------------------------------
7+
8+
An execution plan has been generated and is shown below.
9+
Resource actions are indicated with the following symbols:
10+
+ create
11+
12+
Terraform will perform the following actions:
13+
14+
# mongodbatlas_cluster.my_cluster will be created
15+
+ resource "mongodbatlas_cluster" "my_cluster" {
16+
+ advanced_configuration = (known after apply)
17+
+ auto_scaling_disk_gb_enabled = false
18+
+ backing_provider_name = "AWS"
19+
+ backup_enabled = false
20+
+ bi_connector = (known after apply)
21+
+ cluster_id = (known after apply)
22+
+ cluster_type = (known after apply)
23+
+ connection_strings = (known after apply)
24+
+ disk_size_gb = 2
25+
+ encryption_at_rest_provider = (known after apply)
26+
+ id = (known after apply)
27+
+ mongo_db_major_version = "4.2"
28+
+ mongo_db_version = (known after apply)
29+
+ mongo_uri = (known after apply)
30+
+ mongo_uri_updated = (known after apply)
31+
+ mongo_uri_with_options = (known after apply)
32+
+ name = "atlasClusterName"
33+
+ num_shards = 1
34+
+ paused = (known after apply)
35+
+ pit_enabled = (known after apply)
36+
+ project_id = (known after apply)
37+
+ provider_backup_enabled = false
38+
+ provider_disk_iops = (known after apply)
39+
+ provider_disk_type_name = (known after apply)
40+
+ provider_encrypt_ebs_volume = (known after apply)
41+
+ provider_instance_size_name = "M2"
42+
+ provider_name = "TENANT"
43+
+ provider_region_name = "providerRegionName"
44+
+ provider_volume_type = (known after apply)
45+
+ replication_factor = (known after apply)
46+
+ snapshot_backup_policy = (known after apply)
47+
+ srv_address = (known after apply)
48+
+ state_name = (known after apply)
49+
50+
+ labels {
51+
+ key = (known after apply)
52+
+ value = (known after apply)
53+
}
54+
55+
+ replication_specs {
56+
+ id = (known after apply)
57+
+ num_shards = (known after apply)
58+
+ zone_name = (known after apply)
59+
60+
+ regions_config {
61+
+ analytics_nodes = (known after apply)
62+
+ electable_nodes = (known after apply)
63+
+ priority = (known after apply)
64+
+ read_only_nodes = (known after apply)
65+
+ region_name = (known after apply)
66+
}
67+
}
68+
}
69+
70+
# mongodbatlas_database_user.my_user will be created
71+
+ resource "mongodbatlas_database_user" "my_user" {
72+
+ auth_database_name = "admin"
73+
+ id = (known after apply)
74+
+ password = (sensitive value)
75+
+ project_id = (known after apply)
76+
+ username = "jww"
77+
+ x509_type = "NONE"
78+
79+
+ labels {
80+
+ key = (known after apply)
81+
+ value = (known after apply)
82+
}
83+
84+
+ roles {
85+
+ collection_name = (known after apply)
86+
+ database_name = "admin"
87+
+ role_name = "atlasAdmin"
88+
}
89+
}
90+
91+
# mongodbatlas_project.my_project will be created
92+
+ resource "mongodbatlas_project" "my_project" {
93+
+ cluster_count = (known after apply)
94+
+ created = (known after apply)
95+
+ id = (known after apply)
96+
+ name = "atlasProjectName"
97+
+ org_id = "5d3716bfcf09a21576d7983e"
98+
}
99+
100+
# mongodbatlas_project_ip_whitelist.my_ipaddress will be created
101+
+ resource "mongodbatlas_project_ip_whitelist" "my_ipaddress" {
102+
+ aws_security_group = (known after apply)
103+
+ cidr_block = (known after apply)
104+
+ comment = "My IP Address"
105+
+ id = (known after apply)
106+
+ ip_address = "204.210.139.18"
107+
+ project_id = (known after apply)
108+
}
109+
110+
Plan: 4 to add, 0 to change, 0 to destroy.
111+
112+
------------------------------------------------------------------------
113+
114+
Note: You didn't specify an "-out" parameter to save this plan, so Terraform
115+
can't guarantee that exactly these actions will be performed if
116+
"terraform apply" is subsequently run.

0 commit comments

Comments
 (0)