solutions_builder/template_root/copier.yaml (87 lines of code) (raw):
# questions
folder_name:
type: str
help: What is your project folder name?
project_name:
type: str
help: What is your project name? (Spaces are allowed.)
default: "{{folder_name}}"
project_id:
type: str
help: What is your Google Cloud project ID?
default: "{{folder_name}}"
# project_number:
# type: str
# help: What is your Google Cloud project number? (Leave it as empty if the project hasn't created yet.)
# default: "{{project_id | get_project_number}}"
region:
type: str
help: Which Google Cloud region?
default: us-central1
default_deploy_method:
type: str
help: Default deploy method? (cloudrun or gke)
choices:
Cloud Run: cloudrun
GKE: gke
default: cloudrun
has_common:
type: bool
help: Include a common container image for shared libraries, data models, utils, etc?
default: false
common_path:
type: str
help: Destination path of this common container?
default: "common"
when: "{{has_common}}"
terraform_base:
type: bool
help: Add Terraform IaC (Infrastructure as Code)?
default: true
# cicd:
# type: str
# help: Set up a CI/CD?
# choices:
# None: ""
# GitHub: github
# GitLab: gitlab
# default: ""
advanced_settings:
type: bool
help: Show advanced settings (VPC, Storage, Region, etc)?
default: false
create_vpc_network:
type: bool
help: Create a default VPC Network?
default: true
when: "{{advanced_settings}}"
vpc_network:
type: str
help: VPC Network ID?
default: "{{'default-vpc' if create_vpc_network}}"
when: "{{advanced_settings and create_vpc_network}}"
vpc_subnetwork:
type: str
help: VPC Subnetwork ID?
default: "{{'default-vpc-subset' if create_vpc_network}}"
when: "{{advanced_settings and create_vpc_network}}"
ip_cidr_range:
type: str
help: IP CIDR range?
default: 10.0.0.0/16
when: "{{advanced_settings and create_vpc_network}}"
master_ipv4_cidr_block:
type: str
help: Master IPv4 CIDR block?
default: 172.16.0.0/28
when: "{{advanced_settings and create_vpc_network}}"
secondary_pod_ip_cidr_range:
type: str
help: Secondary pod ranges?
default: 10.1.0.0/16
when: "{{advanced_settings and create_vpc_network}}"
secondary_service_ip_cidr_range:
type: str
help: Secondary service ranges?
default: 10.2.0.0/16
when: "{{advanced_settings and create_vpc_network}}"
_templates_suffix: ""
_exclude:
- "copier.yaml"
- ".terraform*"
- ".tmp"
- ".venv"
- ".pytest_cache"
- "__pycache__"
- "*-debug.log"
_jinja_extensions:
- jinja2_time.TimeExtension
- copier_templates_extensions.TemplateExtensionLoader
- ../copier_extensions/sb_helpers.py:SolutionsTemplateHelpersExtension