{% extends "base.html" %} {% block title %}Terraform repo{% endblock %} {% block content %}

← Settings

Terraform repo

{{ repo.path }}

Each root × environment found in the repository is listed below with the AWS account id and region guessed from its provider, backend and .tfvars files. Choose the IPLens account whose credentials the sync uses, or don't sync. Only the confirmed pairs are synced. Scanned {{ repo.discovered_at | localtime }}.

{% for e in envs %} {% else %} {% endfor %}
RootEnvironmentFound viaBackendGuessed account · region IPLens accountLast sync
{{ e.root_label }}{% if e.root_rel != e.root_label %}
{{ e.root_rel }}
{% endif %}
{{ e.env }}{% if not e.present %} not found in the latest scan{% endif %} {% if e.workspace %}
workspace {{ e.workspace }}
{% endif %} {% if e.var_file %}
{{ e.var_file }}
{% endif %}
{{ e.kinds | replace(',', ', ') }} {{ e.backend }}{% if e.backend_config %}
{{ e.backend_config }}
{% endif %} {% if e.backend == 's3' %}
extra backend-config{% if e.backend_extra_keys %} set: {{ e.backend_extra_keys | replace(',', ', ') }}{% endif %} {% if e.backend_extra_keys %}{% endif %}
{% endif %}
{{ e.guess_account or '—' }} · {{ e.guess_region or '—' }} {% if e.confirmed %}confirmed{% endif %} {% if e.status %} {{ e.status }} {% if e.status == 'ok' %}{{ e.resources }} id(s){% endif %} {% if e.status_detail %}
{{ e.status_detail }}
{% endif %} {% if e.status == 'wrong account' %}
Left out of drift. {% if e.suggest_label %}Suggested account: {{ e.suggest_label }}{% else %}No IPLens account resolves to AWS {{ e.state_account }} yet.{% endif %}
{% endif %}
{{ e.synced_at | localtime }}
{% else %}never{% endif %}
No Terraform roots found (a root has a backend, cloud or provider block outside modules/).
{% if envs %}

{% endif %}
{% if envs %}
S3 backends: the state object is read directly (s3:ListObjectsV2 / s3:GetObject, read-only). Other backends: only terraform init (read-only lock file), workspace select and show -json.
{% endif %} {% endblock %}