def METHOD_NAME(self):
    """
    Test if the template can be exported
    """
    function_name = "testcloudwatchlogs"
    bucket_name = "my-bucket-name"
    fnb_name = "fnb" + function_name
    role = "arn:aws:iam::123456789012:role/MyFunction"
    security_group_ids = ["sg-ABCDEFGHIJKL"]
    subnet_ids = ["subnet-ABCDEFGHIJKL"]
    log_group = "/aws/lambda/functionbeat-cloudwatch"
    self._generate_dummy_binary_for_template_checksum()
    self.render_config_template(
        path=os.path.abspath(self.working_dir) + "/log/*",
        cloudwatch={
            "name": function_name,
            "bucket": bucket_name,
            "role": role,
            "virtual_private_cloud": {
                "security_group_ids": security_group_ids,
                "subnet_ids": subnet_ids,
            },
            "log_group": log_group,
        },
    )
    functionbeat_proc = self.start_beat(
        logging_args=["-d", "*"],
        extra_args=["export", "function", function_name]
    )
    self.wait_until(lambda: self.log_contains("PASS"))
    functionbeat_proc.check_wait()
    function_template = self._get_generated_function_template()
    function_properties = function_template["Resources"][fnb_name]["Properties"]
    assert function_properties["FunctionName"] == function_name
    assert function_properties["Code"]["S3Bucket"] == bucket_name
    assert function_properties["Role"] == role
    assert function_properties["VpcConfig"]["SecurityGroupIds"] == security_group_ids
    assert function_properties["VpcConfig"]["SubnetIds"] == subnet_ids