instance_type#
- async idem_aws.exec.aws.ec2.instance_type.get(hub, ctx, *, name: str = None, filters: List = None, resource_id: str = None)[source]#
Use an un-managed Instance-type 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 Ec2 Instance type to identify the resource.
filters (list[dict[str, Any]], 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_instance_types
- Request Syntax:
[Idem-state-name]: aws.ec2.instance_type.search: - resource_id: 'string' - filters: - name: 'string' values: 'list' - name: 'string' values: 'list'
Examples
my-unmanaged-instance-type: exec.run: - path: aws.ec2.instance_type.get: - filters: - name: instance-type values: - '*.nano' - name: hypervisor values: - xen - name: processor-info.supported-architecture values: - x86_64 my_instance: aws.ec2.instance.present: - instance_type: ${aws.ec2.instance_type:my-unmanaged-instance-type:resource_id}