terraformhandler.py
def variableOutput(self, resourceType, varName, typeValue, description):
        """ Terraform configuration snippet for Variable Section """
        variableStr = ""
        if resourceType == "vpc":
            variableStr = """variable "var_{varName}" {{
                description = "{tags}"
                default = "{typeValue}"
            }}\n\n""".format(
                varName=varName, typeValue=typeValue, tags=description
            )
        elif resourceType == "subnet":
            variableStr = """variable "var_{varName}" {{
                description = "{tags}"
                default = "{typeValue}"
            }}\n\n""".format(
                varName=varName, typeValue=typeValue, tags=description
            )
        elif resourceType == "instance":
            variableStr = """variable "var_ami_{varName}" {{
                description = "{tags}"
                default = "{typeValue}"
            }}\n\n""".format(
                varName=varName, typeValue=typeValue, tags=description
            )

        return variableStr
 Terraform configuration snippet for Variable Section 
Terraform configuration snippet for Variable Section
Terraform configuration snippet for Variable Section
def variableOutput(self, resourceType, varName, typeValue, description):
        variableStr = ""
        if resourceType == "vpc":
            variableStr = """variable "var_{varName}" {{
                description = "{tags}"
                default = "{typeValue}"
            }}\n\n""".format(
                varName=varName, typeValue=typeValue, tags=description
            )
        elif resourceType == "subnet":
            variableStr = """variable "var_{varName}" {{
                description = "{tags}"
                default = "{typeValue}"
            }}\n\n""".format(
                varName=varName, typeValue=typeValue, tags=description
            )
        elif resourceType == "instance":
            variableStr = """variable "var_ami_{varName}" {{
                description = "{tags}"
                default = "{typeValue}"
            }}\n\n""".format(
                varName=varName, typeValue=typeValue, tags=description
            )
        return variableStr
def variableOutput ( self , resourceType , varName , typeValue , description ) : variableStr = "" if resourceType == "vpc" : variableStr = """variable "var_{varName}" {{
                description = "{tags}"
                default = "{typeValue}"
            }}\n\n""" . format ( varName = varName , typeValue = typeValue , tags = description ) elif resourceType == "subnet" : variableStr = """variable "var_{varName}" {{
                description = "{tags}"
                default = "{typeValue}"
            }}\n\n""" . format ( varName = varName , typeValue = typeValue , tags = description ) elif resourceType == "instance" : variableStr = """variable "var_ami_{varName}" {{
                description = "{tags}"
                default = "{typeValue}"
            }}\n\n""" . format ( varName = varName , typeValue = typeValue , tags = description ) return variableStr
Terraform configuration snippet for Variable Section
Terraform configuration snippet for Variable Section
""" Terraform configuration snippet for Variable Section """
self
resourceType
varName
typeValue
description