Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release staging v1.5.0 #887

Merged
merged 14 commits into from
Nov 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/automated-test-acceptances.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,47 @@ jobs:
PAGER_DUTY_SERVICE_KEY: ${{ secrets.PAGER_DUTY_SERVICE_KEY }}
MONGODB_ATLAS_API_KEYS_IDS: ${{ secrets.MONGODB_ATLAS_API_KEYS_IDS }}
run: make testacc

acceptance-tests-gov:
if: ${{ github.event.label.name == 'run-testacc-gov' }}
needs: [ authorize ]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
- name: Acceptance Tests Gov
env:
SKIP_TEST_EXTERNAL_CREDENTIALS: ${{ secrets.SKIP_TEST_EXTERNAL_CREDENTIALS }}
SKIP_TEST_IMPORT: ${{ secrets.SKIP_TEST_IMPORT }}
SKIP_TEST: ${{ secrets.SKIP_TEST }}
MONGODB_ATLAS_PUBLIC_KEY: ${{ secrets.MONGODB_ATLAS_PUBLIC_KEY_GOV }}
MONGODB_ATLAS_PRIVATE_KEY: ${{ secrets.MONGODB_ATLAS_PRIVATE_KEY_GOV }}
MONGODB_ATLAS_PROJECT_ID: ${{ secrets.MONGODB_ATLAS_PROJECT_ID_GOV }}
MONGODB_ATLAS_ORG_ID: ${{ secrets.MONGODB_ATLAS_ORG_ID_GOV }}
MONGODB_ATLAS_DB_USERNAME: ${{ secrets.MONGODB_ATLAS_DB_USERNAME }}
MONGODB_ATLAS_TEAMS_IDS: ${{ secrets.MONGODB_ATLAS_TEAMS_IDS }}
MONGODB_ATLAS_LDAP_HOSTNAME: ${{ secrets.MONGODB_ATLAS_LDAP_HOSTNAME }}
MONGODB_ATLAS_LDAP_USERNAME: ${{ secrets.MONGODB_ATLAS_LDAP_USERNAME }}
MONGODB_ATLAS_LDAP_PASSWORD: ${{ secrets.MONGODB_ATLAS_LDAP_PASSWORD }}
MONGODB_ATLAS_LDAP_CA_CERTIFICATE: ${{ secrets.MONGODB_ATLAS_LDAP_CA_CERTIFICATE }}
MONGODB_ATLAS_LDAP_PORT: ${{ secrets.MONGODB_ATLAS_LDAP_PORT }}
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}
AWS_VPC_ID: ${{ secrets.AWS_VPC_ID }}
AWS_VPC_CIDR_BLOCK: ${{ secrets.AWS_VPC_CIDR_BLOCK }}
AWS_REGION: ${{ secrets.AWS_REGION_GOV }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_CUSTOMER_MASTER_KEY_ID: ${{ secrets.AWS_CUSTOMER_MASTER_KEY_ID }}
CA_CERT: ${{ secrets.CA_CERT }}
MONGODB_ATLAS_ENABLE_BETA: ${{ secrets.MONGODB_ATLAS_ENABLE_BETA }}
ACCTEST_TIMEOUT: ${{ secrets.ACCTEST_TIMEOUT }}
PAGER_DUTY_SERVICE_KEY: ${{ secrets.PAGER_DUTY_SERVICE_KEY }}
MONGODB_ATLAS_API_KEYS_IDS: ${{ secrets.MONGODB_ATLAS_API_KEYS_IDS }}
MONGODB_ATLAS_BASE_URL: ${{ secrets.MONGODB_ATLAS_BASE_URL }}
MONGODB_ATLAS_PROJECT_OWNER_ID_GOV: ${{ secrets.MONGODB_ATLAS_PROJECT_OWNER_ID_GOV }}
run: make testaccgov

64 changes: 52 additions & 12 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,62 @@
## [v1.5.0](https://github.com/mongodb/terraform-provider-mongodbatlas/tree/v1.5.0) (2022-11-01)

[Full Changelog](https://github.com/mongodb/terraform-provider-mongodbatlas/compare/v1.4.6...v1.5.0)

**Fixed**

- INTMDB-224 Support AtlasGov with Terraform [\#865](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/865)
- INTMDB-314 Feature add: Add ability to upgrade shared/TENANT tiers for clusters and advanced clusters [\#874](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/874)
- INTMDB-326 Review code/tests and docs for resource_mongodbatlas_search_index [\#891](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/891)
- INTMDB-334 Determine best path forward for GCP PSC timeouts and implement [\#859](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/859)
- INTMDB-364 Add support for serverless private endpoints (AWS) [\#314](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/314)
- INTMDB-370 Docs not complete for cloud_backup_snapshot_restore_job [\#870](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/870)
- INTMDB-373 Add new notification parameters to the mongodbatlas_alert_config resource [\#883](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/883)
- INTMDB-377 Release 1.5 (both pre and then GA) [\#](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/)
- INTMDB-378 Document for users how to get a pre-existing container id [\#883](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/883)
- INTMDB-394 MS Teams alert support in terraform provider is missing [\#](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/)
- INTMDB-405 Add cluster label to advanced clusters [\#857](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/857)
- INTMDB-406 MILLION_RPU unit isn't supported by provider #854 [\#854](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/854)
- INTMDB-403 Update third_party_integration.markdown [\#851](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/851)

**Closed issues:**
- MS Teams alert support in terraform provider is missing [\#827](https://github.com/mongodb/terraform-provider-mongodbatlas/issues/827)
- MILLION_RPU unit isn't supported by provider not_stale [\#854](https://github.com/mongodb/terraform-provider-mongodbatlas/issues/854)

**Merged pull requests:**
- Chore(deps): Bump octokit/request-action from 2.1.6 to 2.1.7 [\#868](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/868)
- Docs: fix custom_dns_configuration_cluster_aws [\#860](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/860)
- INTMDB-403: Update third_party_integration.markdown [\#851](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/851)
- INTMDB-404: mongodbatlas_advanced_cluster doc updates [\#852](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/852)
- Docs: fix custom_dns_configuration_cluster_aws [\#860](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/860)
- Relying on atlas api for unit validation on alert configuration [\#862](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/862)
- INTMD-428: doc update to "mongodbatlas_projects" [\#869](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/869)
- Adding a github actions to automatically close stale issues/PRs based on CLOUDP-79100 [\#872](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/872)
- Chore(deps): Bump github.com/gruntwork-io/terratest from 0.40.22 to 0.40.24 [\#875](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/875)
- Update cluster.html.markdown [\#878](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/878)
- INTMDB-378: Add link for How To Guide for existing container ID [\#883](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/883)
- Encryption_at_rest M10+ limit doc update [\#886](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/886)
- Add APIx1 CODEOWNER [\#894](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/894)
- Chore(deps): Bump golangci/golangci-lint-action from 3.2.0 to 3.3.0 [\#897](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/897)

## [v1.4.6](https://github.com/mongodb/terraform-provider-mongodbatlas/tree/v1.4.6) (2022-09-19)

[Full Changelog](https://github.com/mongodb/terraform-provider-mongodbatlas/compare/v1.4.5...v1.4.6)

**Fixed**
- INTMDB-387 - [Terraform] Enable Azure NVME for Atlas Dedicated clusters [\#833](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/833)
- INTMDB-342 - [Terraform] Update TestAccDataSourceMongoDBAtlasPrivateEndpointRegionalMode_basic test to use a new project to prevent conflicts [\#837](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/837)
- INTMDB-347 - [Terraform] cloud_backup is not being correctly imported - issue [\#768](https://github.com/mongodb/terraform-provider-mongodbatlas/issues/768)
- INTMDB-354 - [Terraform] Update docs around what requires an API key access list [\#834](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/834)
- INTMDB-387 - Enable Azure NVME for Atlas Dedicated clusters [\#833](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/833)
- INTMDB-342 - Update TestAccDataSourceMongoDBAtlasPrivateEndpointRegionalMode_basic test to use a new project to prevent conflicts [\#837](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/837)
- INTMDB-347 - Cloud_backup is not being correctly imported - issue [\#768](https://github.com/mongodb/terraform-provider-mongodbatlas/issues/768)
- INTMDB-354 - Update docs around what requires an API key access list [\#834](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/834)
- INTMDB-363 - [Updated Feature] Add serverless backup to mongodbatlas_serverless_instance [\#830](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/830)
- INTMDB-379 - [Terraform] Release 1.4.6 (both pre and then GA)
- INTMDB-381 - [Terraform] Customer is unable to disable backup auto export [\#823](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/823)
- INTMDB-383 - [Terraform] Update the BYOK/encryption at rest resource [\#805](https://github.com/mongodb/terraform-provider-mongodbatlas/issues/805)
- INTMDB-379 - Release 1.4.6 (both pre and then GA)
- INTMDB-381 - Customer is unable to disable backup auto export [\#823](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/823)
- INTMDB-383 - Update the BYOK/encryption at rest resource [\#805](https://github.com/mongodb/terraform-provider-mongodbatlas/issues/805)
- INTMDB-385 - use_org_and_group_names_in_export_prefix is not working for a customer
- INTMDB-386 - [Terraform] Add new role types to invitation verification [\#840](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/840)
- INTMDB-371 - [Terraform] Timeout when creating privatelink_endpoint [\#806](https://github.com/mongodb/terraform-provider-mongodbatlas/issues/806)
- INTMDB-372 - [Terraform] Fix failing test for testAccMongoDBAtlasAlertConfigurationConfigWithMatchers [\#836](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/836)
- INTMDB-358 - [terraform] Upgrade to go1.18 [\#835](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/835)
- INTMDB-391 - [Terraform] Doc Fix for teams.html.markdown [\#838](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/838)
- INTMDB-386 - Add new role types to invitation verification [\#840](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/840)
- INTMDB-371 - Timeout when creating privatelink_endpoint [\#806](https://github.com/mongodb/terraform-provider-mongodbatlas/issues/806)
- INTMDB-372 - Fix failing test for testAccMongoDBAtlasAlertConfigurationConfigWithMatchers [\#836](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/836)
- INTMDB-358 - Upgrade to go1.18 [\#835](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/835)
- INTMDB-391 - Doc Fix for teams.html.markdown [\#838](https://github.com/mongodb/terraform-provider-mongodbatlas/pull/838)

**Closed issues:**
- importing existing cluster does not populate backup status #768 [\#768](https://github.com/mongodb/terraform-provider-mongodbatlas/issues/768)
Expand Down
5 changes: 5 additions & 0 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ testacc: fmtcheck
@$(eval VERSION=acc)
TF_ACC=1 go test $(TEST) -v -parallel 20 $(TESTARGS) -timeout $(ACCTEST_TIMEOUT) -cover -ldflags="$(LINKER_FLAGS)"

.PHONY: testaccgov
testaccgov: fmtcheck
@$(eval VERSION=acc)
TF_ACC=1 go test $(TEST) -run 'TestAccResourceMongoDBAtlasGovProject_CreateWithProjectOwner' -v -parallel 1 "$(TESTARGS) -timeout $(ACCTEST_TIMEOUT) -cover -ldflags=$(LINKER_FLAGS) "

.PHONY: fmt
fmt:
@echo "==> Fixing source code with gofmt..."
Expand Down
32 changes: 32 additions & 0 deletions examples/atlas-advanced-cluster/tenant-upgrade/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# MongoDB Atlas Provider -- Advanced Cluster Tenant Upgrade
This example creates a project and cluster. It is intended to show how to upgrade from shared, aka tenant, to dedicated tier.

Variables Required:
- `atlas_org_id`: ID of the Atlas organization
- `public_key`: Atlas public key
- `private_key`: Atlas private key
- `provider_name`: Name of provider to use for cluster (TENANT, AWS, GCP)
- `backing_provider_name`: If provider_name is tenant, the backing provider (AWS, GCP)
- `provider_instance_size_name`: Size of the cluster (Shared: M0, M2, M5, Dedicated: M10+.)

For this example, first we'll start out on the shared tier, then upgrade to a dedicated tier.

Utilize the following to execute a working example, replacing the org id, public and private key with your values:

Apply with the following `terraform.tfvars` to first create a shared tier cluster:
```
atlas_org_id = "627a9687f7f7f7f774de306f14"
public_key = <REDACTED>
private_key = <REDACTED>
provider_name = "TENANT"
backing_provider_name = "AWS"
provider_instance_size_name = "M2"
```

Apply with the following `terraform.tfvars` to upgrade the shared tier cluster you just created to dedicated tier:
```
atlas_org_id = "627a9687f7f7f7f774de306f14"
public_key = <REDACTED>
private_key = <REDACTED>
provider_name = "GCP"
provider_instance_size_name = "M10"
29 changes: 29 additions & 0 deletions examples/atlas-advanced-cluster/tenant-upgrade/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
provider "mongodbatlas" {
public_key = var.public_key
private_key = var.private_key
}

resource "mongodbatlas_advanced_cluster" "cluster" {
project_id = mongodbatlas_project.project.id
name = "ClusterToUpgrade"
cluster_type = "REPLICASET"

replication_specs {
num_shards = 1

region_configs {
electable_specs {
instance_size = var.provider_instance_size_name
}
provider_name = var.provider_name
backing_provider_name = var.backing_provider_name
region_name = "US_EAST_1"
priority = 7
}
}
}

resource "mongodbatlas_project" "project" {
name = "TenantUpgradeTest"
org_id = var.atlas_org_id
}
22 changes: 22 additions & 0 deletions examples/atlas-advanced-cluster/tenant-upgrade/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
variable "atlas_org_id" {
description = "Atlas organization id"
default = ""
}
variable "public_key" {
description = "Public API key to authenticate to Atlas"
}
variable "private_key" {
description = "Private API key to authenticate to Atlas"
}
variable "provider_name" {
description = "Atlas cluster provider name"
default = "AWS"
}
variable "backing_provider_name" {
description = "Atlas cluster backing provider name"
default = null
}
variable "provider_instance_size_name" {
description = "Atlas cluster provider instance name"
default = "M10"
}
8 changes: 8 additions & 0 deletions examples/atlas-advanced-cluster/tenant-upgrade/versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
terraform {
required_providers {
mongodbatlas = {
source = "mongodb/mongodbatlas"
}
}
required_version = ">= 0.13"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# MongoDB Atlas Provider -- Cloud Backup Snapshot
This example creates a project, cluster, cloud provider snapshot, and a restore job for said snapshot. The cluster is configured to use cloud backup and point in time restore.

Variables Required:
- `org_id`: ID of atlas organization
- `project_name`: Name of the project
- `cluster_name`: Name of the cluster
- `point_in_time_utc_seconds`: Point in time to restore to, a number of seconds since unix epoch.

In order to utilize the backup restore job via point in time, fist you need a backup with which to restore.
This example has been configured to only create the backup restore if `point_in_time_utc_seconds` is a non-zero number.
As such, utilize the following example `terraform.tfvars` and pseudo-code to execute a workign example:

Example `terraform.tfvars`
```
org_id = "627a9687f7f7f7f774de306f14"
project_name = "cloud_backup_snapshot_v110"
cluster_name = "v110-cluster"
point_in_time_utc_seconds = 0
```

- Run `terraform apply`
- Update `point_in_time_utc_seconds` to the [current epoch time](https://www.epoch101.com/)
- Run `terraform apply`

You'll now have a project, cluster, backup snapshot, and restore job pointing to specific point in time which to restore.
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# This will Create a Project, Cluster, cloud backup snapshot and restore job

resource "mongodbatlas_project" "project_test" {
name = var.project_name
org_id = var.org_id
}

resource "mongodbatlas_cluster" "cluster_test" {
project_id = mongodbatlas_project.project_test.id
name = var.cluster_name

# Provider Settings "block"
provider_name = "AWS"
provider_region_name = "US_EAST_1"
provider_instance_size_name = "M10"
cloud_backup = true # enable cloud provider snapshots
pit_enabled = true
}


resource "mongodbatlas_cloud_backup_snapshot" "test" {
project_id = mongodbatlas_cluster.cluster_test.project_id
cluster_name = mongodbatlas_cluster.cluster_test.name
description = "My description"
retention_in_days = "1"
}

resource "mongodbatlas_cloud_backup_snapshot_restore_job" "test" {
count = (var.point_in_time_utc_seconds == 0 ? 0 : 1)
project_id = mongodbatlas_cloud_backup_snapshot.test.project_id
cluster_name = mongodbatlas_cloud_backup_snapshot.test.cluster_name
snapshot_id = mongodbatlas_cloud_backup_snapshot.test.id

delivery_type_config {
point_in_time = true
target_cluster_name = mongodbatlas_cluster.cluster_test.name
target_project_id = mongodbatlas_cluster.cluster_test.project_id
point_in_time_utc_seconds = var.point_in_time_utc_seconds
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
variable "project_name" {
description = "Atlas project name"
default = ""
}
variable "org_id" {
description = "The organization ID"
default = ""
}
variable "cluster_name" {
description = "Cluster name"
default = ""
}
variable "point_in_time_utc_seconds" {
description = "Point in time timestamp for snapshot_restore_job"
default = 0
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
terraform {
required_providers {
mongodbatlas = {
source = "mongodb/mongodbatlas"
version = "~> 1.4.6"
}
}
required_version = ">= 0.13"
}
33 changes: 33 additions & 0 deletions examples/atlas-cluster/tenant-upgrade/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# MongoDB Atlas Provider -- Cluster Tenant Upgrade
This example creates a project and cluster. It is intended to show how to upgrade from shared, aka tenant, to dedicated tier.

Variables Required:
- `atlas_org_id`: ID of the Atlas organization
- `public_key`: Atlas public key
- `private_key`: Atlas private key
- `provider_name`: Name of provider to use for cluster (TENANT, AWS, GCP)
- `backing_provider_name`: If provider_name is tenant, the backing provider (AWS, GCP)
- `provider_instance_size_name`: Size of the cluster (Shared: M0, M2, M5, Dedicated: M10+.)

For this example, first we'll start out on the shared tier, then upgrade to a dedicated tier.


Utilize the following to execute a working example, replacing the org id, public and private key with your values:

Apply with the following `terraform.tfvars` to first create a shared tier cluster:
```
atlas_org_id = "627a9687f7f7f7f774de306f14"
public_key = <REDACTED>
private_key = <REDACTED>
provider_name = "TENANT"
backing_provider_name = "AWS"
provider_instance_size_name = "M2"
```

Apply with the following `terraform.tfvars` to upgrade the shared tier cluster you just created to dedicated tier:
```
atlas_org_id = "627a9687f7f7f7f774de306f14"
public_key = <REDACTED>
private_key = <REDACTED>
provider_name = "GCP"
provider_instance_size_name = "M10"
19 changes: 19 additions & 0 deletions examples/atlas-cluster/tenant-upgrade/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
provider "mongodbatlas" {
public_key = var.public_key
private_key = var.private_key
}

resource "mongodbatlas_cluster" "cluster" {
project_id = mongodbatlas_project.project.id
name = "ClusterToUpgrade"
cluster_type = "REPLICASET"
provider_name = var.provider_name
backing_provider_name = var.backing_provider_name
provider_region_name = "US_EAST_1"
provider_instance_size_name = var.provider_instance_size_name
}

resource "mongodbatlas_project" "project" {
name = "TenantUpgradeTest"
org_id = var.atlas_org_id
}
Loading