Skip to content

Commit 2298cf8

Browse files
authored
Migrate Terraform SDK to Framework (#54)
1 parent 16d1950 commit 2298cf8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+6739
-4346
lines changed

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
linters-settings:
22
errcheck:
33
# https://github.com/hashicorp/terraform-provider-aws/blob/9c9a116a857fb838a0e7d1cfbf420c2524f0abe1/.golangci.yml#L37-L39
4-
ignore: github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema:ForceNew|Set,fmt:.*,io:Close
4+
#ignore: github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema:ForceNew|Set,fmt:.*,io:Close
55

66
run:
77
timeout: 10m

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,24 @@ Port is the Developer Platform meant to supercharge your DevOps and Developers,
1414
## Requirements
1515

1616
- [Terraform](https://www.terraform.io/downloads.html) >= 0.13.x
17-
- [Go](https://golang.org/doc/install) >= 1.16 (to build the provider plugin)
17+
- [Go](https://golang.org/doc/install) >= 1.19 (to build the provider plugin)
1818
- [Port Credentials](https://docs.getport.io/build-your-software-catalog/sync-data-to-catalog/api/#find-your-port-credentials)
1919

2020
## Installation
2121

22-
Terraform utilizes the Terraform Registry to download and install providers. To install the `port-labs` provider, copy and paste the following code into your Terraform file:
22+
Terraform utilizes the Terraform Registry to download and install providers. To install the `port` provider, copy and paste the following code into your Terraform file:
2323

2424
```terraform
2525
terraform {
2626
required_providers {
27-
port-labs = {
27+
port = {
2828
source = "port-labs/port-labs"
29-
version = "~> 0.10.3"
29+
version = "~> 1.0.0"
3030
}
3131
}
3232
}
3333
34-
provider "port-labs" {
34+
provider "port" {
3535
client_id = "{YOUR CLIENT ID}" # or set the environment variable PORT_CLIENT_ID
3636
secret = "{YOUR CLIENT SECRET}" # or set the environment variable PORT_CLIENT_SECRET
3737
}

docs/index.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
page_title: "port-labs Provider"
44
subcategory: ""
55
description: |-
6+
Interact with Port-labs
67
---
78

89
# port-labs Provider
@@ -15,10 +16,10 @@ description: |-
1516

1617
### Required
1718

18-
- `client_id` (String)
19-
- `secret` (String, Sensitive)
19+
- `client_id` (String) Client ID for Port-labs
20+
- `secret` (String, Sensitive) Client Secret for Port-labs
2021

2122
### Optional
2223

2324
- `base_url` (String)
24-
- `token` (String, Sensitive)
25+
- `token` (String, Sensitive) Token for Port-labs

docs/resources/action.md

Lines changed: 0 additions & 78 deletions
This file was deleted.

docs/resources/blueprint.md

Lines changed: 0 additions & 138 deletions
This file was deleted.

docs/resources/entity.md

Lines changed: 0 additions & 66 deletions
This file was deleted.

0 commit comments

Comments
 (0)