A domain is an organizing entity for connecting together assets, users, and their projects
Creates an Amazon DataZone domain.
resource "awscc_datazone_domain" "example" {
name = "example"
domain_execution_role = awscc_iam_role.example.arn
description = "Datazone domain example"
tags = [{
key = "Modified By"
value = "AWSCC"
}]
}
resource "awscc_iam_role" "example" {
path = "/service-role/"
assume_role_policy_document = jsonencode({
"Version" : "2012-10-17",
"Statement" : [
{
"Effect" : "Allow",
"Principal" : {
"Service" : "datazone.amazonaws.com"
},
"Action" : [
"sts:AssumeRole",
"sts:TagSession"
],
"Condition" : {
"StringEquals" : {
"aws:SourceAccount" : var.source_account_id
},
"ForAllValues:StringLike" : {
"aws:TagKeys" : "datazone*"
}
}
}
]
})
managed_policy_arns = ["arn:aws:iam::aws:policy/service-role/AmazonDataZoneDomainExecutionRolePolicy"]
}
variable "source_account_id" {
type = string
description = "Source AWS account id"
}
domain_execution_role
(String) The domain execution role that is created when an Amazon DataZone domain is created. The domain execution role is created in the AWS account that houses the Amazon DataZone domain.name
(String) The name of the Amazon DataZone domain.description
(String) The description of the Amazon DataZone domain.kms_key_identifier
(String) The identifier of the AWS Key Management Service (KMS) key that is used to encrypt the Amazon DataZone domain, metadata, and reporting data.single_sign_on
(Attributes) The single-sign on configuration of the Amazon DataZone domain. (see below for nested schema)tags
(Attributes Set) The tags specified for the Amazon DataZone domain. (see below for nested schema)arn
(String) The ARN of the Amazon DataZone domain.created_at
(String) The timestamp of when the Amazon DataZone domain was last updated.domain_id
(String) The id of the Amazon DataZone domain.id
(String) Uniquely identifies the resource.last_updated_at
(String) The timestamp of when the Amazon DataZone domain was last updated.managed_account_id
(String) The identifier of the AWS account that manages the domain.portal_url
(String) The URL of the data portal for this Amazon DataZone domain.status
(String) The status of the Amazon DataZone domain.single_sign_on
Optional:
type
(String) The type of single sign-on in Amazon DataZone.user_assignment
(String) The single sign-on user assignment in Amazon DataZone.tags
Required:
key
(String) The key name of the tag.value
(String) The value for the tag.Import is supported using the following syntax:
$ terraform import awscc_datazone_domain.example <resource ID>