# EC2

## Overview

Fylamynt EC2 actions allow you to perform targeted operations against EC2 resources.

## Integration Actions

You can add these actions in Fylamynt workflow builder, as part of your workflow.

1. [EC2 Get Sizing Recommendations](#ec2-get-sizing-recommendations)
2. [EC2 Resize Instances](#ec2-resize-instances)

### EC2 Get Sizing Recommendations

Integration node to fetch EC2 sizing recommendations from AWS Trusted Advisor

#### **Input**

| **Parameter Name**   | **Description**                                                 | **Required** |
| -------------------- | --------------------------------------------------------------- | ------------ |
| Target Account Alias | Target account alias to be used to fetch sizing recommendations | True         |
| Region Name          | AWS Region Name for filtering Trusted Advisor checks            | False        |

#### **Output**

| **Parameter Name** | **Type** | **Description**                     |
| ------------------ | -------- | ----------------------------------- |
| recommendations    | MapList  | A list of sizing recommendations    |
| execution\_status  | String   | Status of run (ie: S\_OK / E\_FAIL) |

#### Action Example

![](/files/-MkyXA1a1CON3s93Pd7E)

![](/files/-MkyXNfWi_5qeueKTmWe)

### EC2 Resize Instances

Integration node to modify instance type of EC2 instances

#### **Input**

| **Parameter Name**   | **Description**                                                                                                                                     | **Required** |
| -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ |
| Target Account Alias | Target account alias to be used to resize instances                                                                                                 | True         |
| Update Config        | <p>A maplist of update config. Example update config in the list:</p><p>{'recommended\_instance\_type': 't3.nano', instance\_id': 'i-abcd1234'}</p> | True         |
| DryRun               | Indicate whether this is a dry run                                                                                                                  | False        |

#### **Output**

| **Parameter Name** | **Type** | **Description**                     |
| ------------------ | -------- | ----------------------------------- |
| instances          | MapList  | A list of updated EC2 instances     |
| execution\_status  | String   | Status of run (ie: S\_OK / E\_FAIL) |

#### Action Example

![](/files/-MkyXcSbkhIIL3bQYHzU)

![](/files/-MkyXmmxxb_iL-AcT2wG)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fylamynt.com/aws-services/ec2.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
