add examples

pull/101/head
Muhammad Atif Ali 2 years ago
parent 818563d6db
commit bf876b2ad4

@ -59,3 +59,19 @@ jf pip install requests
```shell
pip install requests
```
### Using the access token in other terraform resources
JFrog Access token is also available as a terraform output. You can use it in other terraform resources. For example, you can use it to configure an Artifactory docker registry with the [docker terraform provider](https://registry.terraform.io/providers/kreuzwerker/docker/latest/docs).
```hcl
provider "docker" {
...
registry_auth {
address = "https://YYYY.jfrog.io/artifactory/api/docker/REPO-KEY"
username = module.jfrog.username
password = module.jfrog.access_token
}
}
```

@ -80,3 +80,8 @@ output "access_token" {
description = "value of the JFrog access token"
value = data.coder_external_auth.jfrog.access_token
}
output "username" {
description = "value of the JFrog username"
value = local.username
}

@ -68,3 +68,19 @@ npm install prettier
go get github.com/golang/example/hello
pip install requests
```
### Using the access token in other terraform resources
JFrog Access token is also available as a terraform output. You can use it in other terraform resources. For example, you can use it to configure an Artifactory docker registry with the [docker terraform provider](https://registry.terraform.io/providers/kreuzwerker/docker/latest/docs).
```hcl
provider "docker" {
...
registry_auth {
address = "https://YYYY.jfrog.io/artifactory/api/docker/REPO-KEY"
username = module.jfrog.username
password = module.jfrog.access_token
}
}
```

@ -113,3 +113,8 @@ output "access_token" {
description = "value of the JFrog access token"
value = artifactory_scoped_token.me.access_token
}
output "username" {
description = "value of the JFrog username"
value = local.username
}

Loading…
Cancel
Save