Skip to content

Commit b69ccab

Browse files
authored
fix(docs): add missing scoped token resource to JFrog docs (#11334)
1 parent ed3ecfc commit b69ccab

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/platforms/jfrog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@ provider "artifactory" {
6969
url = "https://${var.jfrog_host}/artifactory"
7070
access_token = "${var.artifactory_access_token}"
7171
}
72+
73+
resource "artifactory_scoped_token" "me" {
74+
# This is hacky, but on terraform plan the data source gives empty strings,
75+
# which fails validation.
76+
username = length(local.artifactory_username) > 0 ? local.artifactory_username : "plan"
77+
}
7278
```
7379

7480
When pushing the template, you can pass in the variables using the `--var` flag:

0 commit comments

Comments
 (0)