Skip to main content
The Phala Cloud provider includes seven read-only data sources. Use them to discover valid configuration values (sizes, regions, images, nodes) and to inspect account or attestation state. Data sources are refreshed on every terraform plan and terraform apply.

phala_account

Returns current account info including user profile, credits, and active workspace linkage.

Attributes


phala_workspace

Returns metadata about the active workspace for the current API key.

Attributes


phala_sizes

Lists available CVM instance types. Use this to discover valid size slugs for phala_app.

Input Attributes

Output: sizes List

Each entry in sizes contains:

phala_regions

Lists available deployment regions.

Output: regions List

Each entry in regions contains:

phala_images

Lists available OS images for CVMs. Always use the exact slug from this data source when setting the image attribute on phala_app.
Use the full image slug (e.g. dstack-dev-0.5.7-9b6a5239), not a shortened version like dstack-dev or dstack-dev-0.5.7. Shortened slugs are not accepted by the API.

Input Attributes

Output: images List

Each entry in images contains:

phala_nodes

Lists available worker nodes (teepods) for CVM placement. Use this when you need to pin a deployment to a specific node with node_id on phala_app.

Input Attributes

Output: nodes List

Each entry in nodes contains:

phala_attestation

Fetches TEE attestation data for a specific CVM on demand. This is a read-only verification data source, not a lifecycle resource.

Input Attributes

Output Attributes

Attestation data is fetched fresh on every plan/apply. The raw_json field contains the complete API response if you need fields beyond the top-level attributes.