outputs.tf 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Outputs for minimal Amazon Bedrock deployment
  2. output "bedrock_role_arn" {
  3. description = "ARN of the IAM role for Bedrock access"
  4. value = aws_iam_role.bedrock_role.arn
  5. }
  6. output "bedrock_role_name" {
  7. description = "Name of the IAM role for Bedrock access"
  8. value = aws_iam_role.bedrock_role.name
  9. }
  10. output "bedrock_policy_arn" {
  11. description = "ARN of the IAM policy for Bedrock access"
  12. value = aws_iam_policy.bedrock_access.arn
  13. }
  14. output "aws_region" {
  15. description = "AWS region used for deployment"
  16. value = var.aws_region
  17. }
  18. output "bedrock_endpoint" {
  19. description = "Bedrock runtime endpoint URL"
  20. value = "https://bedrock-runtime.${var.aws_region}.amazonaws.com"
  21. }
  22. output "user_access_key_id" {
  23. description = "Access key ID for the IAM user (if created)"
  24. value = var.create_user ? aws_iam_access_key.bedrock_user[0].id : null
  25. sensitive = true
  26. }
  27. output "user_secret_access_key" {
  28. description = "Secret access key for the IAM user (if created)"
  29. value = var.create_user ? aws_iam_access_key.bedrock_user[0].secret : null
  30. sensitive = true
  31. }