Resource
dcloud_secrets_environment
A Secrets environment (dev, staging, prod…): secrets live in one, apps run in one, and a secret is promoted from one to the next. Deleting one that still holds secrets or apps fails.
Example Usage
resource "dcloud_secrets_environment" "qa" {
slug = "qa"
name = "QA"
position = 15
}Schema
Required
name(String) Display name, e.g. QA. 1 to 64 characters. Up to 64 characters.slug(String) Short id, e.g.staging: lowercase letters, digits and dashes. Changing it replaces the resource.
Optional
color(String) The dot shown beside the environment: gray, blue, teal, green, amber, red or violet. Null: automatic (from the slug). One of:gray,blue,teal,green,amber,red,violet.position(Number) Order among the environments, lowest first. Default: after the last one.
Read-Only
id(String) The resource's id.
Import
Import is supported using the following syntax:
The terraform import command can be used, for example:
terraform import dcloud_secrets_environment.qa <environment-id>Generated from the provider's schema.
Related