Provides details for a Cloud Control API Resource. The reading of these resources is proxied through Cloud Control API handlers to the backend service.
data "aws_cloudcontrolapi_resource" "example" {
identifier = "example"
type_name = "AWS::ECS::Cluster"
}
The following arguments are required:
identifier
- (Required) Identifier of the CloudFormation resource type. For example, vpc-12345678
.type_name
- (Required) CloudFormation resource type name. For example, AWS::EC2::VPC
.The following arguments are optional:
role_arn
- (Optional) ARN of the IAM Role to assume for operations.type_version_id
- (Optional) Identifier of the CloudFormation resource type version.This data source exports the following attributes in addition to the arguments above:
properties
- JSON string matching the CloudFormation resource type schema with current configuration. Underlying attributes can be referenced via the jsondecode()
function, for example, jsondecode(data.aws_cloudcontrolapi_resource.example.properties)["example"]
.