-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
404 when attempting to create an artifactory_group #1129
Comments
@finn-block Thanks for the report. Odd, this shouldn't been any error from basic resource creation. Let me try to reproduce. |
@finn-block Using the following configuration, I am able to create a group with no error: terraform {
required_providers {
artifactory = {
source = "jfrog/artifactory"
version = "12.4.2"
}
}
}
provider "artifactory" {
// supply ARTIFACTORY_ACCESS_TOKEN / JFROG_ACCESS_TOKEN / ARTIFACTORY_API_KEY and ARTIFACTORY_URL / JFROG_URL as env vars
}
resource "artifactory_group" "test-group" {
name = "test-group"
} alexh@alexh-mac terraform-provider-artifactory % terraform apply
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:
# artifactory_group.test-group will be created
+ resource "artifactory_group" "test-group" {
+ admin_privileges = false
+ auto_join = false
+ id = (known after apply)
+ name = "test-group"
+ policy_manager = false
+ realm = "internal"
+ reports_manager = false
+ watch_manager = false
# (3 unchanged attributes hidden)
}
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
artifactory_group.test-group: Creating...
artifactory_group.test-group: Creation complete after 0s [id=test-group]
Apply complete! Resources: 1 added, 0 changed, 0 destroyed. Terraform: 1.9.5 Does the access token has admin permission? |
I believe so? How would I check? I used my admin account (which can create groups) and went to edit profile -> generate identity token. |
@finn-block Ah, identity token. Let me test with that. |
Hey @alexhung , thanks for looking at this! I think I just found the problem: when copy/pasting example code, I neglected to update the protocol scheme in the artifactory URL. |
Describe the bug
I am trying to create a group in our JFrog hosted Artifactory instance with Terraform. When I run
terraform apply
, it gives me an error.Terraform file:
Terraform apply:
Requirements for and issue
curl
it at$host/artifactory/api/system/version
Expected behavior
I expect the group to be created and an error not to occur
Additional context
The text was updated successfully, but these errors were encountered: