:earth_africa: :clipboard: A web dashboard to inspect Terraform States
:earth_africa: :clipboard: A web dashboard to inspect Terraform States
A web dashboard to inspect Terraform States
Website: https://terraboard.io
Caution: Terraboard's Docker registry was migrated from Dockerhub to GHCR! All new tags will be now pushed here. You can still access to old tags on the legacy Dockerhub repository.
Table of contentTerraboard is a web dashboard to visualize and query Terraform states. It currently features:
It currently supports several remote state backend providers:
Terraboard is now able to handle multiple buckets/providers configuration! Check configuration section for more details.
The overview presents all the state files in the S3 bucket, by most recent modification date.
The search view allows to find resources by various criteria.
The state view presents details of a Terraform state at a given version.
From the state view, you can compare the current state version with another version.
Independently of the location of your statefiles, Terraboard needs to store an internal version of its dataset. For this purpose it requires a PostgreSQL database. Data resiliency is not paramount though as this dataset can be rebuilt upon your statefiles at anytime.
.tfstate suffixs3:GetObjects3:ListBuckets3:ListBucketVersionss3:GetObjectVersiondynamodb:Scan access to that table.Terraboard currently supports configuration in three different ways:
test/ subdirectory.Important: all flags/environment variables related to the providers settings aren't compatible with multi-provider configuration! Instead, you must use the YAML config file to be able to configure multiples buckets/providers. YAML config is able to load values from environments variables.
The precedence of configurations is as described below.
In order for Terraboard to import states from multiples buckets or even providers, you must use the YAML configuration method:
CONFIG_FILE environment variable or the -c/--config-file flag to point to a valid YAML config file.# Needed since MinIO doesn't support versioning or locking
provider:
no-locks: true
no-versioning: true
aws:
- endpoint: http://minio:9000/
region: ${AWS_DEFAULT_REGION}
s3:
- bucket: test-bucket
force-path-style: true
file-extension:
- .tfstate
- endpoint: http://minio:9000/
region: eu-west-1
s3:
- bucket: test-bucket2
force-path-style: true
file-extension:
- .tfstateIn the case of AWS, don't forget to set the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables.
That's it! Terraboard will now fetch these two buckets on DB refresh. You can also mix providers like AWS and Gitlab or anything else.
You can find a ready-to-use Docker example with two MinIO buckets in the test/multiple-minio-buckets/ sub-folder.
-V, --version Display version.-c, --config-file <default: *$CONFIG_FILE*> Config File path--no-versioning <default: *$TERRABOARD_NO_VERSIONING*> Disable versioning support from Terraboard (useful for S3 compatible providers like MinIO)--no-locks <default: *$TERRABOARD_NO_LOCKS*> Disable locks support from Terraboard (useful for S3 compatible providers like MinIO)-l, --log-level <default: *"info"*> Set log level ('debug', 'info', 'warn', 'error', 'fatal', 'panic').--log-format <default: *"plain"*> Set log format ('plain', 'json').--db-host <default: *"db"*> Database host.--db-port <default: *"5432"*> Database port.--db-user <default: *"gorm"*> Database user.--db-password <default: *$DB_PASSWORD*> Database password.--db-name <default: *"gorm"*> Database name.--db-sslmode <default: *"require"*> Database SSL mode.--no-sync Do not sync database.--sync-interval <default: *"1"*> DB sync interval (in minutes)--aws-access-key <default: *$AWS_ACCESS_KEY_ID*> AWS account access key.--aws-secret-access-key <default: *$AWS_SECRET_ACCESS_KEY*> AWS secret account access key.--aws-session-token <default: *$AWS_SESSION_TOKEN*> AWS session token.--dynamodb-table <default: *$AWS_DYNAMODB_TABLE*> AWS DynamoDB table for locks.--aws-endpoint <default: *$AWS_ENDPOINT*> AWS endpoint.--aws-region <default: *$AWS_REGION*> AWS region.--aws-role-arn <default: *$APP_ROLE_ARN*> Role ARN to Assume.--aws-external-id <default: *$AWS_EXTERNAL_ID*> External ID to use when assuming role.--s3-bucket <default: *$AWS_BUCKET*> AWS S3 bucket.--key-prefix <default: *$AWS_KEY_PREFIX*> AWS Key Prefix.--file-extension <default: *".tfstate"*> File extension(s) of state files.--force-path-style <default: *$AWS_FORCE_PATH_STYLE*> Force path style S3 bucket calls.--tfe-address <default: *$TFE_ADDRESS*> Terraform Enterprise address for states access--tfe-token <default: *$TFE_TOKEN*> Terraform Enterprise Token for states access--tfe-organization <default: *$TFE_ORGANIZATION*> Terraform Enterprise organization for states access--gcs-bucket Google Cloud bucket to search--gcp-sa-key-path <default: *$GCP_SA_KEY_PATH*> The path to the service account to use to connect to Google Cloud Platform--gitlab-address <default: *"https://gitlab.com"*> GitLab address (root)--gitlab-token <default: *$GITLAB_TOKEN*> Token to authenticate upon GitLab-p, --port <default: *"8080"*> Port to listen on.--base-url <default: *"/"*> Base URL.--logout-url <default: *$TERRABOARD_LOGOUT_URL*> Logout URL.-h, --help Show this help messageNo open issues yet, or sync has not completed.