Terraform Enterprise Consolidated Services Architecture
Terraform Enterprise is adopting a simplified architecture where all server
services are consolidated into a single container called
terraform-enterprise
. This change improves
how you install and operate Terraform Enterprise, and includes an immediate
security benefit of running containers as a non-root user. This architecture is the default
configuration in the v202309-1 release, and you can disable it using the consolidated_services_enabled
setting until v202401-1,
when we will remove the setting.
Changes
When consolidated_services_enabled
is enabled:
Terraform Enterprise services run inside the
terraform-enterprise
container.Containers run as a non-root user.
When log-forwarding is not enabled, all service logs are logged to STDOUT, are in
json-file
format and include a newcomponent
attribute that specifies which Terraform Enterprise service emitted the log.The log below is an example of a log from the
atlas
component and is in escaped JSON format.The log below is an example of a log from the
sidekiq
component and is a JSON formatted log.The log below is an example of an Audit Log from the
atlas
component and is in JSON escaped format.The following components emit log messages in escaped JSON format:
If using the log-forwarding feature, your service logs are sent to your configured log aggregation service and are in the format that the fluent-bit
plugin uses.
In previous releases, the container_name
attribute contained the name of the Terraform Enterprise service that emitted the log. In the v202309-1 release and beyond, the container_name
attribute is terraform-enterprise
, and the component
metadata attribute logs the name of the service responsible for emitting that log.
For example, prior to v202309-1 your log metadata resembles:
After v202309-1, the log metadata resembles:
What hasn’t changed?
Terraform runs continue to execute in isolated, short-lived containers.
How can I disable consolidated services?
Disable the
consolidated_services_enabled
setting.Restart Terraform Enterprise.
Frequently Asked Questions (F.A.Q)
What should I test to verify if I'm impacted by this change?
We advise users to evaluate the impact this will have on your monitoring and log forwarding implementation.
All server services are now included in a single container. If you are monitoring container metrics, please note that you will have fewer containers reporting information. Run containers are not impacted by this change, they remain separate and short-lived.
Service logs have been consolidated into a single log stream.
Where should I seek help with issues?
Contact HashiCorp support for help with any issues.
Will this always be an optional architecture?
No. In v202401-1, consolidated services will become the default and only option.