def run(resource, logger=None, **kwargs):
    environment = Environment.objects.get(id='{{ env_id }}')
    function_name = '{{ function_name }}'
    source_code = """{{ source_code }}"""
    entry_point = '{{ entry_point }}'
    available_memory_mb = '{{ available_memory_mb }}'
    runtime = '{{ runtime }}'
    bucket = '{{ bucket_to_store_sourcecode }}'
    cloud_storage_location = '{{ cloud_storage_location }}'
    enter_sourcecode_or_bucket_url = "{{enter_sourcecode_or_bucket_url}}"
    region = "{{gcp_region}}"
    rh = environment.resource_handler.cast()