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
sm_name = resolve_refs_recursively(stack_name, sm_name, resources)
            sfn_client = aws_stack.connect_to_service('stepfunctions')
            state_machines = sfn_client.list_state_machines()['stateMachines']
            sm_arn = [m['stateMachineArn'] for m in state_machines if m['name'] == sm_name]
            if not sm_arn:
                return None
            result = sfn_client.describe_state_machine(stateMachineArn=sm_arn[0])
            return result
        elif resource_type == 'StepFunctions::Activity':
            act_name = resource_props.get('Name') or resource_id
            act_name = resolve_refs_recursively(stack_name, act_name, resources)
            sfn_client = aws_stack.connect_to_service('stepfunctions')
            activities = sfn_client.list_activities()['activities']
            result = [a['activityArn'] for a in activities if a['name'] == act_name]
            if not result:
                return None
            return result[0]
        if is_deployable_resource(resource):
            LOG.warning('Unexpected resource type %s when resolving references of resource %s: %s' %
                        (resource_type, resource_id, resource))
    except Exception as e:
        check_not_found_exception(e, resource_type, resource, resource_status)
    return None
def check_not_found_exception(e, resource_type, resource, resource_status):
    
    markers = ['NoSuchBucket', 'ResourceNotFound', '404']
    if not list(filter(lambda marker, e=e: marker in str(e), markers)):
        LOG.warning('Unexpected error retrieving details for resource %s: %s %s - %s %s' %
            (resource_type, e, traceback.format_exc(), resource, resource_status))
def extract_resource_attribute(resource_type, resource, attribute):