Module tpu

This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the pulumi/pulumi-gcp repo; however, if that doesn’t turn up anything, please consult the source terraform-providers/terraform-provider-google repo.

Resources

Data Sources

Others

Resources

Resource Node

class Node extends CustomResource

This content is derived from https://github.com/terraform-providers/terraform-provider-google/blob/master/website/docs/r/tpu_node.html.markdown.

constructor

new Node(name: string, args: NodeArgs, opts?: pulumi.CustomResourceOptions)

Create a Node resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: NodeState, opts?: pulumi.CustomResourceOptions): Node

Get an existing Node resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

public static isInstance(obj: any): obj is Node

Returns true if the given object is an instance of Node. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property acceleratorType

public acceleratorType: pulumi.Output<string>;

The type of hardware accelerators associated with this node.

property cidrBlock

public cidrBlock: pulumi.Output<string>;

The CIDR block that the TPU node will use when selecting an IP address. This CIDR block must be a /29 block; the Compute Engine networks API forbids a smaller block, and using a larger block would be wasteful (a node can only consume one IP address). Errors will occur if the CIDR block has already been used for a currently existing TPU node, the CIDR block conflicts with any subnetworks in the user’s provided network, or the provided network is peered with another network that is using that CIDR block.

property description

public description: pulumi.Output<string | undefined>;

The user-supplied description of the TPU. Maximum of 512 characters.

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property labels

public labels: pulumi.Output<{[key: string]: string} | undefined>;

Resource labels to represent user provided metadata.

property name

public name: pulumi.Output<string>;

The immutable name of the TPU.

property network

public network: pulumi.Output<string>;

The name of a network to peer the TPU node to. It must be a preexisting Compute Engine network inside of the project on which this API has been activated. If none is provided, “default” will be used.

property networkEndpoints

public networkEndpoints: pulumi.Output<NodeNetworkEndpoint[]>;

The network endpoints where TPU workers can be accessed and sent work. It is recommended that Tensorflow clients of the node first reach out to the first (index 0) entry.

property project

public project: pulumi.Output<string>;

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

property schedulingConfig

public schedulingConfig: pulumi.Output<NodeSchedulingConfig | undefined>;

Sets the scheduling options for this TPU instance.

property serviceAccount

public serviceAccount: pulumi.Output<string>;

The service account used to run the tensor flow services within the node. To share resources, including Google Cloud Storage data, with the Tensorflow job running in the Node, this account must have permissions to that data.

property tensorflowVersion

public tensorflowVersion: pulumi.Output<string>;

The version of Tensorflow running in the Node.

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

property zone

public zone: pulumi.Output<string>;

The GCP location for the TPU.

Data Sources

Data Source getTensorflowVersions

getTensorflowVersions(args?: GetTensorflowVersionsArgs, opts?: pulumi.InvokeOptions): Promise<GetTensorflowVersionsResult> & GetTensorflowVersionsResult

Others

interface GetTensorflowVersionsArgs

interface GetTensorflowVersionsArgs

A collection of arguments for invoking getTensorflowVersions.

property project

project?: undefined | string;

property zone

zone?: undefined | string;

interface GetTensorflowVersionsResult

interface GetTensorflowVersionsResult

A collection of values returned by getTensorflowVersions.

property id

id: string;

id is the provider-assigned unique ID for this managed resource.

property project

project: string;

property versions

versions: string[];

property zone

zone: string;

interface NodeArgs

interface NodeArgs

The set of arguments for constructing a Node resource.

property acceleratorType

acceleratorType: pulumi.Input<string>;

The type of hardware accelerators associated with this node.

property cidrBlock

cidrBlock: pulumi.Input<string>;

The CIDR block that the TPU node will use when selecting an IP address. This CIDR block must be a /29 block; the Compute Engine networks API forbids a smaller block, and using a larger block would be wasteful (a node can only consume one IP address). Errors will occur if the CIDR block has already been used for a currently existing TPU node, the CIDR block conflicts with any subnetworks in the user’s provided network, or the provided network is peered with another network that is using that CIDR block.

property description

description?: pulumi.Input<string>;

The user-supplied description of the TPU. Maximum of 512 characters.

property labels

labels?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;

Resource labels to represent user provided metadata.

property name

name?: pulumi.Input<string>;

The immutable name of the TPU.

property network

network?: pulumi.Input<string>;

The name of a network to peer the TPU node to. It must be a preexisting Compute Engine network inside of the project on which this API has been activated. If none is provided, “default” will be used.

property project

project?: pulumi.Input<string>;

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

property schedulingConfig

schedulingConfig?: pulumi.Input<NodeSchedulingConfig>;

Sets the scheduling options for this TPU instance.

property tensorflowVersion

tensorflowVersion: pulumi.Input<string>;

The version of Tensorflow running in the Node.

property zone

zone: pulumi.Input<string>;

The GCP location for the TPU.

interface NodeState

interface NodeState

Input properties used for looking up and filtering Node resources.

property acceleratorType

acceleratorType?: pulumi.Input<string>;

The type of hardware accelerators associated with this node.

property cidrBlock

cidrBlock?: pulumi.Input<string>;

The CIDR block that the TPU node will use when selecting an IP address. This CIDR block must be a /29 block; the Compute Engine networks API forbids a smaller block, and using a larger block would be wasteful (a node can only consume one IP address). Errors will occur if the CIDR block has already been used for a currently existing TPU node, the CIDR block conflicts with any subnetworks in the user’s provided network, or the provided network is peered with another network that is using that CIDR block.

property description

description?: pulumi.Input<string>;

The user-supplied description of the TPU. Maximum of 512 characters.

property labels

labels?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;

Resource labels to represent user provided metadata.

property name

name?: pulumi.Input<string>;

The immutable name of the TPU.

property network

network?: pulumi.Input<string>;

The name of a network to peer the TPU node to. It must be a preexisting Compute Engine network inside of the project on which this API has been activated. If none is provided, “default” will be used.

property networkEndpoints

networkEndpoints?: pulumi.Input<pulumi.Input<NodeNetworkEndpoint>[]>;

The network endpoints where TPU workers can be accessed and sent work. It is recommended that Tensorflow clients of the node first reach out to the first (index 0) entry.

property project

project?: pulumi.Input<string>;

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

property schedulingConfig

schedulingConfig?: pulumi.Input<NodeSchedulingConfig>;

Sets the scheduling options for this TPU instance.

property serviceAccount

serviceAccount?: pulumi.Input<string>;

The service account used to run the tensor flow services within the node. To share resources, including Google Cloud Storage data, with the Tensorflow job running in the Node, this account must have permissions to that data.

property tensorflowVersion

tensorflowVersion?: pulumi.Input<string>;

The version of Tensorflow running in the Node.

property zone

zone?: pulumi.Input<string>;

The GCP location for the TPU.