Skip to content

Commit 85f5d1c

Browse files
committed
chore: Migrate to go tool, upgrade dependencies, update docs
1 parent 821a10d commit 85f5d1c

24 files changed

+157
-49
lines changed

GNUmakefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ lint:
1717

1818
.PHONY: generate
1919
generate:
20-
go generate ./...
20+
go generate ./internal/apiclient
21+
go generate ./internal/sentrydata
22+
go generate ./
2123

2224
.PHONY: fmt
2325
fmt:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Detailed documentation is available on the [Terraform provider registry](https:/
1818

1919
## Development
2020

21-
If you wish to work on the provider, you will need to install [Go](https://go.dev/doc/install) (We use >= 1.21) on your machine.
21+
If you wish to work on the provider, you will need to install [Go](https://go.dev/doc/install) on your machine.
2222

2323
We are currently in the process of migrating from the Terraform Plugin SDKv2 to the [Terraform Plugin Framework](https://github.com/hashicorp/terraform-plugin-framework). As part of this transition, any future resources and data sources should be implemented using the Terraform Plugin Framework, located in the `internal/provider` directory.
2424

docs/resources/dashboard.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,8 @@ Read-Only:
416416

417417
Import is supported using the following syntax:
418418

419+
The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example:
420+
419421
```shell
420422
# import using the dashboard id from the URL:
421423
# https://sentry.io/dashboard/[dashboard-id]

docs/resources/integration_opsgenie.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ resource "sentry_integration_opsgenie" "test" {
4949

5050
Import is supported using the following syntax:
5151

52+
The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example:
53+
5254
```shell
5355
# import using the organization slug from the URL:
5456
# https://sentry.io/api/0/organizations/[org-slug]/integrations/

docs/resources/integration_pagerduty.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ resource "sentry_integration_pagerduty" "test" {
4949

5050
Import is supported using the following syntax:
5151

52+
The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example:
53+
5254
```shell
5355
# import using the organization slug from the URL:
5456
# https://sentry.io/api/0/organizations/[org-slug]/integrations/

docs/resources/issue_alert.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,6 +1000,8 @@ Read-Only:
10001000

10011001
Import is supported using the following syntax:
10021002

1003+
The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example:
1004+
10031005
```shell
10041006
# import using the organization, project slugs and rule id from the URL:
10051007
# https://sentry.io/organizations/[org-slug]/alerts/rules/[project-slug]/[rule-id]/details/

docs/resources/key.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ Optional:
6262

6363
Import is supported using the following syntax:
6464

65+
The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example:
66+
6567
```shell
6668
# import using the organization, project slugs and key id from the URL:
6769
# https://sentry.io/settings/[org-slug]/projects/[project-slug]/keys/[key-id]/

docs/resources/metric_alert.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ Read-Only:
130130

131131
Import is supported using the following syntax:
132132

133+
The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example:
134+
133135
```shell
134136
# import using the organization, project slugs and rule id from the URL:
135137
# https://sentry.io/organizations/[org-slug]/projects/[project-slug]/

docs/resources/notification_action.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ resource "sentry_notification_action" "default" {
5757

5858
Import is supported using the following syntax:
5959

60+
The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example:
61+
6062
```shell
6163
terraform import sentry_notification_alert.default org-slug/action-id
6264
```

docs/resources/organization.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ resource "sentry_organization" "default" {
4343

4444
Import is supported using the following syntax:
4545

46+
The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example:
47+
4648
```shell
4749
# import using the organization slug from the URL:
4850
# https://sentry.io/organizations/[org-slug]/issues/

0 commit comments

Comments
 (0)