outputs.tf 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # Outputs for minimal Amazon SageMaker deployment
  2. output "sagemaker_endpoint_name" {
  3. description = "Name of the SageMaker endpoint"
  4. value = aws_sagemaker_endpoint.llama_endpoint.name
  5. }
  6. output "sagemaker_endpoint_arn" {
  7. description = "ARN of the SageMaker endpoint"
  8. value = aws_sagemaker_endpoint.llama_endpoint.arn
  9. }
  10. output "sagemaker_role_arn" {
  11. description = "ARN of the SageMaker execution role"
  12. value = aws_iam_role.sagemaker_execution_role.arn
  13. }
  14. output "model_artifacts_bucket" {
  15. description = "S3 bucket name for model artifacts"
  16. value = aws_s3_bucket.model_artifacts.bucket
  17. }
  18. output "model_artifacts_bucket_arn" {
  19. description = "S3 bucket ARN for model artifacts"
  20. value = aws_s3_bucket.model_artifacts.arn
  21. }
  22. output "aws_region" {
  23. description = "AWS region used for deployment"
  24. value = var.aws_region
  25. }
  26. output "endpoint_url" {
  27. description = "SageMaker runtime endpoint URL for inference"
  28. value = "https://runtime.sagemaker.${var.aws_region}.amazonaws.com/endpoints/${aws_sagemaker_endpoint.llama_endpoint.name}/invocations"
  29. }