Skip to content

Commit

Permalink
Merge pull request #11 from jfrog/fix-jpd-doc
Browse files Browse the repository at this point in the history
Add missing TF sample and import for 'jpd' resource
  • Loading branch information
alexhung authored Jul 16, 2024
2 parents d276a3e + edb8e1c commit a4764db
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 1.0.2 (July 16, 2024). Tested on Artifactory 7.84.17 with Terraform 1.9.2 and OpenTofu 1.7.3

IMPROVEMENTS:

* resource/missioncontrol_jpd: Fix configuration sample and import in documentation. PR: [#11](https://github.com/jfrog/terraform-provider-mission-control/pull/11)

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

IMPROVEMENTS:
Expand Down
30 changes: 29 additions & 1 deletion docs/resources/jpd.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,27 @@ Provides a [JFrog Platform Deployment](https://jfrog.com/help/r/jfrog-platform-a

~>Supported on the Self-Hosted platform, with an Enterprise X or Enterprise+ license.


## Example Usage

```terraform
resource "missioncontrol_jpd" "my-jpd" {
name = "MyJPD"
url = "https://myinstance.jfrog.io/"
token = "my-join-key"
location = {
city_name = "San Francisco"
country_code = "US"
latitude = 37.7749
longitude = 122.4194
}
tags = [
"prod",
"dev",
]
}
```

<!-- schema generated by tfplugindocs -->
## Schema
Expand Down Expand Up @@ -90,3 +110,11 @@ Read-Only:
- `code` (String)
- `message` (String)
- `warnings` (Set of String)

## Import

Import is supported using the following syntax:

```shell
terraform import missioncontrol_jpd.my-jpd MyJPD
```
1 change: 1 addition & 0 deletions examples/resources/missioncontrol_jpd/import.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
terraform import missioncontrol_jpd.my-jpd MyJPD
17 changes: 17 additions & 0 deletions examples/resources/missioncontrol_jpd/resource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
resource "missioncontrol_jpd" "my-jpd" {
name = "MyJPD"
url = "https://myinstance.jfrog.io/"
token = "my-join-key"

location = {
city_name = "San Francisco"
country_code = "US"
latitude = 37.7749
longitude = 122.4194
}

tags = [
"prod",
"dev",
]
}

0 comments on commit a4764db

Please sign in to comment.