Skip to content

Latest commit

 

History

History
79 lines (56 loc) · 2.75 KB

File metadata and controls

79 lines (56 loc) · 2.75 KB

Description

This module will insert a dependency on the completion of the startup script for a compute VM and report back if it fails. This can be useful when running post-boot installation scripts that require the startup script to finish setting up a node.

WARNING:: this module is experimental and not fully supported.

Additional Dependencies

  • gcloud must be present in the path of the machine where terraform apply is run.

Example

- id: wait
  source: community/modules/scripts/wait-for-startup
  settings:
    instance_name: $(workstation.name[0])

License

Copyright 2022 Google LLC

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

 http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Requirements

Name Version
terraform >= 0.14.0
google >= 3.83
null ~> 3.0

Providers

Name Version
google >= 3.83
null ~> 3.0

Modules

No modules.

Resources

Name Type
null_resource.wait_for_startup resource
google_compute_instance.vm_instance data source

Inputs

Name Description Type Default Required
instance_name Name of the instance we are waiting for string n/a yes
project_id Project in which the HPC deployment will be created string n/a yes
timeout Timeout in seconds number 1200 no
zone The GCP zone where the instance is running string n/a yes

Outputs

No outputs.