-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathoutputs.tf
More file actions
39 lines (33 loc) · 1.3 KB
/
outputs.tf
File metadata and controls
39 lines (33 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
data "aws_region" "current" {}
data "aws_caller_identity" "current" {}
output "access_policy_arn" {
description = "The ARN of the IAM policy for accessing the Bedrock Data Automation project"
value = aws_iam_policy.bedrock_access.arn
}
output "bda_project_arn" {
description = "The ARN of the Bedrock Data Automation project"
value = awscc_bedrock_data_automation_project.bda_project.project_arn
}
# aws bedrock data automation requires users to use cross Region inference support
# when processing files. the following like the profile ARNs for different inference
# profiles
# https://docs.aws.amazon.com/bedrock/latest/userguide/bda-cris.html
output "bda_profile_arn" {
description = "The profile ARN associated with the BDA project"
value = "arn:aws:bedrock:${data.aws_region.current.name}:${data.aws_caller_identity.current.account_id}:data-automation-profile/us.data-automation-v1"
}
output "bda_blueprint_arns" {
value = [
for key, bp in awscc_bedrock_blueprint.bda_blueprint : bp.blueprint_arn
]
}
output "bda_blueprint_names" {
value = [
for key, bp in awscc_bedrock_blueprint.bda_blueprint : bp.blueprint_name
]
}
output "bda_blueprint_arn_to_name" {
value = {
for key, bp in awscc_bedrock_blueprint.bda_blueprint : bp.blueprint_arn => bp.blueprint_name
}
}