Skip to content

Commit

Permalink
feat: new framework provider, main and acceptance tests to use mux se…
Browse files Browse the repository at this point in the history
…rver with existing sdk v2 provider (#1366)

* feat: define new framework provider, configure main and acceptance tests to use mux server with existing sdk v2 provider

* fix ConflictsWith attribute validation and parsing of list values in assume role schema

* refactor: addressing PR comments for linting and code cleanup

* fix: define provider version in framework provider Metadata function

* doc: add description for AWS Secrets Manager provider config attributes

* refactor mux provider fractory method name and comments

* doc: inlcude terraform version requirement in docs

* refactor: remove redundant else statement

* refactor: improve readability of methods in fw_provider + comments
AgustinBettati authored Aug 10, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 9c13dc0 commit 6feaad9
Showing 198 changed files with 1,807 additions and 1,074 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ Bugs should be filed under the Issues section of this repo.
Feature requests can be submitted at https://feedback.mongodb.com/forums/924145-atlas - just select the Terraform plugin as the category or vote for an already suggested feature.

## Requirements
- [Terraform](https://www.terraform.io/downloads.html) 0.13+
- [Terraform](https://www.terraform.io/downloads.html) 1.0+
- [Go](https://golang.org/doc/install) 1.20 (to build the provider plugin)

## Using the Provider
@@ -112,7 +112,7 @@ terraform {
source = "mongodb/mongodbatlas"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}
```

2 changes: 1 addition & 1 deletion examples/Atlas_Database_Users/versions.tf
Original file line number Diff line number Diff line change
@@ -5,5 +5,5 @@ terraform {
version = "~> 1.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}
2 changes: 1 addition & 1 deletion examples/Federated-Settings/versions.tf
Original file line number Diff line number Diff line change
@@ -9,5 +9,5 @@ terraform {
version = "~> 1.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}
2 changes: 1 addition & 1 deletion examples/MongoDB-Atlas-AWS-VPC-Peering/versions.tf
Original file line number Diff line number Diff line change
@@ -9,5 +9,5 @@ terraform {
version = "~> 5.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}
2 changes: 1 addition & 1 deletion examples/MongoDB-Atlas-GCP-VPC-Peering/versions.tf
Original file line number Diff line number Diff line change
@@ -9,5 +9,5 @@ terraform {
version = "~> 4.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}
2 changes: 1 addition & 1 deletion examples/atlas-advanced-cluster/global-cluster/versions.tf
Original file line number Diff line number Diff line change
@@ -5,5 +5,5 @@ terraform {
version = "~> 1.10.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}
2 changes: 1 addition & 1 deletion examples/atlas-advanced-cluster/multi-cloud/versions.tf
Original file line number Diff line number Diff line change
@@ -5,5 +5,5 @@ terraform {
version = "~> 1.10.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}
2 changes: 1 addition & 1 deletion examples/atlas-advanced-cluster/tenant-upgrade/versions.tf
Original file line number Diff line number Diff line change
@@ -5,5 +5,5 @@ terraform {
version = "~> 1.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}
2 changes: 1 addition & 1 deletion examples/atlas-alert-configurations/versions.tf
Original file line number Diff line number Diff line change
@@ -5,5 +5,5 @@ terraform {
version = "~> 1.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}
Original file line number Diff line number Diff line change
@@ -5,5 +5,5 @@ terraform {
version = "~> 1.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}
Original file line number Diff line number Diff line change
@@ -5,5 +5,5 @@ terraform {
version = "~> 1.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}
Original file line number Diff line number Diff line change
@@ -5,5 +5,5 @@ terraform {
version = "~> 1.10.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}
Original file line number Diff line number Diff line change
@@ -5,5 +5,5 @@ terraform {
version = "~> 1.10.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}
Original file line number Diff line number Diff line change
@@ -5,5 +5,5 @@ terraform {
version = "~> 1.10.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}
2 changes: 1 addition & 1 deletion examples/atlas-cloud-provider-access/aws/versions.tf
Original file line number Diff line number Diff line change
@@ -9,5 +9,5 @@ terraform {
version = "~> 5.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}
2 changes: 1 addition & 1 deletion examples/atlas-cluster/nvme-upgrade/versions.tf
Original file line number Diff line number Diff line change
@@ -5,5 +5,5 @@ terraform {
version = "~> 1.9"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}
2 changes: 1 addition & 1 deletion examples/atlas-cluster/tenant-upgrade/versions.tf
Original file line number Diff line number Diff line change
@@ -5,5 +5,5 @@ terraform {
version = "~> 1.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}
2 changes: 1 addition & 1 deletion examples/atlas-dataLake-roles/import/versions.tf
Original file line number Diff line number Diff line change
@@ -9,5 +9,5 @@ terraform {
version = "~> 1.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}
2 changes: 1 addition & 1 deletion examples/atlas-dataLake-roles/versions.tf
Original file line number Diff line number Diff line change
@@ -9,5 +9,5 @@ terraform {
version = "~> 1.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}
2 changes: 1 addition & 1 deletion examples/atlas-datalake-pipeline/versions.tf
Original file line number Diff line number Diff line change
@@ -5,5 +5,5 @@ terraform {
version = "~> 1.10.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}
Original file line number Diff line number Diff line change
@@ -9,6 +9,6 @@ terraform {
version = "~> 5.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}

Original file line number Diff line number Diff line change
@@ -5,5 +5,5 @@ terraform {
version = "~> 1.10.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}
Original file line number Diff line number Diff line change
@@ -9,6 +9,6 @@ terraform {
version = "~> 5.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}

2 changes: 1 addition & 1 deletion examples/atlas-ip-access-list/versions.tf
Original file line number Diff line number Diff line change
@@ -5,5 +5,5 @@ terraform {
version = "~> 1.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}
Original file line number Diff line number Diff line change
@@ -5,5 +5,5 @@ terraform {
version = "~> 1.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}
Original file line number Diff line number Diff line change
@@ -5,5 +5,5 @@ terraform {
version = "~> 1.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}
2 changes: 1 addition & 1 deletion examples/atlas-project-limits/versions.tf
Original file line number Diff line number Diff line change
@@ -5,5 +5,5 @@ terraform {
version = "~> 1.11"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}
2 changes: 1 addition & 1 deletion examples/atlas-provider-snapshot-export-bucket/versions.tf
Original file line number Diff line number Diff line change
@@ -9,5 +9,5 @@ terraform {
version = "~> 1.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}
2 changes: 1 addition & 1 deletion examples/atlas-provider-snapshot-export-job/versions.tf
Original file line number Diff line number Diff line change
@@ -9,5 +9,5 @@ terraform {
version = "~> 1.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}
2 changes: 1 addition & 1 deletion examples/aws-atlas-privatelink-serverless/versions.tf
Original file line number Diff line number Diff line change
@@ -9,5 +9,5 @@ terraform {
version = "~> 1.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}
Original file line number Diff line number Diff line change
@@ -9,5 +9,5 @@ terraform {
version = "~> 1.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}
2 changes: 1 addition & 1 deletion examples/aws-privatelink-endpoint/cluster/versions.tf
Original file line number Diff line number Diff line change
@@ -9,5 +9,5 @@ terraform {
version = "~> 1.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}
Original file line number Diff line number Diff line change
@@ -9,5 +9,5 @@ terraform {
version = "~> 1.10.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}
Original file line number Diff line number Diff line change
@@ -9,5 +9,5 @@ terraform {
version = "~> 1.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}
2 changes: 1 addition & 1 deletion examples/azure-atlas-privatelink-serverless/versions.tf
Original file line number Diff line number Diff line change
@@ -9,5 +9,5 @@ terraform {
version = "~> 1.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}
2 changes: 1 addition & 1 deletion examples/azure-atlas-privatelink/versions.tf
Original file line number Diff line number Diff line change
@@ -9,5 +9,5 @@ terraform {
version = "~> 1.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}
2 changes: 1 addition & 1 deletion examples/cluster-outage-simulation/versions.tf
Original file line number Diff line number Diff line change
@@ -5,5 +5,5 @@ terraform {
version = "~> 1.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}
2 changes: 1 addition & 1 deletion examples/federated-database-instance/versions.tf
Original file line number Diff line number Diff line change
@@ -9,5 +9,5 @@ terraform {
version = "~> 5.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}
2 changes: 1 addition & 1 deletion examples/federated-database-query-limit/versions.tf
Original file line number Diff line number Diff line change
@@ -5,5 +5,5 @@ terraform {
version = "~> 1.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}
2 changes: 1 addition & 1 deletion examples/gcp-atlas-privatelink/versions.tf
Original file line number Diff line number Diff line change
@@ -14,5 +14,5 @@ terraform {
version = "~> 4.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}
2 changes: 1 addition & 1 deletion examples/mongodbatlas-azure-vnet-peering/versions.tf
Original file line number Diff line number Diff line change
@@ -13,5 +13,5 @@ terraform {
version = "~> 3.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}
2 changes: 1 addition & 1 deletion examples/online-archives/versions.tf
Original file line number Diff line number Diff line change
@@ -5,5 +5,5 @@ terraform {
version = "~> 1.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}
2 changes: 1 addition & 1 deletion examples/starter/versions.tf
Original file line number Diff line number Diff line change
@@ -5,5 +5,5 @@ terraform {
version = "~> 1.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}
Original file line number Diff line number Diff line change
@@ -9,6 +9,6 @@ terraform {
version = "~> 5.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}

Original file line number Diff line number Diff line change
@@ -10,6 +10,6 @@ terraform {
version = "~> 5.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}

Original file line number Diff line number Diff line change
@@ -5,6 +5,6 @@ terraform {
version = "0.9.1"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}

Original file line number Diff line number Diff line change
@@ -5,6 +5,6 @@ terraform {
version = "~> 1.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}

Original file line number Diff line number Diff line change
@@ -5,6 +5,6 @@ terraform {
version = "0.9.1"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}

Original file line number Diff line number Diff line change
@@ -5,6 +5,6 @@ terraform {
version = "~> 1.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}

2 changes: 1 addition & 1 deletion examples/test-upgrade/v090/cluster/v082/versions.tf
Original file line number Diff line number Diff line change
@@ -5,5 +5,5 @@ terraform {
version = "~> 1.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}
2 changes: 1 addition & 1 deletion examples/test-upgrade/v090/cluster/v090/versions.tf
Original file line number Diff line number Diff line change
@@ -5,5 +5,5 @@ terraform {
version = "~> 1.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}
2 changes: 1 addition & 1 deletion examples/test-upgrade/v090/database-user/v082/versions.tf
Original file line number Diff line number Diff line change
@@ -5,5 +5,5 @@ terraform {
version = "0.8.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}
2 changes: 1 addition & 1 deletion examples/test-upgrade/v090/database-user/v090/versions.tf
Original file line number Diff line number Diff line change
@@ -5,6 +5,6 @@ terraform {
version = "0.9.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}

Original file line number Diff line number Diff line change
@@ -9,5 +9,5 @@ terraform {
version = "~> 5.0"
}
}
required_version = ">= 0.13"
required_version = ">= 1.0"
}
Loading

0 comments on commit 6feaad9

Please sign in to comment.