def generate_tenant(ctx, prompt=None, use_default=None, **kwargs): """ This template is for the creation of a codeontap tenant. This should be run from the root of an accounts repository. """ if not prompt or utils.confirm(kwargs): generate_tenant_backend.run(**kwargs)
def generate_app_lifecycle_mgmt(ctx, prompt=None, use_default=None, **kwargs): """ This template is for the creation of a codeontap product. This product provisions a container based application lifecycle management service used to build and deploy codeontap managed applications. """ if not prompt or utils.confirm(kwargs): generate_app_lifecycle_mgmt_backend.run(**kwargs)
def generate_base(ctx, prompt=None, use_default=None, **kwargs): """ This template is for the creation of a codeontap product. This creates a base product with no deployed components. This template should be run from the root of an empty product directory. """ if not prompt or utils.confirm(kwargs): generate_base_backend.run(**kwargs)
def generate_account(ctx, prompt=None, use_default=None, **kwargs): """ This template is for the creation of a codeontap account. The account template can be reused to create multiple accounts within a Tenant. This template should be run from a tenant directory """ if not prompt or utils.confirm(kwargs): generate_account_backend.run(**kwargs)
def generate_django(ctx, prompt=None, use_default=None, **kwargs): """ This template is for the creation of an AWS based Django deployment. It includes all of the components required for a produciton level deployment of Django: - Web ECS Service for front end - Worker ECS Service for celery processing - Task ECS Task Definition for Django management - Postgres based RDS instance - Cloudfront S3 distribution for static content - Redis for queue management between web and worker - HTTPS offloading load balancer for web The template will create a single environment. If you want more you will need too add them manually. """ if not prompt or utils.confirm(kwargs): generate_django_backend.run(**kwargs)