Environment
Resource for managing an AWS DataZone Environment.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.datazone.Environment("example", {
name: "example",
accountIdentifier: test.accountId,
accountRegion: testAwsRegion.name,
blueprintIdentifier: testAwsDatazoneEnvironmentBlueprintConfiguration.environmentBlueprintId,
profileIdentifier: testAwsDatazoneEnvironmentProfile.id,
projectIdentifier: testAwsDatazoneProject.id,
domainIdentifier: testAwsDatazoneDomain.id,
userParameters: [
{
name: "consumerGlueDbName",
value: "consumer",
},
{
name: "producerGlueDbName",
value: "producer",
},
{
name: "workgroupName",
value: "workgroup",
},
],
});
import pulumi
import pulumi_aws as aws
example = aws.datazone.Environment("example",
name="example",
account_identifier=test["accountId"],
account_region=test_aws_region["name"],
blueprint_identifier=test_aws_datazone_environment_blueprint_configuration["environmentBlueprintId"],
profile_identifier=test_aws_datazone_environment_profile["id"],
project_identifier=test_aws_datazone_project["id"],
domain_identifier=test_aws_datazone_domain["id"],
user_parameters=[
{
"name": "consumerGlueDbName",
"value": "consumer",
},
{
"name": "producerGlueDbName",
"value": "producer",
},
{
"name": "workgroupName",
"value": "workgroup",
},
])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.DataZone.Environment("example", new()
{
Name = "example",
AccountIdentifier = test.AccountId,
AccountRegion = testAwsRegion.Name,
BlueprintIdentifier = testAwsDatazoneEnvironmentBlueprintConfiguration.EnvironmentBlueprintId,
ProfileIdentifier = testAwsDatazoneEnvironmentProfile.Id,
ProjectIdentifier = testAwsDatazoneProject.Id,
DomainIdentifier = testAwsDatazoneDomain.Id,
UserParameters = new[]
{
new Aws.DataZone.Inputs.EnvironmentUserParameterArgs
{
Name = "consumerGlueDbName",
Value = "consumer",
},
new Aws.DataZone.Inputs.EnvironmentUserParameterArgs
{
Name = "producerGlueDbName",
Value = "producer",
},
new Aws.DataZone.Inputs.EnvironmentUserParameterArgs
{
Name = "workgroupName",
Value = "workgroup",
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/datazone"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datazone.NewEnvironment(ctx, "example", &datazone.EnvironmentArgs{
Name: pulumi.String("example"),
AccountIdentifier: pulumi.Any(test.AccountId),
AccountRegion: pulumi.Any(testAwsRegion.Name),
BlueprintIdentifier: pulumi.Any(testAwsDatazoneEnvironmentBlueprintConfiguration.EnvironmentBlueprintId),
ProfileIdentifier: pulumi.Any(testAwsDatazoneEnvironmentProfile.Id),
ProjectIdentifier: pulumi.Any(testAwsDatazoneProject.Id),
DomainIdentifier: pulumi.Any(testAwsDatazoneDomain.Id),
UserParameters: datazone.EnvironmentUserParameterArray{
&datazone.EnvironmentUserParameterArgs{
Name: pulumi.String("consumerGlueDbName"),
Value: pulumi.String("consumer"),
},
&datazone.EnvironmentUserParameterArgs{
Name: pulumi.String("producerGlueDbName"),
Value: pulumi.String("producer"),
},
&datazone.EnvironmentUserParameterArgs{
Name: pulumi.String("workgroupName"),
Value: pulumi.String("workgroup"),
},
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.datazone.Environment;
import com.pulumi.aws.datazone.EnvironmentArgs;
import com.pulumi.aws.datazone.inputs.EnvironmentUserParameterArgs;
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 example = new Environment("example", EnvironmentArgs.builder()
.name("example")
.accountIdentifier(test.accountId())
.accountRegion(testAwsRegion.name())
.blueprintIdentifier(testAwsDatazoneEnvironmentBlueprintConfiguration.environmentBlueprintId())
.profileIdentifier(testAwsDatazoneEnvironmentProfile.id())
.projectIdentifier(testAwsDatazoneProject.id())
.domainIdentifier(testAwsDatazoneDomain.id())
.userParameters(
EnvironmentUserParameterArgs.builder()
.name("consumerGlueDbName")
.value("consumer")
.build(),
EnvironmentUserParameterArgs.builder()
.name("producerGlueDbName")
.value("producer")
.build(),
EnvironmentUserParameterArgs.builder()
.name("workgroupName")
.value("workgroup")
.build())
.build());
}
}
resources:
example:
type: aws:datazone:Environment
properties:
name: example
accountIdentifier: ${test.accountId}
accountRegion: ${testAwsRegion.name}
blueprintIdentifier: ${testAwsDatazoneEnvironmentBlueprintConfiguration.environmentBlueprintId}
profileIdentifier: ${testAwsDatazoneEnvironmentProfile.id}
projectIdentifier: ${testAwsDatazoneProject.id}
domainIdentifier: ${testAwsDatazoneDomain.id}
userParameters:
- name: consumerGlueDbName
value: consumer
- name: producerGlueDbName
value: producer
- name: workgroupName
value: workgroup
Import
Using pulumi import
, import DataZone Environment using the domain_idntifier,id
. For example:
$ pulumi import aws:datazone/environment:Environment example dzd_d2i7tzk3tnjjf4,5vpywijpwryec0
Properties
The ID of the Amazon Web Services account where the environment exists
The Amazon Web Services region where the environment exists.
The blueprint with which the environment is created.
The description of the environment.
The ID of the domain where the environment exists.
The business glossary terms that can be used in this environment.
The details of the last deployment of the environment.
The ID of the profile with which the environment is created.
The ID of the project where the environment exists. The following arguments are optional:
The provider of the environment.
The user parameters that are used in the environment. See User Parameters for more information.