tfc-cloud-agent

cloudposse/tfc-cloud-agent/kubernetes

Terraform Module HCL KUBERNETES

Provision a Terraform Cloud Agent on an existing Kubernetes cluster.

Install
module "tfc-cloud-agent" {
source = "cloudposse/tfc-cloud-agent/kubernetes"
version = "0.4.0"
}
plain text: /constructs/tfmod-cloudposse-tfc-cloud-agent-kubernetes/install.txt
⭐ Source on GitHub 📦 Registry page
README

terraform-kubernetes-tfc-cloud-agent ![Latest Release](https://github.com/cloudposse/terraform-kubernetes-tfc-cloud-agent/releases/latest) ![Slack Community](https://slack.cloudposse.com) ![Discourse Forum](https://ask.sweetops.com/) [![README Header][readme_header_img]][readme_header_link] [![Cloud Posse][logo]](https://cpco.io/homepage) This project installs the Terraform Cloud Agent on an existing Kubernetes cluster. You must provide your own Kubernetes provider configuration in your project! NOTE: Requires Terraform Cloud Business or Terraform Enterprise subscription. --- This project is part of our comprehensive "SweetOps" approach towards DevOps. [ ][share_email] [ ][share_googleplus] [ ][share_facebook] [ ][share_reddit] [ ][share_linkedin] [ ][share_twitter] ![Terraform Open Source

Inputs (32)
NameTypeDescriptionDefault
namestringSolution name, e.g. 'app' or 'jenkins' required
id_length_limitnumberLimit `id` to this many characters. Set to `0` for unlimited length. Set to `nul required
kubernetes_namespacestringKubernetes namespace override required
stagestringStage, e.g. 'prod', 'staging', 'dev', OR 'source', 'build', 'test', 'deploy', 'r required
tfc_agent_data_dirstringThe path to a directory to store all agent-related data, including Terraform con required
enabledboolSet to false to prevent the module from creating any resources required
namespacestringNamespace, which could be your organization name or abbreviation, e.g. 'eg' or ' required
deployment_namestringOverride the deployment name in Kubernetes required
delimiterstringDelimiter to be used between `namespace`, `environment`, `stage`, `name` and `at required
label_orderlist(string)The naming order of the id output and Name tag. Defaults to ["namespace", "envir required
regex_replace_charsstringRegex to replace chars with empty string in `namespace`, `environment`, `stage` required
environmentstringEnvironment, e.g. 'uw2', 'us-west-2', OR 'prod', 'staging', 'dev', 'UAT' required
agent_cli_argslistExtra command line arguments to pass to tfc-agent[]
tfc_agent_tokenstringThe agent token to use when making requests to the Terraform Cloud API. This tok""
resource_limits_cpustringKubernetes deployment resource hard CPU limit"1"
resource_requests_memorystringKubernetes deployment resource memory requests"50Mi"
attributeslist(string)Additional attributes (e.g. `1`)[]
agent_envsmapA map of any extra environment variables to pass to the TFC agent{}
tfc_agent_log_levelstringThe log verbosity expressed as a level string. Level options include "trace", "d"info"
namespace_creation_enabledboolEnable this if the Kubernetes namespace does not already existfalse
replicasnumberNumber of replicas in the Kubernetes deployment1
agent_imagestringName and tag of Terraform Cloud Agent docker image"hashicorp/tfc-agent:latest"
contextobject({ enabled Single object for setting entire context at once. See description of individual { "additional_tag_map": {}, "attribu
tfc_agent_disable_updateboolDisable automatic core updates.false
tfc_addressstringThe HTTP or HTTPS address of the Terraform Cloud API."https://app.terraform.io"
resource_requests_cpustringKubernetes deployment resource CPU requests"250m"
resource_limits_memorystringKubernetes deployment resource hard memory limit"512Mi"
tagsmap(string)Additional tags (e.g. `map('BusinessUnit','XYZ')`{}
deployment_annotationsmapAnnotations to add to the Kubernetes deployment{}
additional_tag_mapmap(string)Additional tags for appending to tags_as_list_of_maps. Not added to `tags`.{}
service_account_annotationsmapAnnotations to add to the Kubernetes service account{}
tfc_agent_singleboolEnable single mode. This causes the agent to handle at most one job and immediatfalse
Outputs (2)
service_account_name — Name of the Kubernetes service account
namespace — Name of the Kubernetes namespace
Resources (4)
kubernetes_deploymentkubernetes_namespacekubernetes_secretkubernetes_service_account
Details
FrameworkTerraform Module
LanguageHCL
Version0.4.0
Cloud KUBERNETES
★ Stars11
Forks12
Total downloads5.2k
Inputs32
Outputs2
Resources4
Examples1
LicenseApache-2.0
Namespacecloudposse
Updated