hub_api_template_create

Michael Delzer Updated by Michael Delzer

Create Stack Template

Synopsis

Create Stack Template by sending JSON via stdin, for example: { “name”: “EKS”, “description”: “EKS with Terraform”, “stack”: “eks:1”, “componentsEnabled”: [“stack-k8s-eks”, “tiller”, “traefik”, “dex”, “kube-dashboard”], “verbs”: [“deploy”, “undeploy”], “tags”: [], “parameters”: [{ “name”: “dns.domain” }, { “name”: “component.kubernetes.eks.cluster” }, { “name”: “component.kubernetes.eks.admin” }, { “name”: “component.kubernetes.eks.availabilityZones” }, { “name”: “component.kubernetes.worker.count”, “value”: 3 }, { “name”: “component.kubernetes.worker.size”, “value”: “r5a.large” }, { “name”: “component.kubernetes.worker.spotPrice”, “value”: 0.06 }, { “name”: “component.ingress.urlPrefix”, “value”: “app” }, { “name”: “component.ingress.ssoUrlPrefix”, “value”: “apps” }, { “name”: “component.ingress.ssl.enabled”, “value”: “false” }], “teamsPermissions”: [] }

hub api template create < template.json [flags]

Options

-h, --help   help for create

Options inherited from parent commands

      --all-warnings                   Repeat all warnings before [successful] exit (default true)
--api string Hub API service base URL, HUB_API (default "https://api.app.arkadi.dev.superhub.io")
--aws_profile string AWS ~/.aws/credentials profile, AWS_PROFILE (default "agilestacks")
--aws_region string AWS region hint (for S3 state access), AWS_DEFAULT_REGION (default "us-east-2")
--aws_use_iam_role_credentials Try EC2 instance credentials (default true)
--cache string API cache file (default is $HOME/.automation-hub-cache.yaml)
--compressed Write gzip compressed files (default true)
--config string Config file (default is $HOME/.automation-hub.{yaml,json})
-d, --debug Print debug info. Or set HUB_DEBUG=1
--encrypted string Write encrypted files if HUB_CRYPTO_PASSWORD is set. true / false (default "if-password-set")
-f, --force Force operation despite of errors. Or set HUB_FORCE=1
--log-destination string stderr or stdout (default "stderr")
-t, --trace Print detailed trace info. Or set HUB_TRACE=1
-v, --verbose Verbose mode (default true)

SEE ALSO

Create and manage Stack Templates, hub_api_template Click Here

How did we do?

hub_api_template

hub_api_template_delete

Contact