Skip to content

Commit c62f352

Browse files
martinstibbedependabot[bot]evertsdZuhairahmed
authored
Release staging v.1.8.2 (#1115)
* INTMDB-359: GCP Terraform Provider Version Upgrade Refactoring (#1098) * Chore(deps): Bump github.com/aws/aws-sdk-go from 1.40.56 to 1.44.216 (#1094) Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.40.56 to 1.44.216. - [Release notes](https://github.com/aws/aws-sdk-go/releases) - [Commits](aws/aws-sdk-go@v1.40.56...v1.44.216) --- updated-dependencies: - dependency-name: github.com/aws/aws-sdk-go dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Chore(deps): Bump go.mongodb.org/atlas from 0.21.0 to 0.23.1 (#1092) Bumps [go.mongodb.org/atlas](https://github.com/mongodb/go-client-mongodb-atlas) from 0.21.0 to 0.23.1. - [Release notes](https://github.com/mongodb/go-client-mongodb-atlas/releases) - [Changelog](https://github.com/mongodb/go-client-mongodb-atlas/blob/master/CHANGELOG.md) - [Commits](mongodb/go-client-mongodb-atlas@v0.21.0...v0.23.1) --- updated-dependencies: - dependency-name: go.mongodb.org/atlas dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Chore(deps): Bump golang.org/x/net from 0.1.0 to 0.7.0 (#1071) Bumps [golang.org/x/net](https://github.com/golang/net) from 0.1.0 to 0.7.0. - [Release notes](https://github.com/golang/net/releases) - [Commits](golang/net@v0.1.0...v0.7.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Remove AWS Google terraform provider tests deps --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * INTMDB-581: plan fails if API key created by mongodbatlas_api_key resource is deleted outside of Terraform (#1097) * Add additional delete of state if read does not find API key * Chore(deps): Bump github.com/aws/aws-sdk-go from 1.40.56 to 1.44.216 (#1094) Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.40.56 to 1.44.216. - [Release notes](https://github.com/aws/aws-sdk-go/releases) - [Commits](aws/aws-sdk-go@v1.40.56...v1.44.216) --- updated-dependencies: - dependency-name: github.com/aws/aws-sdk-go dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Chore(deps): Bump go.mongodb.org/atlas from 0.21.0 to 0.23.1 (#1092) Bumps [go.mongodb.org/atlas](https://github.com/mongodb/go-client-mongodb-atlas) from 0.21.0 to 0.23.1. - [Release notes](https://github.com/mongodb/go-client-mongodb-atlas/releases) - [Changelog](https://github.com/mongodb/go-client-mongodb-atlas/blob/master/CHANGELOG.md) - [Commits](mongodb/go-client-mongodb-atlas@v0.21.0...v0.23.1) --- updated-dependencies: - dependency-name: go.mongodb.org/atlas dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Chore(deps): Bump golang.org/x/net from 0.1.0 to 0.7.0 (#1071) Bumps [golang.org/x/net](https://github.com/golang/net) from 0.1.0 to 0.7.0. - [Release notes](https://github.com/golang/net/releases) - [Commits](golang/net@v0.1.0...v0.7.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Add additional warning if key deleted --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Make comment parameter optional (#1103) * Change wait states to cover IN_PROGRESS MIGRATING (#1104) * INTMDB-617: Can't unset auto_scaling (#1112) * Change wait states to cover IN_PROGRESS MIGRATING * Add clearing of MinInstanceSize MaxInstanceSize * INTMDB-638: DataDog ThirdPartyIntegration Documentation update (#1105) * Updated third party integration documentation for datadog regions * Consolidated third-party-integration examples and added one for datadog * Updated documentation link to go to latest api docs * Quote acceptable regions on third-party-integration for datadog Co-authored-by: Zuhair Ahmed <[email protected]> * Update examples/third-party-integration/datadog/README.md Co-authored-by: Zuhair Ahmed <[email protected]> --------- Co-authored-by: Zuhair Ahmed <[email protected]> * INTMDB-648: Errors when creating or importing timeseries online archive (#1114) * INTMDB-648: Add support for collection_type * Update resource_mongodbatlas_online_archive.go * Update website/docs/d/online_archive.html.markdown Co-authored-by: Zuhair Ahmed <[email protected]> * Update website/docs/d/online_archives.html.markdown Co-authored-by: Zuhair Ahmed <[email protected]> * Update website/docs/r/online_archive.html.markdown Co-authored-by: Zuhair Ahmed <[email protected]> --------- Co-authored-by: Zuhair Ahmed <[email protected]> * Update go.sum * update mod.go --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Dosty Everts <[email protected]> Co-authored-by: Zuhair Ahmed <[email protected]>
1 parent e8aeaea commit c62f352

32 files changed

+188
-627
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Example - DataDog third party integration with MongoDB Atlas Cluster
2+
3+
## Dependencies
4+
5+
* Terraform v0.13
6+
* A [DataDog](https://www.datadoghq.com/) API Key.
7+
* As of March 2023, worth noting that this is *not* an Application Key. API Keys can be created and accessed via Organization Settings from DataDog UI (not from MongoDB Atlas).
8+
* A MongoDB Atlas account - provider.mongodbatlas: version = "~> 1.8"
9+
10+
## Usage
11+
12+
**1\. Ensure your AWS and MongoDB Atlas credentials are set up.**
13+
14+
This can be done using environment variables:
15+
16+
```bash
17+
export MONGODB_ATLAS_PUBLIC_KEY="xxxx"
18+
export MONGODB_ATLAS_PRIVATE_KEY="xxxx"
19+
```
20+
21+
... or follow as in the `variables.tf` file and create **terraform.tfvars** file with all the variable values, ex:
22+
```
23+
public_key = "<MONGODB_ATLAS_PUBLIC_KEY>"
24+
private_key = "<MONGODB_ATLAS_PRIVATE_KEY>"
25+
project_id = "<MONGODB_ATLAS_PROJECT_ID>"
26+
datadog_api_key = "<DATADOG_API_KEY>"
27+
```
28+
29+
**2\. Review the Terraform plan.**
30+
31+
Execute the below command and ensure you are happy with the plan.
32+
33+
``` bash
34+
$ terraform plan
35+
```
36+
This project currently does the below deployments:
37+
38+
- MongoDB cluster - M10
39+
- Third Party Integration
40+
41+
**4\. Execute the Terraform apply.**
42+
43+
Now execute the plan to provision the AWS and Atlas resources.
44+
45+
``` bash
46+
$ terraform apply
47+
```
48+
49+
**5\. Destroy the resources.**
50+
51+
Once you are finished your testing, ensure you destroy the resources to avoid unnecessary charges.
52+
53+
``` bash
54+
$ terraform destroy
55+
```
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
resource "mongodbatlas_advanced_cluster" "my_cluster" {
2+
project_id = var.project_id
3+
name = var.cluster_name
4+
cluster_type = "REPLICASET"
5+
6+
replication_specs {
7+
zone_name = "Zone 1"
8+
num_shards = 1
9+
10+
region_configs {
11+
provider_name = "AWS"
12+
region_name = "US_EAST_1"
13+
priority = 7
14+
15+
electable_specs {
16+
instance_size = "M10"
17+
node_count = 3
18+
}
19+
}
20+
}
21+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
resource "mongodbatlas_third_party_integration" "test-datadog" {
2+
project_id = var.project_id
3+
type = "DATADOG"
4+
api_key = var.datadog_api_key
5+
region = var.datadog_region
6+
}
File renamed without changes.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
variable "public_key" {
2+
description = "MongoDB Atlas authentication Public API key"
3+
}
4+
variable "private_key" {
5+
description = "MongoDB Atlas authentication Private API key"
6+
}
7+
variable "project_id" {
8+
description = "MongoDB Atlas project id"
9+
}
10+
variable "datadog_api_key" {
11+
description = "Datadog api key"
12+
}
13+
variable "datadog_region" {
14+
description = "Datadog region"
15+
default = "US5"
16+
}
17+
variable "cluster_name" {
18+
description = "Cluster to test regional mode"
19+
default = "datadog-test-cluster"
20+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
terraform {
2+
required_providers {
3+
mongodbatlas = {
4+
source = "mongodb/mongodbatlas"
5+
}
6+
google = {
7+
source = "hashicorp/google"
8+
}
9+
}
10+
required_version = ">= 0.13"
11+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)