{# ssm_status is None until the status is loaded: rendering a page runs no command. #} {% if not ssm_status %}

Checking…

{% else %}
Session Manager plugin
{% if ssm_status.plugin.found %} {{ ssm_status.plugin.version }} {{ "app-managed" if ssm_status.plugin.managed else "on PATH" }}: {{ ssm_status.plugin.path }} {% elif ssm_status.plugin.path %} does not run {{ ssm_status.plugin.path }} {% else %} not found {% endif %}
AWS CLI
{% if ssm_status.aws.found %}{{ ssm_status.aws.version or "found" }} {% else %}not found Install AWS CLI v2 on this machine.{% endif %}
AWS profile{% if ssm_status.profile.profile %} {{ ssm_status.profile.profile }}{% endif %}
{% if ssm_status.profile.state == "ok" %}{{ ssm_status.profile.message }} {% elif ssm_status.profile.state == "sso_expired" %}{{ ssm_status.profile.message }} Run {{ ssm_status.profile.hint }} {% elif ssm_status.profile.state == "failed" %}Failed {{ ssm_status.profile.message }} {% else %}{{ ssm_status.profile.message }}{% endif %}
{% endif %}