Skip to content

Terraform module to manage the following Terraform Cloud/Enterprise resources (tfe_organization, tfe_organization_membership, tfe_organization_token)

License

Notifications You must be signed in to change notification settings

dhoppeIT/terraform-tfe-organization

Repository files navigation

terraform-tfe-organization

Terraform module to manage the following Terraform Cloud/Enterprise resources:

  • tfe_organization
  • tfe_organization_membership
  • tfe_organization_token

Graph

Graph

Usage

Copy and paste into your Terraform configuration, insert the variables and run terraform init:

module "tfe_organization" {
  source  = "dhoppeIT/organization/tfe"
  version = "~> 0.1"

  name  = "dhoppeIT"
  email = "[email protected]"
}

Requirements

Name Version
terraform >= 1.0
tfe ~> 0.26

Providers

Name Version
tfe 0.38.0

Modules

No modules.

Resources

Name Type
tfe_organization.default resource
tfe_organization_membership.default resource
tfe_organization_token.default resource

Inputs

Name Description Type Default Required
collaborator_auth_policy Authentication policy string "password" no
cost_estimation_enabled Whether or not the cost estimation feature is enabled for all workspaces in the organization bool false no
email Admin email address string n/a yes
force_regenerate If set to true, a new token will be generated even if a token already exists bool false no
members Email of the users to add list(string) [] no
name Name of the organization string n/a yes
owners_team_saml_role_id The name of the 'owners' team string null no
send_passing_statuses_for_untriggered_speculative_plans Whether or not to send VCS status updates for untriggered speculative plans bool false no
session_remember_minutes Session expiration number 20160 no
session_timeout_minutes Session timeout after inactivity number 20160 no

Outputs

Name Description
id The organization membership ID
name The name of the organization
token The generated token
user_id The ID of the users associated with the organization membership

Authors

Created and maintained by Dennis Hoppe.

License

Apache 2 licensed. See LICENSE for full details.