# Workflows AWS Connector Execution - Memory Limitations

**URL:** <https://community.dynatrace.com/t/workflows-aws-connector-execution-memory-limitations/52418>\
**Category:** Troubleshooting\
**Tags:** aws, workflows\
**Created:** [July 9, 2025, 1:19pm UTC](https://community.dynatrace.com/t/workflows-aws-connector-execution-memory-limitations/52418 "2025-07-09T13:19:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Kaufmann](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/daniel_kaufmann/32/32210_2.png) [@Daniel\_Kaufmann](https://community.dynatrace.com/u/Daniel_Kaufmann)\
**Post date:** [July 9, 2025, 1:19pm UTC](https://community.dynatrace.com/t/workflows-aws-connector-execution-memory-limitations/52418/1 "2025-07-09T13:19:48Z")

</div>

# Summary

When leveraging&nbsp;Dynatrace Workflows to&nbsp;automate your AWS infrastructure using AWS Connector, you can target a rich set of services, such as Amazon Web Services S3 (Simple Storage Service), AWS EC2 (Elastic Compute Cloud) or AWS SSM (Systems Manager).

If you want to list resources of any kind, such as Buckets from Amazon Web Services S3, Instances from AWS EC2 or list documents from AWS SSM, you may encounter issues. This article will walk you through a memory limitation problem that might occur and explain how to resolve it.

# Problem

When running an AWS Connector&nbsp;Action with the goal to list resources, the execution might crash, causing the execution to abort with an error such as:

```javascript
Error running action: Execution crashed - OOM - error ref 76e23678-80f5-4845-b82b-aed80dfeb53f

```

In the case of an execution crash when listing resources like in the error message shown above, it could be that&nbsp;the queried result is not limited in size, resulting in an OOM (Out-Of-Memory) error. This is caused by the result size being larger than the memory limitations in the Dynatrace platform.

# Resolution

Each AWS Connector Action used for listing resources offers a **pagination token** or **maximum result** field in their Action Widget that can be used for achieving this.

The naming of these fields can vary per action depending on what Amazon Web Services defined in their official documentation, e.g. _MaxItems_, _MaxResults_, _MaxBuckets_, _MaxParts_ etc. for **maximum result** or _NextToken_, _ContinuationToken_, _Marker_ etc. for the **pagination token**. Please refer to the [official documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/) to find the corresponding field names for the action you are troubleshooting.

### Example: EC2 Describe Instances Crashes with Out-Of-Memory Error

For example, executing the _ec2-describe-instances_ action with the goal to list all AWS EC2 (Elastic Compute Cloud) instances, it is possible limit the result by utilizing the _MaxResults_ or _NextToken_ (also see [the official documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/DescribeInstancesCommandInput/)) fields:

 ![image-20250514-142727.png](https://global.discourse-cdn.com/dynatrace/original/3X/2/9/2998844ac00cc86e545e60bc2f0b1987f65531a8.png)

Alternatively, it’s also possible to specify&nbsp;_InstanceIds_ or use _Filters_ to narrow down the results.

# What’s next

If this article did not help, please open a support ticket, mention that this article was used and provide the following in the ticket:

- link to the affected workflow
- screenshot of the used Workflows Action and it’s input
- information about the execution result and any error messages shown
