Hello,
I would like to create an Artifactory permission target resource, and followed the example provided here
However I am getting this validation error. What could be the issue?
Thanks.
resource "artifactory_permission_target" "test-perm" {
name = "test-perm"
repo = {
includes_pattern = ["foo/**"]
excludes_pattern = ["bar/**"]
repositories = ["example-repo-local"]
actions = {
users = [
{
name = "anonymous"
permissions = ["read", "write"]
},
]
groups = [
{
name = "readers"
permissions = ["read"]
},
]
}
}
$ terraform validate
Error: Unsupported argument
on artifactory//main.tf line 287, in resource "artifactory_permission_target" "test-perm":
287: repo = {
An argument named "repo" is not expected here. Did you mean to define a block
of type "repo"?
Error: Unsupported argument
on artifactory//main.tf line 309, in resource "artifactory_permission_target" "test-perm":
309: build = {
An argument named "build" is not expected here. Did you mean to define a block
of type "build"?