{% extends "layouts/base.html" %} {% from 'helpers/_forms.html' import render_field %} {% block title %} New Stacks {% endblock %} {% block stylesheets %}{% endblock stylesheets %} {% block content %}
{% include 'includes/navigation.html' %}

Deploy Stack

Add reusable stacks or modules built to provide easy way to deployment infra

Stack Docs

Stack {{ stack['json']['stack_name'] }}

{{ render_field(form.deploy_name, autocomplete="off", class='form-control', placeholder='Deploy name') }}
{% set aws_squad_status_before = [] %} {% if "aws" in stack['json']['stack_name'] %} {% for aws_account in aws_content %} {% set __ = aws_squad_status_before.append(aws_account.squad) %} {% endfor %}
Squad
{% set aws_env_status_before = [] %} {% for aws_account in aws_content %} {% set __ = aws_env_status_before.append(aws_account.environment) %} {% endfor %}
Environment
{% endif %} {% set gcp_squad_status_before = [] %} {% if "gcp" in stack['json']['stack_name'] %} {% for gcp_account in gcp_content %} {% set __ = gcp_squad_status_before.append(gcp_account.squad) %} {% endfor %}
Squad
{% set gcp_env_status_before = [] %} {% for gcp_account in gcp_content %} {% set __ = gcp_env_status_before.append(gcp_account.environment) %} {% endfor %}
Environment
{% endif %} {% set azure_squad_status_before = [] %} {% if "azure" in stack['json']['stack_name'] %} {% for azure_account in azure_content %} {% set __ = azure_squad_status_before.append(azure_account.squad) %} {% endfor %}
Squad
{% set azure_env_status_before = [] %} {% for azure_account in azure_content %} {% set __ = azure_env_status_before.append(azure_account.environment) %} {% endfor %}
Environment
{% endif %} {% set custom_squad_status_before = [] %} {% if "custom" in stack['json']['stack_name'] %} {% for custom_account in custom_content %} {% set __ = custom_squad_status_before.append(custom_account.squad) %} {% endfor %}
Squad
{% set custom_env_status_before = [] %} {% for custom_account in custom_content %} {% set __ = custom_env_status_before.append(custom_account.environment) %} {% endfor %}
Environment
{% endif %}
{{ render_field(form.start_time, autocomplete="off", class='form-control', value='30 7 * * 0-4') }}
{{ render_field(form.destroy_time, autocomplete="off", class='form-control', value='30 18 * * 0-4') }}
{{ render_field(form.branch, autocomplete="off", class='form-control', placeholder='Branch name', value=stack['json']['branch']) }}
{{ render_field(form.project_path, autocomplete="off", class='form-control', placeholder='project path', value=stack['json']['project_path']) }}

Tfvars

Indicates the path and name of the tfvar file
{{ render_field(form.tfvar_file, autocomplete="off", class='form-control', value='') }}
{% if not sort_form %} {% set basic_variables = {} %} {% set advanced_variables = {} %} {% for key, value in data_json.items() %} {% if value.get('default') is none %} {% set _ = basic_variables.update({key: value}) %} {% else %} {% set _ = advanced_variables.update({key: value}) %} {% endif %} {% endfor %}

Basic Variables

{% for key, value in basic_variables.items() %}

{{ key }}

{{ value.get('description', "").split('|')[-1] }}
{% set field_type = value.get('type', 'string') %} {% if field_type == "bool" %} {% elif field_type.startswith("map") or "object" in field_type %} {% else %} {% endif %}
{% endfor %}

Advanced Variables

{% endif %}
{% include 'includes/footer.html' %}
{% endblock content %} {% block javascripts %} {% endblock javascripts %}