qovery.Environment
Explore with Pulumi AI
# qovery.Environment (Resource)
Provides a Qovery environment resource. This can be used to create and manage Qovery environments.
Example
import * as pulumi from "@pulumi/pulumi";
import * as qovery from "@ediri/qovery";
const myEnvironment = new qovery.Environment("myEnvironment", {
projectId: qovery_project.my_project.id,
clusterId: qovery_cluster.my_cluster.id,
mode: "DEVELOPMENT",
environmentVariables: [{
key: "ENV_VAR_KEY",
value: "ENV_VAR_VALUE",
}],
environmentVariableAliases: [{
key: "ENV_VAR_KEY_ALIAS",
value: "ENV_VAR_KEY",
}],
environmentVariableOverrides: [{
key: "SOME_PROJECT_VARIABLE",
value: "OVERRIDDEN_VALUE",
}],
secrets: [{
key: "SECRET_KEY",
value: "SECRET_VALUE",
}],
secretAliases: [{
key: "SECRET_KEY_ALIAS",
value: "SECRET_KEY",
}],
secretOverrides: [{
key: "SOME_PROJECT_SECRET",
value: "OVERRIDDEN_VALUE",
}],
}, {
dependsOn: [qovery_project.my_project],
});
import pulumi
import ediri_qovery as qovery
my_environment = qovery.Environment("myEnvironment",
project_id=qovery_project["my_project"]["id"],
cluster_id=qovery_cluster["my_cluster"]["id"],
mode="DEVELOPMENT",
environment_variables=[{
"key": "ENV_VAR_KEY",
"value": "ENV_VAR_VALUE",
}],
environment_variable_aliases=[{
"key": "ENV_VAR_KEY_ALIAS",
"value": "ENV_VAR_KEY",
}],
environment_variable_overrides=[{
"key": "SOME_PROJECT_VARIABLE",
"value": "OVERRIDDEN_VALUE",
}],
secrets=[{
"key": "SECRET_KEY",
"value": "SECRET_VALUE",
}],
secret_aliases=[{
"key": "SECRET_KEY_ALIAS",
"value": "SECRET_KEY",
}],
secret_overrides=[{
"key": "SOME_PROJECT_SECRET",
"value": "OVERRIDDEN_VALUE",
}],
opts = pulumi.ResourceOptions(depends_on=[qovery_project["my_project"]]))
package main
import (
"github.com/dirien/pulumi-qovery/sdk/go/qovery"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := qovery.NewEnvironment(ctx, "myEnvironment", &qovery.EnvironmentArgs{
ProjectId: pulumi.Any(qovery_project.My_project.Id),
ClusterId: pulumi.Any(qovery_cluster.My_cluster.Id),
Mode: pulumi.String("DEVELOPMENT"),
EnvironmentVariables: qovery.EnvironmentEnvironmentVariableArray{
&qovery.EnvironmentEnvironmentVariableArgs{
Key: pulumi.String("ENV_VAR_KEY"),
Value: pulumi.String("ENV_VAR_VALUE"),
},
},
EnvironmentVariableAliases: qovery.EnvironmentEnvironmentVariableAliasArray{
&qovery.EnvironmentEnvironmentVariableAliasArgs{
Key: pulumi.String("ENV_VAR_KEY_ALIAS"),
Value: pulumi.String("ENV_VAR_KEY"),
},
},
EnvironmentVariableOverrides: qovery.EnvironmentEnvironmentVariableOverrideArray{
&qovery.EnvironmentEnvironmentVariableOverrideArgs{
Key: pulumi.String("SOME_PROJECT_VARIABLE"),
Value: pulumi.String("OVERRIDDEN_VALUE"),
},
},
Secrets: qovery.EnvironmentSecretArray{
&qovery.EnvironmentSecretArgs{
Key: pulumi.String("SECRET_KEY"),
Value: pulumi.String("SECRET_VALUE"),
},
},
SecretAliases: qovery.EnvironmentSecretAliasArray{
&qovery.EnvironmentSecretAliasArgs{
Key: pulumi.String("SECRET_KEY_ALIAS"),
Value: pulumi.String("SECRET_KEY"),
},
},
SecretOverrides: qovery.EnvironmentSecretOverrideArray{
&qovery.EnvironmentSecretOverrideArgs{
Key: pulumi.String("SOME_PROJECT_SECRET"),
Value: pulumi.String("OVERRIDDEN_VALUE"),
},
},
}, pulumi.DependsOn([]pulumi.Resource{
qovery_project.My_project,
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Qovery = ediri.Qovery;
return await Deployment.RunAsync(() =>
{
var myEnvironment = new Qovery.Environment("myEnvironment", new()
{
ProjectId = qovery_project.My_project.Id,
ClusterId = qovery_cluster.My_cluster.Id,
Mode = "DEVELOPMENT",
EnvironmentVariables = new[]
{
new Qovery.Inputs.EnvironmentEnvironmentVariableArgs
{
Key = "ENV_VAR_KEY",
Value = "ENV_VAR_VALUE",
},
},
EnvironmentVariableAliases = new[]
{
new Qovery.Inputs.EnvironmentEnvironmentVariableAliasArgs
{
Key = "ENV_VAR_KEY_ALIAS",
Value = "ENV_VAR_KEY",
},
},
EnvironmentVariableOverrides = new[]
{
new Qovery.Inputs.EnvironmentEnvironmentVariableOverrideArgs
{
Key = "SOME_PROJECT_VARIABLE",
Value = "OVERRIDDEN_VALUE",
},
},
Secrets = new[]
{
new Qovery.Inputs.EnvironmentSecretArgs
{
Key = "SECRET_KEY",
Value = "SECRET_VALUE",
},
},
SecretAliases = new[]
{
new Qovery.Inputs.EnvironmentSecretAliasArgs
{
Key = "SECRET_KEY_ALIAS",
Value = "SECRET_KEY",
},
},
SecretOverrides = new[]
{
new Qovery.Inputs.EnvironmentSecretOverrideArgs
{
Key = "SOME_PROJECT_SECRET",
Value = "OVERRIDDEN_VALUE",
},
},
}, new CustomResourceOptions
{
DependsOn =
{
qovery_project.My_project,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.qovery.Environment;
import com.pulumi.qovery.EnvironmentArgs;
import com.pulumi.qovery.inputs.EnvironmentEnvironmentVariableArgs;
import com.pulumi.qovery.inputs.EnvironmentEnvironmentVariableAliasArgs;
import com.pulumi.qovery.inputs.EnvironmentEnvironmentVariableOverrideArgs;
import com.pulumi.qovery.inputs.EnvironmentSecretArgs;
import com.pulumi.qovery.inputs.EnvironmentSecretAliasArgs;
import com.pulumi.qovery.inputs.EnvironmentSecretOverrideArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var myEnvironment = new Environment("myEnvironment", EnvironmentArgs.builder()
.projectId(qovery_project.my_project().id())
.clusterId(qovery_cluster.my_cluster().id())
.mode("DEVELOPMENT")
.environmentVariables(EnvironmentEnvironmentVariableArgs.builder()
.key("ENV_VAR_KEY")
.value("ENV_VAR_VALUE")
.build())
.environmentVariableAliases(EnvironmentEnvironmentVariableAliasArgs.builder()
.key("ENV_VAR_KEY_ALIAS")
.value("ENV_VAR_KEY")
.build())
.environmentVariableOverrides(EnvironmentEnvironmentVariableOverrideArgs.builder()
.key("SOME_PROJECT_VARIABLE")
.value("OVERRIDDEN_VALUE")
.build())
.secrets(EnvironmentSecretArgs.builder()
.key("SECRET_KEY")
.value("SECRET_VALUE")
.build())
.secretAliases(EnvironmentSecretAliasArgs.builder()
.key("SECRET_KEY_ALIAS")
.value("SECRET_KEY")
.build())
.secretOverrides(EnvironmentSecretOverrideArgs.builder()
.key("SOME_PROJECT_SECRET")
.value("OVERRIDDEN_VALUE")
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(qovery_project.my_project())
.build());
}
}
resources:
myEnvironment:
type: qovery:Environment
properties:
# Required
projectId: ${qovery_project.my_project.id}
# Optional
clusterId: ${qovery_cluster.my_cluster.id}
mode: DEVELOPMENT
environmentVariables:
- key: ENV_VAR_KEY
value: ENV_VAR_VALUE
environmentVariableAliases:
- key: ENV_VAR_KEY_ALIAS
value: ENV_VAR_KEY
environmentVariableOverrides:
- key: SOME_PROJECT_VARIABLE
value: OVERRIDDEN_VALUE
secrets:
- key: SECRET_KEY
value: SECRET_VALUE
secretAliases:
- key: SECRET_KEY_ALIAS
value: SECRET_KEY
secretOverrides:
- key: SOME_PROJECT_SECRET
value: OVERRIDDEN_VALUE
options:
dependson:
- ${qovery_project.my_project}
You can find complete examples within these repositories:
- Deploy an Application and Database within 3 environments
Create Environment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Environment(name: string, args: EnvironmentArgs, opts?: CustomResourceOptions);
@overload
def Environment(resource_name: str,
args: EnvironmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Environment(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
project_id: Optional[str] = None,
environment_variable_aliases: Optional[Sequence[EnvironmentEnvironmentVariableAliasArgs]] = None,
environment_variable_overrides: Optional[Sequence[EnvironmentEnvironmentVariableOverrideArgs]] = None,
environment_variables: Optional[Sequence[EnvironmentEnvironmentVariableArgs]] = None,
mode: Optional[str] = None,
name: Optional[str] = None,
secret_aliases: Optional[Sequence[EnvironmentSecretAliasArgs]] = None,
secret_overrides: Optional[Sequence[EnvironmentSecretOverrideArgs]] = None,
secrets: Optional[Sequence[EnvironmentSecretArgs]] = None)
func NewEnvironment(ctx *Context, name string, args EnvironmentArgs, opts ...ResourceOption) (*Environment, error)
public Environment(string name, EnvironmentArgs args, CustomResourceOptions? opts = null)
public Environment(String name, EnvironmentArgs args)
public Environment(String name, EnvironmentArgs args, CustomResourceOptions options)
type: qovery:Environment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args EnvironmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args EnvironmentArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args EnvironmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EnvironmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EnvironmentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var environmentResource = new Qovery.Environment("environmentResource", new()
{
ClusterId = "string",
ProjectId = "string",
EnvironmentVariableAliases = new[]
{
new Qovery.Inputs.EnvironmentEnvironmentVariableAliasArgs
{
Key = "string",
Value = "string",
Description = "string",
Id = "string",
},
},
EnvironmentVariableOverrides = new[]
{
new Qovery.Inputs.EnvironmentEnvironmentVariableOverrideArgs
{
Key = "string",
Value = "string",
Description = "string",
Id = "string",
},
},
EnvironmentVariables = new[]
{
new Qovery.Inputs.EnvironmentEnvironmentVariableArgs
{
Key = "string",
Value = "string",
Description = "string",
Id = "string",
},
},
Mode = "string",
Name = "string",
SecretAliases = new[]
{
new Qovery.Inputs.EnvironmentSecretAliasArgs
{
Key = "string",
Value = "string",
Description = "string",
Id = "string",
},
},
SecretOverrides = new[]
{
new Qovery.Inputs.EnvironmentSecretOverrideArgs
{
Key = "string",
Value = "string",
Description = "string",
Id = "string",
},
},
Secrets = new[]
{
new Qovery.Inputs.EnvironmentSecretArgs
{
Key = "string",
Value = "string",
Description = "string",
Id = "string",
},
},
});
example, err := qovery.NewEnvironment(ctx, "environmentResource", &qovery.EnvironmentArgs{
ClusterId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
EnvironmentVariableAliases: qovery.EnvironmentEnvironmentVariableAliasArray{
&qovery.EnvironmentEnvironmentVariableAliasArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
Description: pulumi.String("string"),
Id: pulumi.String("string"),
},
},
EnvironmentVariableOverrides: qovery.EnvironmentEnvironmentVariableOverrideArray{
&qovery.EnvironmentEnvironmentVariableOverrideArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
Description: pulumi.String("string"),
Id: pulumi.String("string"),
},
},
EnvironmentVariables: qovery.EnvironmentEnvironmentVariableArray{
&qovery.EnvironmentEnvironmentVariableArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
Description: pulumi.String("string"),
Id: pulumi.String("string"),
},
},
Mode: pulumi.String("string"),
Name: pulumi.String("string"),
SecretAliases: qovery.EnvironmentSecretAliasArray{
&qovery.EnvironmentSecretAliasArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
Description: pulumi.String("string"),
Id: pulumi.String("string"),
},
},
SecretOverrides: qovery.EnvironmentSecretOverrideArray{
&qovery.EnvironmentSecretOverrideArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
Description: pulumi.String("string"),
Id: pulumi.String("string"),
},
},
Secrets: qovery.EnvironmentSecretArray{
&qovery.EnvironmentSecretArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
Description: pulumi.String("string"),
Id: pulumi.String("string"),
},
},
})
var environmentResource = new Environment("environmentResource", EnvironmentArgs.builder()
.clusterId("string")
.projectId("string")
.environmentVariableAliases(EnvironmentEnvironmentVariableAliasArgs.builder()
.key("string")
.value("string")
.description("string")
.id("string")
.build())
.environmentVariableOverrides(EnvironmentEnvironmentVariableOverrideArgs.builder()
.key("string")
.value("string")
.description("string")
.id("string")
.build())
.environmentVariables(EnvironmentEnvironmentVariableArgs.builder()
.key("string")
.value("string")
.description("string")
.id("string")
.build())
.mode("string")
.name("string")
.secretAliases(EnvironmentSecretAliasArgs.builder()
.key("string")
.value("string")
.description("string")
.id("string")
.build())
.secretOverrides(EnvironmentSecretOverrideArgs.builder()
.key("string")
.value("string")
.description("string")
.id("string")
.build())
.secrets(EnvironmentSecretArgs.builder()
.key("string")
.value("string")
.description("string")
.id("string")
.build())
.build());
environment_resource = qovery.Environment("environmentResource",
cluster_id="string",
project_id="string",
environment_variable_aliases=[{
"key": "string",
"value": "string",
"description": "string",
"id": "string",
}],
environment_variable_overrides=[{
"key": "string",
"value": "string",
"description": "string",
"id": "string",
}],
environment_variables=[{
"key": "string",
"value": "string",
"description": "string",
"id": "string",
}],
mode="string",
name="string",
secret_aliases=[{
"key": "string",
"value": "string",
"description": "string",
"id": "string",
}],
secret_overrides=[{
"key": "string",
"value": "string",
"description": "string",
"id": "string",
}],
secrets=[{
"key": "string",
"value": "string",
"description": "string",
"id": "string",
}])
const environmentResource = new qovery.Environment("environmentResource", {
clusterId: "string",
projectId: "string",
environmentVariableAliases: [{
key: "string",
value: "string",
description: "string",
id: "string",
}],
environmentVariableOverrides: [{
key: "string",
value: "string",
description: "string",
id: "string",
}],
environmentVariables: [{
key: "string",
value: "string",
description: "string",
id: "string",
}],
mode: "string",
name: "string",
secretAliases: [{
key: "string",
value: "string",
description: "string",
id: "string",
}],
secretOverrides: [{
key: "string",
value: "string",
description: "string",
id: "string",
}],
secrets: [{
key: "string",
value: "string",
description: "string",
id: "string",
}],
});
type: qovery:Environment
properties:
clusterId: string
environmentVariableAliases:
- description: string
id: string
key: string
value: string
environmentVariableOverrides:
- description: string
id: string
key: string
value: string
environmentVariables:
- description: string
id: string
key: string
value: string
mode: string
name: string
projectId: string
secretAliases:
- description: string
id: string
key: string
value: string
secretOverrides:
- description: string
id: string
key: string
value: string
secrets:
- description: string
id: string
key: string
value: string
Environment Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Environment resource accepts the following input properties:
- Cluster
Id string - Id of the cluster [NOTE: can't be updated after creation].
- Project
Id string - Id of the project.
- Environment
Variable List<ediri.Aliases Qovery. Inputs. Environment Environment Variable Alias> - List of environment variable aliases linked to this environment.
- Environment
Variable List<ediri.Overrides Qovery. Inputs. Environment Environment Variable Override> - List of environment variable overrides linked to this environment.
- Environment
Variables List<ediri.Qovery. Inputs. Environment Environment Variable> - List of environment variables linked to this environment.
- Mode string
- Mode of the environment. - Can be:
DEVELOPMENT
,PREVIEW
,PRODUCTION
,STAGING
. - Default:DEVELOPMENT
. - Name string
- Name of the environment.
- Secret
Aliases List<ediri.Qovery. Inputs. Environment Secret Alias> - List of secret aliases linked to this environment.
- Secret
Overrides List<ediri.Qovery. Inputs. Environment Secret Override> - List of secret overrides linked to this environment.
- Secrets
List<ediri.
Qovery. Inputs. Environment Secret> - List of secrets linked to this environment.
- Cluster
Id string - Id of the cluster [NOTE: can't be updated after creation].
- Project
Id string - Id of the project.
- Environment
Variable []EnvironmentAliases Environment Variable Alias Args - List of environment variable aliases linked to this environment.
- Environment
Variable []EnvironmentOverrides Environment Variable Override Args - List of environment variable overrides linked to this environment.
- Environment
Variables []EnvironmentEnvironment Variable Args - List of environment variables linked to this environment.
- Mode string
- Mode of the environment. - Can be:
DEVELOPMENT
,PREVIEW
,PRODUCTION
,STAGING
. - Default:DEVELOPMENT
. - Name string
- Name of the environment.
- Secret
Aliases []EnvironmentSecret Alias Args - List of secret aliases linked to this environment.
- Secret
Overrides []EnvironmentSecret Override Args - List of secret overrides linked to this environment.
- Secrets
[]Environment
Secret Args - List of secrets linked to this environment.
- cluster
Id String - Id of the cluster [NOTE: can't be updated after creation].
- project
Id String - Id of the project.
- environment
Variable List<EnvironmentAliases Environment Variable Alias> - List of environment variable aliases linked to this environment.
- environment
Variable List<EnvironmentOverrides Environment Variable Override> - List of environment variable overrides linked to this environment.
- environment
Variables List<EnvironmentEnvironment Variable> - List of environment variables linked to this environment.
- mode String
- Mode of the environment. - Can be:
DEVELOPMENT
,PREVIEW
,PRODUCTION
,STAGING
. - Default:DEVELOPMENT
. - name String
- Name of the environment.
- secret
Aliases List<EnvironmentSecret Alias> - List of secret aliases linked to this environment.
- secret
Overrides List<EnvironmentSecret Override> - List of secret overrides linked to this environment.
- secrets
List<Environment
Secret> - List of secrets linked to this environment.
- cluster
Id string - Id of the cluster [NOTE: can't be updated after creation].
- project
Id string - Id of the project.
- environment
Variable EnvironmentAliases Environment Variable Alias[] - List of environment variable aliases linked to this environment.
- environment
Variable EnvironmentOverrides Environment Variable Override[] - List of environment variable overrides linked to this environment.
- environment
Variables EnvironmentEnvironment Variable[] - List of environment variables linked to this environment.
- mode string
- Mode of the environment. - Can be:
DEVELOPMENT
,PREVIEW
,PRODUCTION
,STAGING
. - Default:DEVELOPMENT
. - name string
- Name of the environment.
- secret
Aliases EnvironmentSecret Alias[] - List of secret aliases linked to this environment.
- secret
Overrides EnvironmentSecret Override[] - List of secret overrides linked to this environment.
- secrets
Environment
Secret[] - List of secrets linked to this environment.
- cluster_
id str - Id of the cluster [NOTE: can't be updated after creation].
- project_
id str - Id of the project.
- environment_
variable_ Sequence[Environmentaliases Environment Variable Alias Args] - List of environment variable aliases linked to this environment.
- environment_
variable_ Sequence[Environmentoverrides Environment Variable Override Args] - List of environment variable overrides linked to this environment.
- environment_
variables Sequence[EnvironmentEnvironment Variable Args] - List of environment variables linked to this environment.
- mode str
- Mode of the environment. - Can be:
DEVELOPMENT
,PREVIEW
,PRODUCTION
,STAGING
. - Default:DEVELOPMENT
. - name str
- Name of the environment.
- secret_
aliases Sequence[EnvironmentSecret Alias Args] - List of secret aliases linked to this environment.
- secret_
overrides Sequence[EnvironmentSecret Override Args] - List of secret overrides linked to this environment.
- secrets
Sequence[Environment
Secret Args] - List of secrets linked to this environment.
- cluster
Id String - Id of the cluster [NOTE: can't be updated after creation].
- project
Id String - Id of the project.
- environment
Variable List<Property Map>Aliases - List of environment variable aliases linked to this environment.
- environment
Variable List<Property Map>Overrides - List of environment variable overrides linked to this environment.
- environment
Variables List<Property Map> - List of environment variables linked to this environment.
- mode String
- Mode of the environment. - Can be:
DEVELOPMENT
,PREVIEW
,PRODUCTION
,STAGING
. - Default:DEVELOPMENT
. - name String
- Name of the environment.
- secret
Aliases List<Property Map> - List of secret aliases linked to this environment.
- secret
Overrides List<Property Map> - List of secret overrides linked to this environment.
- secrets List<Property Map>
- List of secrets linked to this environment.
Outputs
All input properties are implicitly available as output properties. Additionally, the Environment resource produces the following output properties:
- Built
In List<ediri.Environment Variables Qovery. Outputs. Environment Built In Environment Variable> - List of built-in environment variables linked to this environment.
- Id string
- The provider-assigned unique ID for this managed resource.
- Built
In []EnvironmentEnvironment Variables Built In Environment Variable - List of built-in environment variables linked to this environment.
- Id string
- The provider-assigned unique ID for this managed resource.
- built
In List<EnvironmentEnvironment Variables Built In Environment Variable> - List of built-in environment variables linked to this environment.
- id String
- The provider-assigned unique ID for this managed resource.
- built
In EnvironmentEnvironment Variables Built In Environment Variable[] - List of built-in environment variables linked to this environment.
- id string
- The provider-assigned unique ID for this managed resource.
- built_
in_ Sequence[Environmentenvironment_ variables Built In Environment Variable] - List of built-in environment variables linked to this environment.
- id str
- The provider-assigned unique ID for this managed resource.
- built
In List<Property Map>Environment Variables - List of built-in environment variables linked to this environment.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Environment Resource
Get an existing Environment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: EnvironmentState, opts?: CustomResourceOptions): Environment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
built_in_environment_variables: Optional[Sequence[EnvironmentBuiltInEnvironmentVariableArgs]] = None,
cluster_id: Optional[str] = None,
environment_variable_aliases: Optional[Sequence[EnvironmentEnvironmentVariableAliasArgs]] = None,
environment_variable_overrides: Optional[Sequence[EnvironmentEnvironmentVariableOverrideArgs]] = None,
environment_variables: Optional[Sequence[EnvironmentEnvironmentVariableArgs]] = None,
mode: Optional[str] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
secret_aliases: Optional[Sequence[EnvironmentSecretAliasArgs]] = None,
secret_overrides: Optional[Sequence[EnvironmentSecretOverrideArgs]] = None,
secrets: Optional[Sequence[EnvironmentSecretArgs]] = None) -> Environment
func GetEnvironment(ctx *Context, name string, id IDInput, state *EnvironmentState, opts ...ResourceOption) (*Environment, error)
public static Environment Get(string name, Input<string> id, EnvironmentState? state, CustomResourceOptions? opts = null)
public static Environment get(String name, Output<String> id, EnvironmentState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Built
In List<ediri.Environment Variables Qovery. Inputs. Environment Built In Environment Variable> - List of built-in environment variables linked to this environment.
- Cluster
Id string - Id of the cluster [NOTE: can't be updated after creation].
- Environment
Variable List<ediri.Aliases Qovery. Inputs. Environment Environment Variable Alias> - List of environment variable aliases linked to this environment.
- Environment
Variable List<ediri.Overrides Qovery. Inputs. Environment Environment Variable Override> - List of environment variable overrides linked to this environment.
- Environment
Variables List<ediri.Qovery. Inputs. Environment Environment Variable> - List of environment variables linked to this environment.
- Mode string
- Mode of the environment. - Can be:
DEVELOPMENT
,PREVIEW
,PRODUCTION
,STAGING
. - Default:DEVELOPMENT
. - Name string
- Name of the environment.
- Project
Id string - Id of the project.
- Secret
Aliases List<ediri.Qovery. Inputs. Environment Secret Alias> - List of secret aliases linked to this environment.
- Secret
Overrides List<ediri.Qovery. Inputs. Environment Secret Override> - List of secret overrides linked to this environment.
- Secrets
List<ediri.
Qovery. Inputs. Environment Secret> - List of secrets linked to this environment.
- Built
In []EnvironmentEnvironment Variables Built In Environment Variable Args - List of built-in environment variables linked to this environment.
- Cluster
Id string - Id of the cluster [NOTE: can't be updated after creation].
- Environment
Variable []EnvironmentAliases Environment Variable Alias Args - List of environment variable aliases linked to this environment.
- Environment
Variable []EnvironmentOverrides Environment Variable Override Args - List of environment variable overrides linked to this environment.
- Environment
Variables []EnvironmentEnvironment Variable Args - List of environment variables linked to this environment.
- Mode string
- Mode of the environment. - Can be:
DEVELOPMENT
,PREVIEW
,PRODUCTION
,STAGING
. - Default:DEVELOPMENT
. - Name string
- Name of the environment.
- Project
Id string - Id of the project.
- Secret
Aliases []EnvironmentSecret Alias Args - List of secret aliases linked to this environment.
- Secret
Overrides []EnvironmentSecret Override Args - List of secret overrides linked to this environment.
- Secrets
[]Environment
Secret Args - List of secrets linked to this environment.
- built
In List<EnvironmentEnvironment Variables Built In Environment Variable> - List of built-in environment variables linked to this environment.
- cluster
Id String - Id of the cluster [NOTE: can't be updated after creation].
- environment
Variable List<EnvironmentAliases Environment Variable Alias> - List of environment variable aliases linked to this environment.
- environment
Variable List<EnvironmentOverrides Environment Variable Override> - List of environment variable overrides linked to this environment.
- environment
Variables List<EnvironmentEnvironment Variable> - List of environment variables linked to this environment.
- mode String
- Mode of the environment. - Can be:
DEVELOPMENT
,PREVIEW
,PRODUCTION
,STAGING
. - Default:DEVELOPMENT
. - name String
- Name of the environment.
- project
Id String - Id of the project.
- secret
Aliases List<EnvironmentSecret Alias> - List of secret aliases linked to this environment.
- secret
Overrides List<EnvironmentSecret Override> - List of secret overrides linked to this environment.
- secrets
List<Environment
Secret> - List of secrets linked to this environment.
- built
In EnvironmentEnvironment Variables Built In Environment Variable[] - List of built-in environment variables linked to this environment.
- cluster
Id string - Id of the cluster [NOTE: can't be updated after creation].
- environment
Variable EnvironmentAliases Environment Variable Alias[] - List of environment variable aliases linked to this environment.
- environment
Variable EnvironmentOverrides Environment Variable Override[] - List of environment variable overrides linked to this environment.
- environment
Variables EnvironmentEnvironment Variable[] - List of environment variables linked to this environment.
- mode string
- Mode of the environment. - Can be:
DEVELOPMENT
,PREVIEW
,PRODUCTION
,STAGING
. - Default:DEVELOPMENT
. - name string
- Name of the environment.
- project
Id string - Id of the project.
- secret
Aliases EnvironmentSecret Alias[] - List of secret aliases linked to this environment.
- secret
Overrides EnvironmentSecret Override[] - List of secret overrides linked to this environment.
- secrets
Environment
Secret[] - List of secrets linked to this environment.
- built_
in_ Sequence[Environmentenvironment_ variables Built In Environment Variable Args] - List of built-in environment variables linked to this environment.
- cluster_
id str - Id of the cluster [NOTE: can't be updated after creation].
- environment_
variable_ Sequence[Environmentaliases Environment Variable Alias Args] - List of environment variable aliases linked to this environment.
- environment_
variable_ Sequence[Environmentoverrides Environment Variable Override Args] - List of environment variable overrides linked to this environment.
- environment_
variables Sequence[EnvironmentEnvironment Variable Args] - List of environment variables linked to this environment.
- mode str
- Mode of the environment. - Can be:
DEVELOPMENT
,PREVIEW
,PRODUCTION
,STAGING
. - Default:DEVELOPMENT
. - name str
- Name of the environment.
- project_
id str - Id of the project.
- secret_
aliases Sequence[EnvironmentSecret Alias Args] - List of secret aliases linked to this environment.
- secret_
overrides Sequence[EnvironmentSecret Override Args] - List of secret overrides linked to this environment.
- secrets
Sequence[Environment
Secret Args] - List of secrets linked to this environment.
- built
In List<Property Map>Environment Variables - List of built-in environment variables linked to this environment.
- cluster
Id String - Id of the cluster [NOTE: can't be updated after creation].
- environment
Variable List<Property Map>Aliases - List of environment variable aliases linked to this environment.
- environment
Variable List<Property Map>Overrides - List of environment variable overrides linked to this environment.
- environment
Variables List<Property Map> - List of environment variables linked to this environment.
- mode String
- Mode of the environment. - Can be:
DEVELOPMENT
,PREVIEW
,PRODUCTION
,STAGING
. - Default:DEVELOPMENT
. - name String
- Name of the environment.
- project
Id String - Id of the project.
- secret
Aliases List<Property Map> - List of secret aliases linked to this environment.
- secret
Overrides List<Property Map> - List of secret overrides linked to this environment.
- secrets List<Property Map>
- List of secrets linked to this environment.
Supporting Types
EnvironmentBuiltInEnvironmentVariable, EnvironmentBuiltInEnvironmentVariableArgs
- Description string
- Description of the environment variable.
- Id string
- Id of the environment variable.
- Key string
- Key of the environment variable.
- Value string
- Value of the environment variable.
- Description string
- Description of the environment variable.
- Id string
- Id of the environment variable.
- Key string
- Key of the environment variable.
- Value string
- Value of the environment variable.
- description String
- Description of the environment variable.
- id String
- Id of the environment variable.
- key String
- Key of the environment variable.
- value String
- Value of the environment variable.
- description string
- Description of the environment variable.
- id string
- Id of the environment variable.
- key string
- Key of the environment variable.
- value string
- Value of the environment variable.
- description str
- Description of the environment variable.
- id str
- Id of the environment variable.
- key str
- Key of the environment variable.
- value str
- Value of the environment variable.
- description String
- Description of the environment variable.
- id String
- Id of the environment variable.
- key String
- Key of the environment variable.
- value String
- Value of the environment variable.
EnvironmentEnvironmentVariable, EnvironmentEnvironmentVariableArgs
- Key string
- Key of the environment variable.
- Value string
- Value of the environment variable.
- Description string
- Description of the environment variable.
- Id string
- Id of the environment variable.
- Key string
- Key of the environment variable.
- Value string
- Value of the environment variable.
- Description string
- Description of the environment variable.
- Id string
- Id of the environment variable.
- key String
- Key of the environment variable.
- value String
- Value of the environment variable.
- description String
- Description of the environment variable.
- id String
- Id of the environment variable.
- key string
- Key of the environment variable.
- value string
- Value of the environment variable.
- description string
- Description of the environment variable.
- id string
- Id of the environment variable.
- key str
- Key of the environment variable.
- value str
- Value of the environment variable.
- description str
- Description of the environment variable.
- id str
- Id of the environment variable.
- key String
- Key of the environment variable.
- value String
- Value of the environment variable.
- description String
- Description of the environment variable.
- id String
- Id of the environment variable.
EnvironmentEnvironmentVariableAlias, EnvironmentEnvironmentVariableAliasArgs
- Key string
- Name of the environment variable alias.
- Value string
- Name of the variable to alias.
- Description string
- Description of the environment variable alias.
- Id string
- Id of the environment variable alias.
- Key string
- Name of the environment variable alias.
- Value string
- Name of the variable to alias.
- Description string
- Description of the environment variable alias.
- Id string
- Id of the environment variable alias.
- key String
- Name of the environment variable alias.
- value String
- Name of the variable to alias.
- description String
- Description of the environment variable alias.
- id String
- Id of the environment variable alias.
- key string
- Name of the environment variable alias.
- value string
- Name of the variable to alias.
- description string
- Description of the environment variable alias.
- id string
- Id of the environment variable alias.
- key str
- Name of the environment variable alias.
- value str
- Name of the variable to alias.
- description str
- Description of the environment variable alias.
- id str
- Id of the environment variable alias.
- key String
- Name of the environment variable alias.
- value String
- Name of the variable to alias.
- description String
- Description of the environment variable alias.
- id String
- Id of the environment variable alias.
EnvironmentEnvironmentVariableOverride, EnvironmentEnvironmentVariableOverrideArgs
- Key string
- Name of the environment variable override.
- Value string
- Value of the environment variable override.
- Description string
- Description of the environment variable override.
- Id string
- Id of the environment variable override.
- Key string
- Name of the environment variable override.
- Value string
- Value of the environment variable override.
- Description string
- Description of the environment variable override.
- Id string
- Id of the environment variable override.
- key String
- Name of the environment variable override.
- value String
- Value of the environment variable override.
- description String
- Description of the environment variable override.
- id String
- Id of the environment variable override.
- key string
- Name of the environment variable override.
- value string
- Value of the environment variable override.
- description string
- Description of the environment variable override.
- id string
- Id of the environment variable override.
- key str
- Name of the environment variable override.
- value str
- Value of the environment variable override.
- description str
- Description of the environment variable override.
- id str
- Id of the environment variable override.
- key String
- Name of the environment variable override.
- value String
- Value of the environment variable override.
- description String
- Description of the environment variable override.
- id String
- Id of the environment variable override.
EnvironmentSecret, EnvironmentSecretArgs
- Key string
- Key of the secret.
- Value string
- Value of the secret.
- Description string
- Description of the secret.
- Id string
- Id of the secret.
- Key string
- Key of the secret.
- Value string
- Value of the secret.
- Description string
- Description of the secret.
- Id string
- Id of the secret.
- key String
- Key of the secret.
- value String
- Value of the secret.
- description String
- Description of the secret.
- id String
- Id of the secret.
- key string
- Key of the secret.
- value string
- Value of the secret.
- description string
- Description of the secret.
- id string
- Id of the secret.
- key str
- Key of the secret.
- value str
- Value of the secret.
- description str
- Description of the secret.
- id str
- Id of the secret.
- key String
- Key of the secret.
- value String
- Value of the secret.
- description String
- Description of the secret.
- id String
- Id of the secret.
EnvironmentSecretAlias, EnvironmentSecretAliasArgs
- Key string
- Name of the secret alias.
- Value string
- Name of the secret to alias.
- Description string
- Description of the secret alias.
- Id string
- Id of the secret alias.
- Key string
- Name of the secret alias.
- Value string
- Name of the secret to alias.
- Description string
- Description of the secret alias.
- Id string
- Id of the secret alias.
- key String
- Name of the secret alias.
- value String
- Name of the secret to alias.
- description String
- Description of the secret alias.
- id String
- Id of the secret alias.
- key string
- Name of the secret alias.
- value string
- Name of the secret to alias.
- description string
- Description of the secret alias.
- id string
- Id of the secret alias.
- key str
- Name of the secret alias.
- value str
- Name of the secret to alias.
- description str
- Description of the secret alias.
- id str
- Id of the secret alias.
- key String
- Name of the secret alias.
- value String
- Name of the secret to alias.
- description String
- Description of the secret alias.
- id String
- Id of the secret alias.
EnvironmentSecretOverride, EnvironmentSecretOverrideArgs
- Key string
- Name of the secret override.
- Value string
- Value of the secret override.
- Description string
- Description of the secret override.
- Id string
- Id of the secret override.
- Key string
- Name of the secret override.
- Value string
- Value of the secret override.
- Description string
- Description of the secret override.
- Id string
- Id of the secret override.
- key String
- Name of the secret override.
- value String
- Value of the secret override.
- description String
- Description of the secret override.
- id String
- Id of the secret override.
- key string
- Name of the secret override.
- value string
- Value of the secret override.
- description string
- Description of the secret override.
- id string
- Id of the secret override.
- key str
- Name of the secret override.
- value str
- Value of the secret override.
- description str
- Description of the secret override.
- id str
- Id of the secret override.
- key String
- Name of the secret override.
- value String
- Value of the secret override.
- description String
- Description of the secret override.
- id String
- Id of the secret override.
Import
$ pulumi import qovery:index/environment:Environment my_environment "<environment_id>"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- qovery dirien/pulumi-qovery
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
qovery
Terraform Provider.