It is my understanding that setting an environment varialbe `TEST_AWS_ACCOUNT_ID` for localstack sets that as the AWS account for the user in localstack.

However, setting it does not actually change any ARNs. For example:

1. Start localstack using `TEST_AWS_ACCOUNT_ID="111111111111" DEBUG=1 localstack start`
2. Deploy anything with an ARN (in this example I deployed a lambda)
3. Check the ARN. Example output for lambda:
```json
$ awslocal lambda list-functions
{
    "Functions": [
        {
            "FunctionName": "localtest-local-hello",
            "FunctionArn": "arn:aws:lambda:us-east-1:000000000000:function:localtest-local-hello",
            "Runtime": "nodejs10.x",
            "Role": "test_role",
            "Handler": "handler.hello",
            "CodeSize": 3077,
            "Description": "",
            "Timeout": 6,
            "MemorySize": 1024,
            "LastModified": "2019-11-06T06:43:53.451+0000",
            "CodeSha256": "V77gR13o90ET7+XquXBBc3Rxr1qDu1bE7S+A0Wbx5ys=",
            "Version": "$LATEST",
            "TracingConfig": {
                "Mode": "PassThrough"
            },
            "RevisionId": "3d4ed679-c1a9-4b7e-ad9e-f27e8543c5e9"
        }
    ]
}
```

ARN is still 000000000000
except Exception as e:
        LOG.warning('Error calling %s with params: %s for resource: %s' % (function, params, resource))
        raise e
    
    if resource_type == 'ApiGateway::Method':
        integration = resource_props.get('Integration')
        if integration:
            api_id = resolve_refs_recursively(stack_name, resource_props['RestApiId'], resources)
            res_id = resolve_refs_recursively(stack_name, resource_props['ResourceId'], resources)
            uri = integration.get('Uri')
            if uri:
                uri = resolve_refs_recursively(stack_name, uri, resources)
                aws_stack.connect_to_service('apigateway').put_integration(restApiId=api_id, resourceId=res_id,
                    httpMethod=resource_props['HttpMethod'], type=integration['Type'],
                    integrationHttpMethod=integration['IntegrationHttpMethod'], uri=uri
                )
    elif resource_type == 'SNS::Topic':
        subscriptions = resource_props.get('Subscription', [])
        for subscription in subscriptions:
            endpoint = resolve_refs_recursively(stack_name, subscription['Endpoint'], resources)
            topic_arn = retrieve_topic_arn(params['Name'])
            aws_stack.connect_to_service('sns').subscribe(
                TopicArn=topic_arn, Protocol=subscription['Protocol'], Endpoint=endpoint)
    elif resource_type == 'S3::Bucket':
        tags = resource_props.get('Tags')
        if tags:
            aws_stack.connect_to_service('s3').put_bucket_tagging(
                Bucket=params['Bucket'], Tagging={'TagSet': tags})
    return result
def deploy_template(template, stack_name):