Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Terraform module that will create TFC workspace and proper role to auth to the AWS

License

Notifications You must be signed in to change notification settings

pogosoftware/terraform-tfe-workspace

Repository files navigation

Requirements

Name Version
terraform ~>1.7.0
tfe ~> 0.52

Providers

Name Version
tfe ~> 0.52

Modules

No modules.

Resources

Name Type
tfe_variable.tfc_aws_apply_role_arn resource
tfe_variable.tfc_aws_plan_role_arn resource
tfe_variable.tfc_aws_provider_auth resource
tfe_variable.tfc_aws_region resource
tfe_variable.tfc_aws_workload_identity_audience resource
tfe_variable.this resource
tfe_workspace.this resource
tfe_github_app_installation.gha_installation data source
tfe_organization.this data source

Inputs

Name Description Type Default Required
allow_destroy_plan Determinate to allow destroy play or not. Defaults to false bool false no
aws_apply_role_arn The ARN of the role to use for the apply phase of a run.Required if tfc_aws_provider_auth is set to true. string null no
aws_plan_role_arn The ARN of the role to use for the plan phase of a run. Required if tfc_aws_provider_auth is set to true. string null no
aws_provider_auth Determinate to inject AWS creadentials or not. Defaults to false bool false no
aws_region The name of AWS region string "eu-central-1" no
aws_workload_identity_audience Will be used as the aud claim for the identity token. Required if tfc_aws_provider_auth is set to true. Defaults to aws.workload.identity string "aws.workload.identity" no
project_id The name of TFC project string n/a yes
queue_all_runs Determinates to queue all runs or not. Defaults to false bool false no
remote_state_consumer_ids The ID of workspace to share the terraform state with set(string) null no
speculative_enabled Indicates whether this workspace allows speculative plans bool true no
tag_names The list of TFC workspace tags. Defaults to [] list(string) [] no
terraform_reqiured_version The version of terraform required to run tasks. Defaults to ~> 1.7.0 string "~>1.7.0" no
trigger_patterns List of glob patterns that describe the files Terraform Cloud monitors for changes. Trigger patterns are always appended to the root directory of the repository list(string) [] no
vcs_repos Settings for the workspace's VCS repository
object({
identifier = string
branch = string
})
null no
working_directory A relative path that Terraform will execute within string "" no
workspace The name of TFC workspace string n/a yes
workspace_variables The workspace variables
map(object({
value = string
category = string
description = optional(string)
}))
{} no

Outputs

Name Description
id The ID of workspace