Skip to content

Commit c731137

Browse files
mirodrr2mirodrr
andauthored
add service catalog registry application (#106)
Co-authored-by: michael rodriguez <[email protected]>
1 parent b675492 commit c731137

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

litellm-terraform-stack/providers.tf

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,18 @@ terraform {
22
backend "s3" {}
33
}
44

5+
data "aws_caller_identity" "current" {}
6+
data "aws_region" "current" {}
7+
58
locals {
9+
SolutionNameKeySatisfyingRestrictions = "Guidance-for-Running-Generative-AI-Gateway-Proxy-on-AWS"
610
common_labels = {
711
project = "llmgateway"
812
AWSSolution = "ToDo"
913
GithubRepo = "https://github.com/aws-solutions-library-samples/"
14+
SolutionID = "TBD"
15+
SolutionNameKey = "Guidance for Running Generative AI Gateway Proxy on AWS"
16+
SolutionVersionKey = "1.0.0"
1017
}
1118
}
1219

@@ -17,6 +24,18 @@ provider "aws" {
1724
}
1825
}
1926

27+
resource "aws_servicecatalogappregistry_application" "solution_application" {
28+
name = "${local.SolutionNameKeySatisfyingRestrictions}-${data.aws_region.current.name}-${data.aws_caller_identity.current.account_id}"
29+
description = "Service Catalog application to track and manage all your resources for the solution ${local.common_labels.SolutionNameKey}"
30+
31+
tags = {
32+
"Solutions:SolutionID" = local.common_labels.SolutionID
33+
"Solutions:SolutionName" = local.common_labels.SolutionNameKey
34+
"Solutions:SolutionVersion" = local.common_labels.SolutionVersionKey
35+
"Solutions:ApplicationType" = "AWS-Solutions"
36+
}
37+
}
38+
2039

2140

2241
data "aws_eks_cluster_auth" "cluster" {

0 commit comments

Comments
 (0)