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.
- gcloud must be present in the path
of the machine where
terraform apply
is run.
- id: wait
source: community/modules/scripts/wait-for-startup
settings:
instance_name: ((module.workstation.name[0]))
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.
Name | Version |
---|---|
terraform | >= 0.14.0 |
>= 3.83 | |
null | ~> 3.0 |
Name | Version |
---|---|
>= 3.83 | |
null | ~> 3.0 |
No modules.
Name | Type |
---|---|
null_resource.wait_for_startup | resource |
google_compute_instance.vm_instance | data source |
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 |
No outputs.