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:
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}