cloudendure.templates
Define the CloudEndure template logic.
CookiecutterHandler
CookiecutterHandler()
Handle cookiecutter operations.
run
CookiecutterHandler.run(
migration_data: 'Dict[str, Any]',
cookiecutter_path:
'str' = 'https://github.com/2ndWatch/cookiecutter-tf-cloudendure')
Run the automation of cookiecutter.
create_project
CookiecutterHandler.create_project(package_path: 'str',
context: 'Dict[Any, Any]' = None,
no_input: 'bool' = True)
Create a cookiecutter project with the provided details.
Args: package_path (str): The path to the cookiecutter template. context (dict): The seed context to be used to populate cookiecutter values. Defaults to an empty dictionary. no_input (bool): Whether or not the interaction is no input. Requires True in order to function for bulk creation. Defaults to: True.
Returns: bool: Whether or not project creation was successful.
TerraformTemplate
TerraformTemplate()
Define Terraform template entries.
Attributes: INSTANCE_TEMPLATE (str): The Terraform EC2 instance template. NETWORKTEMPLATE (str): The Terraform network interface template. VOLUME_TEMPLATE (str): The Terraform volume and volume attachment template.