millions-lunch-7967
11/17/2021, 6:38 PMresource "google_composer_environment" "test" {
name = "example-composer-env"
region = "us-central1"
config {
node_count = 4
node_config {
zone = "us-central1-a"
machine_type = "n1-standard-1"
network = google_compute_network.test.id
subnetwork = google_compute_subnetwork.test.id
service_account = google_service_account.test.name
}
database_config {
machine_type = "db-n1-standard-2"
}
web_server_config {
machine_type = "composer-n1-webserver-2"
}
}
}
billowy-army-68599
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const test = new gcp.composer.Environment("test", {
region: "us-central1",
config: {
nodeCount: 4,
nodeConfig: {
zone: "us-central1-a",
machineType: "n1-standard-1",
network: google_compute_network.test.id,
subnetwork: google_compute_subnetwork.test.id,
serviceAccount: google_service_account.test.name,
},
databaseConfig: [{
machineType: "db-n1-standard-2",
}],
webServerConfig: [{
machineType: "composer-n1-webserver-2",
}],
},
});
millions-lunch-7967
11/17/2021, 6:45 PM