As a user of localstack I would like a documented standardized way to run terraform scripts against a running localstack to create AWS infrastructure so that I don't have to duplicate work that involves programatically creating the resources when I use terraform to create resources in my cloud environment.
self.function_invoke_times = {}
    def execute(self, func_arn, func_details, event, context=None, version=None, asynchronous=False):
        def do_execute(*args):
            
            invocation_time = int(time.time() * 1000)
            
            try:
                result, log_output = self._execute(func_arn, func_details, event, context, version)
            except Exception as e:
                if asynchronous:
                    lambda_error_to_dead_letter_queue(func_details, event, e)
                raise e
            finally:
                self.function_invoke_times[func_arn] = invocation_time
            
            self._store_logs(func_details, log_output, invocation_time)
            
            return result, log_output
        
        if asynchronous:
            LOG.debug('Lambda executed in Event (asynchronous) mode, no response from this '
                      'function will be returned to caller')
            FuncThread(do_execute).start()
            return None, 'Lambda executed asynchronously.'
        return do_execute()
    def _execute(self, func_arn, func_details, event, context=None, version=None):
        """ This method must be overwritten by subclasses. """
        raise Exception('Not implemented.')
    def startup(self):