> For the complete documentation index, see [llms.txt](https://docs.fylamynt.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fylamynt.com/aws-services/ec2.md).

# 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)
