Skip to content

[Feature]: Support reading apply configuration from stdin #2304

@r4victor

Description

@r4victor

Problem

Similar to kubectl apply -f -, dstack should be able to read apply configurations from stdin with dstack apply -f -. This will open up several possibilities such as custom templating and interpolation cases not covered by dstack.

For example:

type: volume
name: $ENV-my-vol

backend: aws
region: us-east-1
size: 10GB
envsubst '$ENV' < .dstack/volume.dstack.yml | dstack apply -f -

Solution

No response

Workaround

No response

Would you like to help us implement this feature by sending a PR?

Yes

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions