pulumi_wasm_providers_gcp_mini::compute

Module region_resize_request

source
Expand description

§Example Usage

§Compute Rmig Resize Request

resources:
  a3Dws:
    type: gcp:compute:RegionInstanceTemplate
    name: a3_dws
    properties:
      name: a3-dws
      region: us-central1
      description: This template is used to create a mig instance that is compatible with DWS resize requests.
      instanceDescription: A3 GPU
      machineType: a3-highgpu-8g
      canIpForward: false
      scheduling:
        automaticRestart: false
        onHostMaintenance: TERMINATE
      disks:
        - sourceImage: cos-cloud/cos-105-lts
          autoDelete: true
          boot: true
          diskType: pd-ssd
          diskSizeGb: '960'
          mode: READ_WRITE
      guestAccelerators:
        - type: nvidia-h100-80gb
          count: 8
      reservationAffinity:
        type: NO_RESERVATION
      shieldedInstanceConfig:
        enableVtpm: true
        enableIntegrityMonitoring: true
      networkInterfaces:
        - network: default
  a3DwsRegionInstanceGroupManager:
    type: gcp:compute:RegionInstanceGroupManager
    name: a3_dws
    properties:
      name: a3-dws
      baseInstanceName: a3-dws
      region: us-central1
      versions:
        - instanceTemplate: ${a3Dws.selfLink}
      instanceLifecyclePolicy:
        defaultActionOnFailure: DO_NOTHING
      distributionPolicyTargetShape: ANY_SINGLE_ZONE
      distributionPolicyZones:
        - us-central1-a
        - us-central1-b
        - us-central1-c
        - us-central1-f
      updatePolicy:
        instanceRedistributionType: NONE
        type: OPPORTUNISTIC
        minimalAction: REPLACE
        maxSurgeFixed: 0
        maxUnavailableFixed: 6
      waitForInstances: false
  a3ResizeRequest:
    type: gcp:compute:RegionResizeRequest
    name: a3_resize_request
    properties:
      name: a3-dws
      instanceGroupManager: ${a3DwsRegionInstanceGroupManager.name}
      region: us-central1
      description: Test resize request resource
      resizeBy: 2
      requestedRunDuration:
        seconds: 14400
        nanos: 0

§Import

RegionResizeRequest can be imported using any of these accepted formats:

  • projects/{{project}}/regions/{{region}}/instanceGroupManagers/{{instance_group_manager}}/resizeRequests/{{name}}

  • {{project}}/{{region}}/{{instance_group_manager}}/{{name}}

  • {{region}}/{{instance_group_manager}}/{{name}}

  • {{instance_group_manager}}/{{name}}

When using the pulumi import command, RegionResizeRequest can be imported using one of the formats above. For example:

$ pulumi import gcp:compute/regionResizeRequest:RegionResizeRequest default projects/{{project}}/regions/{{region}}/instanceGroupManagers/{{instance_group_manager}}/resizeRequests/{{name}}
$ pulumi import gcp:compute/regionResizeRequest:RegionResizeRequest default {{project}}/{{region}}/{{instance_group_manager}}/{{name}}
$ pulumi import gcp:compute/regionResizeRequest:RegionResizeRequest default {{region}}/{{instance_group_manager}}/{{name}}
$ pulumi import gcp:compute/regionResizeRequest:RegionResizeRequest default {{instance_group_manager}}/{{name}}

Structs§

Functions§

  • Registers a new resource with the given unique name and arguments