File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,18 @@ terraform {
22 backend "s3" {}
33}
44
5+ data "aws_caller_identity" "current" {}
6+ data "aws_region" "current" {}
7+
58locals {
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
2241data "aws_eks_cluster_auth" "cluster" {
You can’t perform that action at this time.
0 commit comments