Skip to content

Is it possible to edit launchspec (subnet ids) non-interactively? #509

Description

@luanhdeandrade

I couldn't reach out via slack, because there was a certificate error and the website uses hsts, that means I could not access it anyway.
Also, I didn't find anything related to my issue in stackoverflow.
So, anyway, is it possible to edit a launchspec non-interactively as we do in the clusters?

For a cluster, you can simply do this:
spotctl ocean update cluster k --cluster-id CLUSTERID --subnet-ids subnet1,subnet2

I see we don't have an equivalent to the launch specs:
spotctl ocean update launchspec k --subnet-ids "subnet1,subnet2,subnet3" --spec-id SPECID
ends up with this error:

Exited with error: unknown flag: --subnet-ids

Also, I discovered that the launchSpec can be edited, but only interactively in a vi-like command, but this won't help us as we want to make this a script.

Any ideas on this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions