vpc_peering_connection_options#

Exec module for managing VPC Peering Connection Options.

async idem_aws.exec.aws.ec2.vpc_peering_connection_options.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 options 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_options.get

Using in a state:

my_unmanaged_resource:
  exec.run:
    - path: ec2.vpc_peering_connection_options.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"