We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
terraform 0.11.14
resource "artifactory_permission_target" "test" { name = "test_permission" repo { includes_pattern = ["$test/**"] repositories = "myrepo1" actions = { groups = [ { name = "testgroup" permissions = ["read", "annotate", "write", "delete"] }, ] } } }
Should not fail. Needs to import the permission definition into the state file, for ex. see the same behavior with artifactory_group resource.
1 errors occurred: * artifactory_permission_target.test: 1 error occurred: * artifactory_permission_target.test: POST https://xxxxxxxxxxx/artifactory/api/v2/security/permissions/test_permission: 409 [{Status:409 Message:Can't create permission target 'test_permission' for type repo. It already exists.}]
terraform apply
The text was updated successfully, but these errors were encountered:
I'm not sure this is really the incorrect behaviour. You should be able to import the resource using the terraform import command
terraform import
Sorry, something went wrong.
No branches or pull requests
Community Note
Terraform Version
terraform 0.11.14
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
Should not fail. Needs to import the permission definition into the state file, for ex. see the same behavior with artifactory_group resource.
Actual Behavior
1 errors occurred:
* artifactory_permission_target.test: 1 error occurred:
* artifactory_permission_target.test: POST https://xxxxxxxxxxx/artifactory/api/v2/security/permissions/test_permission: 409 [{Status:409 Message:Can't create permission target 'test_permission' for type repo. It already exists.}]
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: