Exec module for managing EC2 route table associations.

async, ctx, route_table_id: str, name: str = None, resource_id: str = None, gateway_id: str = None, subnet_id: str = None) Dict[source]#

Get a route table association of a route table using Association ID, Gateway ID or Subnet ID.

  • route_table_id (str) – ID of the AWS Route table.

  • name (str, Optional) – The name of the Idem state.

  • resource_id (str, Optional) – The route table association ID.

  • gateway_id (str, Optional) – The ID of the internet gateway or virtual private gateway.

  • subnet_id (str, Optional) – The ID of the subnet.


Returns security group in present format

Return type:

Dict[str, Any]


Calling this exec module function from the cli with filters

idem exec aws.ec2.route_table_association.get name="my_resource" route_table_id=rtb-13ewdeae  resource_id=rtbassoc-0rera607rre12a2c5

Using in a state:

    - path: aws.ec2.route_table_association.get
    - kwargs:
        name: my_resource
        route_table_id: rtb-13ewdeae
        resource_id: rtbassoc-0rera607rre12a2c5