-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
INTMDB-212: Deprecation of Project IP Whitelist (#473)
* chore: updated vendor * deprecated project ip whitelist * docs: added guide for deprecation project whitelist * tests: added terratest for upgrading/import for whitelist and access list * updated the title Co-authored-by: Edgar López <[email protected]>
- Loading branch information
Showing
18 changed files
with
213 additions
and
1,108 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
examples/test-upgrade/v100/ip-whitelist-accestList/v091/main.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
resource "mongodbatlas_project" "test" { | ||
name = var.project_name | ||
org_id = var.org_id | ||
} | ||
|
||
|
||
resource "mongodbatlas_project_ip_whitelist" "test" { | ||
project_id = mongodbatlas_project.test.id | ||
ip_address = var.ip_address | ||
comment = var.comment | ||
} | ||
output "project_id" { | ||
value = mongodbatlas_project.test.id | ||
} | ||
output "entry" { | ||
value = mongodbatlas_project_ip_whitelist.test.ip_address | ||
} |
25 changes: 25 additions & 0 deletions
25
examples/test-upgrade/v100/ip-whitelist-accestList/v091/variables.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
variable "public_key" { | ||
description = "The public API key for MongoDB Atlas" | ||
default = "" | ||
} | ||
variable "private_key" { | ||
description = "The private API key for MongoDB Atlas" | ||
default = "" | ||
} | ||
variable "project_name" { | ||
description = "Atlas project name" | ||
default = "" | ||
} | ||
variable "org_id" { | ||
description = "The organization ID" | ||
default = "" | ||
} | ||
variable "ip_address" { | ||
description = "IP Address" | ||
default = "" | ||
} | ||
variable "comment" { | ||
description = "Comment" | ||
default = "" | ||
} | ||
|
9 changes: 9 additions & 0 deletions
9
examples/test-upgrade/v100/ip-whitelist-accestList/v091/versions.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
terraform { | ||
required_providers { | ||
mongodbatlas = { | ||
source = "mongodb/mongodbatlas" | ||
version = "0.9.1" | ||
} | ||
} | ||
required_version = ">= 0.15" | ||
} |
11 changes: 11 additions & 0 deletions
11
examples/test-upgrade/v100/ip-whitelist-accestList/v100/main.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
resource "mongodbatlas_project" "test" { | ||
name = var.project_name | ||
org_id = var.org_id | ||
} | ||
|
||
|
||
resource "mongodbatlas_project_ip_access_list" "test" { | ||
project_id = mongodbatlas_project.test.id | ||
ip_address = var.ip_address | ||
comment = var.comment | ||
} |
25 changes: 25 additions & 0 deletions
25
examples/test-upgrade/v100/ip-whitelist-accestList/v100/variables.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
variable "public_key" { | ||
description = "The public API key for MongoDB Atlas" | ||
default = "" | ||
} | ||
variable "private_key" { | ||
description = "The private API key for MongoDB Atlas" | ||
default = "" | ||
} | ||
variable "project_name" { | ||
description = "Atlas project name" | ||
default = "" | ||
} | ||
variable "org_id" { | ||
description = "The organization ID" | ||
default = "" | ||
} | ||
variable "ip_address" { | ||
description = "IP Address" | ||
default = "" | ||
} | ||
variable "comment" { | ||
description = "Comment" | ||
default = "" | ||
} | ||
|
9 changes: 9 additions & 0 deletions
9
examples/test-upgrade/v100/ip-whitelist-accestList/v100/versions.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
terraform { | ||
required_providers { | ||
mongodbatlas = { | ||
source = "mongodb/mongodbatlas" | ||
version = "0.1.0-dev" | ||
} | ||
} | ||
required_version = ">= 0.15" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
107 changes: 0 additions & 107 deletions
107
mongodbatlas/data_source_mongodbatlas_project_ip_whitelist.go
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.