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:
name (str) – The name of the Idem state.
resource_id (str, Optional) – AWS VPC peering connection id to identify the resource.
filters (list, Optional) – One or more filters: for example, tag :<key>, tag-key. A complete list of filters can be found at https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ec2.html#EC2.Client.describe_vpc_peering_connections
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"]