pulumi_wasm_providers_gcp_mini::compute

Module https_health_check

source
Expand description

An HttpsHealthCheck resource. This resource defines a template for how individual VMs should be checked for health, via HTTPS.

Note: gcp.compute.HttpsHealthCheck is a legacy health check. The newer gcp.compute.HealthCheck should be preferred for all uses except Network Load Balancers which still require the legacy version.

To get more information about HttpsHealthCheck, see:

§Example Usage

§Https Health Check Basic

use pulumi_wasm_rust::Output;
use pulumi_wasm_rust::{add_export, pulumi_main};
#[pulumi_main]
fn test_main() -> Result<(), Error> {
    let default = https_health_check::create(
        "default",
        HttpsHealthCheckArgs::builder()
            .check_interval_sec(1)
            .name("authentication-health-check")
            .request_path("/health_check")
            .timeout_sec(1)
            .build_struct(),
    );
}

§Import

HttpsHealthCheck can be imported using any of these accepted formats:

  • projects/{{project}}/global/httpsHealthChecks/{{name}}

  • {{project}}/{{name}}

  • {{name}}

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

$ pulumi import gcp:compute/httpsHealthCheck:HttpsHealthCheck default projects/{{project}}/global/httpsHealthChecks/{{name}}
$ pulumi import gcp:compute/httpsHealthCheck:HttpsHealthCheck default {{project}}/{{name}}
$ pulumi import gcp:compute/httpsHealthCheck:HttpsHealthCheck default {{name}}

Structs§

Functions§

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