---
title: EC2 Rule info
slug: homologacao-atmosphere/ec2-rule-info
description: Learn how to gather information about the rules of an EC2 security group in AWS using the "ec2_rule_info" module. This document provides a summary of the module, including details on how to specify filters for gathering information. Explore examples to un
createdAt: 2022-04-08T13:54:59.000Z
---

## Resumo

- Reúna informações sobre as regras do grupo de segurança ec2 na AWS.

## Parâmetros

| **Parâmetro** | **Tipo** | **Escolhas \| Valor Padrão** | **Comentários**                                                                                        |
| ------------- | -------- | ---------------------------- | ------------------------------------------------------------------------------------------------------ |
|  filters      | dict     |                              | Uma dict de filtros para aplicar. Cada item dict consiste em uma chave de filtro e um valor de filtro. |

Extende fragmentos da documentação dos módulos aws e ec2

## Exemplos

```yaml
# Gather information about all security group rules
- ec2_rule_info:

# Gather information about all security group rules in a specific Group ID
- ec2_rule_info:
    filters:
      group-id: sg-0de***
```



