back
terraform {
required_providers {
github = ">= 4.6.0"
}
}
top
module "github_user" {
source = "./modules/github/d/github_user"
# username - (required) is a type of string
username = null
}
top
variable "username" {
description = "(required)"
type = string
}
top
data "github_user" "this" {
# username - (required) is a type of string
username = var.username
}
top
output "avatar_url" {
description = "returns a string"
value = data.github_user.this.avatar_url
}
output "bio" {
description = "returns a string"
value = data.github_user.this.bio
}
output "blog" {
description = "returns a string"
value = data.github_user.this.blog
}
output "company" {
description = "returns a string"
value = data.github_user.this.company
}
output "created_at" {
description = "returns a string"
value = data.github_user.this.created_at
}
output "email" {
description = "returns a string"
value = data.github_user.this.email
}
output "followers" {
description = "returns a number"
value = data.github_user.this.followers
}
output "following" {
description = "returns a number"
value = data.github_user.this.following
}
output "gpg_keys" {
description = "returns a list of string"
value = data.github_user.this.gpg_keys
}
output "gravatar_id" {
description = "returns a string"
value = data.github_user.this.gravatar_id
}
output "id" {
description = "returns a string"
value = data.github_user.this.id
}
output "location" {
description = "returns a string"
value = data.github_user.this.location
}
output "login" {
description = "returns a string"
value = data.github_user.this.login
}
output "name" {
description = "returns a string"
value = data.github_user.this.name
}
output "node_id" {
description = "returns a string"
value = data.github_user.this.node_id
}
output "public_gists" {
description = "returns a number"
value = data.github_user.this.public_gists
}
output "public_repos" {
description = "returns a number"
value = data.github_user.this.public_repos
}
output "site_admin" {
description = "returns a bool"
value = data.github_user.this.site_admin
}
output "ssh_keys" {
description = "returns a list of string"
value = data.github_user.this.ssh_keys
}
output "updated_at" {
description = "returns a string"
value = data.github_user.this.updated_at
}
output "this" {
value = github_user.this
}
top