-
-
Notifications
You must be signed in to change notification settings - Fork 149
Open
Description
According to the resource documentation, creating a sentry_organization_repository resource for a GitLab integration should be supported, but the provider returns an Unable to create, got error: POST https://sentry.io/api/0/organizations/XXX/repos/: 400 map[error_type:validation errors:map[__all__:Error Communicating with GitLab (HTTP 404): 404 Not Found]] as follows:
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# sentry_organization_repository.XXX will be created
+ resource "sentry_organization_repository" "XXX" {
+ id = (known after apply)
+ identifier = "XXX"
+ integration_id = "NNN"
+ integration_type = "gitlab"
+ organization = "XXX"
}
Plan: 1 to add, 0 to change, 0 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
sentry_organization_repository.XXX: Creating...
╷
│ Error: Client error
│
│ with sentry_organization_repository.XXX,
│ on projects_sandbox.tf line 48, in resource "sentry_organization_repository" "XXX":
│ 48: resource "sentry_organization_repository" "XXX" {
│
│ Unable to create, got error: POST https://sentry.io/api/0/organizations/XXX/repos/: 400 map[error_type:validation errors:map[__all__:Error Communicating with GitLab (HTTP 404): 404 Not Found]]
Manually adding the repo to an existing GitLab integration works from the Sentry UI without an issue.
Deleting the added repo and re-running Terraform as aforementioned results in the same error; this issue is reproducible and does not seem related to Gitlab token.
Metadata
Metadata
Assignees
Labels
No labels