Ai Tensorboard Args
data class AiTensorboardArgs(val description: Output<String>? = null, val displayName: Output<String>? = null, val encryptionSpec: Output<AiTensorboardEncryptionSpecArgs>? = null, val labels: Output<Map<String, String>>? = null, val project: Output<String>? = null, val region: Output<String>? = null) : ConvertibleToJava<AiTensorboardArgs>
Tensorboard is a physical database that stores users' training metrics. A default Tensorboard is provided in each region of a GCP project. If needed users can also create extra Tensorboards in their projects. To get more information about Tensorboard, see:
How-to Guides
Example Usage
Vertex Ai Tensorboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.vertex.AiTensorboard;
import com.pulumi.gcp.vertex.AiTensorboardArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var tensorboard = new AiTensorboard("tensorboard", AiTensorboardArgs.builder()
.displayName("terraform")
.description("sample description")
.labels(Map.ofEntries(
Map.entry("key1", "value1"),
Map.entry("key2", "value2")
))
.region("us-central1")
.build());
}
}
Content copied to clipboard
Vertex Ai Tensorboard Full
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.organizations.OrganizationsFunctions;
import com.pulumi.gcp.organizations.inputs.GetProjectArgs;
import com.pulumi.gcp.kms.CryptoKeyIAMMember;
import com.pulumi.gcp.kms.CryptoKeyIAMMemberArgs;
import com.pulumi.gcp.vertex.AiTensorboard;
import com.pulumi.gcp.vertex.AiTensorboardArgs;
import com.pulumi.gcp.vertex.inputs.AiTensorboardEncryptionSpecArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var project = OrganizationsFunctions.getProject();
var cryptoKey = new CryptoKeyIAMMember("cryptoKey", CryptoKeyIAMMemberArgs.builder()
.cryptoKeyId("kms-name")
.role("roles/cloudkms.cryptoKeyEncrypterDecrypter")
.member(String.format("serviceAccount:service-%s@gcp-sa-aiplatform.iam.gserviceaccount.com", project.applyValue(getProjectResult -> getProjectResult.number())))
.build());
var tensorboard = new AiTensorboard("tensorboard", AiTensorboardArgs.builder()
.displayName("terraform")
.description("sample description")
.labels(Map.ofEntries(
Map.entry("key1", "value1"),
Map.entry("key2", "value2")
))
.region("us-central1")
.encryptionSpec(AiTensorboardEncryptionSpecArgs.builder()
.kmsKeyName("kms-name")
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(cryptoKey)
.build());
}
}
Content copied to clipboard
Import
Tensorboard can be imported using any of these accepted formats
$ pulumi import gcp:vertex/aiTensorboard:AiTensorboard default projects/{{project}}/locations/{{region}}/tensorboards/{{name}}
Content copied to clipboard
$ pulumi import gcp:vertex/aiTensorboard:AiTensorboard default {{project}}/{{region}}/{{name}}
Content copied to clipboard
$ pulumi import gcp:vertex/aiTensorboard:AiTensorboard default {{region}}/{{name}}
Content copied to clipboard
$ pulumi import gcp:vertex/aiTensorboard:AiTensorboard default {{name}}
Content copied to clipboard
Properties
Link copied to clipboard
Description of this Tensorboard.
Link copied to clipboard
User provided name of this Tensorboard.
Link copied to clipboard
Customer-managed encryption key spec for a Tensorboard. If set, this Tensorboard and all sub-resources of this Tensorboard will be secured by this key. Structure is documented below.