Skip to content

Commit

Permalink
Merge pull request #113 from jfrog/deprecate_myjfrog_ip_allowlist_res…
Browse files Browse the repository at this point in the history
…ource

Deprecate `platform_myjfrog_ip_allowlist` resource
  • Loading branch information
alexhung authored Jul 19, 2024
2 parents 4519e53 + 05e9cac commit d0c611e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 1.10.0 (July 21, 2024). Tested on Artifactory 7.84.17 with Terraform 1.9.2 and OpenTofu 1.7.3

NOTES:

* resource/platform_myjfrog_ip_allowlist is being deprecated and is moved to new [MyJFrog provider](https://registry.terraform.io/providers/jfrog/myjfrog/latest). Use the `myjfrog_ip_allowlist` resource there instead. PR: [#113](https://github.com/jfrog/terraform-provider-platform/pull/113)

## 1.9.0 (July 19, 2024). Tested on Artifactory 7.84.17 with Terraform 1.9.2 and OpenTofu 1.7.3

IMPROVEMENTS:
Expand Down
3 changes: 3 additions & 0 deletions docs/resources/myjfrog_ip_allowlist.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ description: |-
Provides a MyJFrog IP allowlist https://jfrog.com/help/r/jfrog-hosting-models-documentation/configure-the-ip/cidr-allowlist resource to manage list of allow IP/CIDR addresses. To use this resource, you need an access token. Only a Primary Admin can generate MyJFrog tokens. For more information, see Generate a Token in MyJFrog https://jfrog.com/help/r/jfrog-hosting-models-documentation/generate-a-token-in-myjfrog.
->This resource is supported only on the Cloud (SaaS) platform.
~>The rate limit is 5 times per hour for actions that result in a successful outcome (for Create, Update, and Delete actions). See Allowlist REST API https://jfrog.com/help/r/jfrog-rest-apis/allowlist-rest-api for full list of limitations.
!>This resource is being deprecated and moved to the new provider jfrog/myjfrog https://registry.terraform.io/providers/jfrog/myjfrog. Use myjfrog_ip_allowlist resource there instead.
---

# platform_myjfrog_ip_allowlist (Resource)
Expand All @@ -16,6 +17,8 @@ Provides a MyJFrog [IP allowlist](https://jfrog.com/help/r/jfrog-hosting-models-

~>The rate limit is **5 times per hour** for actions that result in a successful outcome (for Create, Update, and Delete actions). See [Allowlist REST API](https://jfrog.com/help/r/jfrog-rest-apis/allowlist-rest-api) for full list of limitations.

!>This resource is being deprecated and moved to the new provider [jfrog/myjfrog](https://registry.terraform.io/providers/jfrog/myjfrog). Use `myjfrog_ip_allowlist` resource there instead.

## Example Usage

```terraform
Expand Down
4 changes: 3 additions & 1 deletion pkg/platform/resource_myjfrog_ip_allowlist.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ func (r *ipAllowListResource) Schema(ctx context.Context, req resource.SchemaReq
MarkdownDescription: "Provides a MyJFrog [IP allowlist](https://jfrog.com/help/r/jfrog-hosting-models-documentation/configure-the-ip/cidr-allowlist) resource to manage list of allow IP/CIDR addresses. " +
"To use this resource, you need an access token. Only a Primary Admin can generate MyJFrog tokens. For more information, see [Generate a Token in MyJFrog](https://jfrog.com/help/r/jfrog-hosting-models-documentation/generate-a-token-in-myjfrog).\n\n" +
"->This resource is supported only on the Cloud (SaaS) platform.\n\n" +
"~>The rate limit is **5 times per hour** for actions that result in a successful outcome (for Create, Update, and Delete actions). See [Allowlist REST API](https://jfrog.com/help/r/jfrog-rest-apis/allowlist-rest-api) for full list of limitations.",
"~>The rate limit is **5 times per hour** for actions that result in a successful outcome (for Create, Update, and Delete actions). See [Allowlist REST API](https://jfrog.com/help/r/jfrog-rest-apis/allowlist-rest-api) for full list of limitations.\n\n" +
"!>This resource is being deprecated and moved to the new provider [jfrog/myjfrog](https://registry.terraform.io/providers/jfrog/myjfrog). Use `myjfrog_ip_allowlist` resource there instead.",
DeprecationMessage: "This resource is being deprecated and moved to the new provider 'jfrog/myjfrog'. Use 'myjfrog_ip_allowlist' resource there instead.",
}
}

Expand Down
2 changes: 1 addition & 1 deletion sample.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
platform = {
source = "jfrog/platform"
version = "1.4.1"
version = "1.9.0"
}
}
}
Expand Down

0 comments on commit d0c611e

Please sign in to comment.