vpc_peering_connection#

Exec module for managing VPC Peering Connection.

async idem_aws.exec.aws.ec2.vpc_peering_connection.get(hub, ctx, name: str, resource_id: str = None, filters: List = None) Dict[source]#

Get EC2 vpc peering connection options from AWS account.

Use an un-managed VPC peering connection as a data-source. Supply one of the inputs as the filter.

Parameters:

Examples

Calling from the CLI:

$ idem exec aws.ec2.vpc_peering_connection.get

Using in a state:

my_unmanaged_resource:
  exec.run:
    - path: aws.ec2.vpc_peering_connection.get
    - kwargs:
        name: some-idem-resource-name
        resource_id: some-resource-id
        filters:
          - name: 'vpc-peering-connection-id'
            values: ["pcx-ae89ce9b"]
          - name: 'tag:Name'
            values: ["my_unmanaged_resource"]