From 1f0ded0bbd0600e920faa22b9006814737b2aa97 Mon Sep 17 00:00:00 2001 From: anayeaye Date: Tue, 5 Mar 2024 16:47:45 -0700 Subject: [PATCH] fix: tidy up client secret id export names --- app.py | 4 ++-- infra/stack.py | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app.py b/app.py index e0dc0d5..0385cf4 100644 --- a/app.py +++ b/app.py @@ -80,7 +80,7 @@ # In this case, we want this client to be able to only register new STAC ingestions in # the STAC ingestion registry service. stack.add_service_client( - "veda-workflows", + "workflows-client", scopes=[ stac_registry_scopes["stac:register"], ], @@ -98,7 +98,7 @@ ) # Programmatic Clients -client = stack.add_programmatic_client(f"{app_settings.app_name}-{app_settings.stage}-veda-sdk") +client = stack.add_programmatic_client("programmatic-client") CfnOutput( stack, "client_id", diff --git a/infra/stack.py b/infra/stack.py index 78b225e..75bc157 100644 --- a/infra/stack.py +++ b/infra/stack.py @@ -59,7 +59,7 @@ def __init__( ) else: auth_provider_client = self.add_programmatic_client( - f"{stack_name}-identity-provider", + "identity-provider", name="Identity Pool Authentication Provider", ) if app_settings.data_managers_role_arn: @@ -332,8 +332,8 @@ def add_programmatic_client( stack_name = Stack.of(self).stack_name CfnOutput( self, - f"cognito-sdk-{service_id}-secret", - export_name=f"{stack_name}-{service_id}-cognito-sdk-secret", + f"{service_id}-secret-id", + export_name=f"{stack_name}-{service_id}-secret-id", value=f"{stack_name}/{service_id}", ) @@ -375,8 +375,8 @@ def add_service_client( stack_name = Stack.of(self).stack_name CfnOutput( self, - f"cognito-app-{service_id}-secret", - export_name=f"{stack_name}-{service_id}-cognito-app-secret", + f"{service_id}-secret-id", + export_name=f"{stack_name}-{service_id}-secret-id", value=f"{stack_name}/{service_id}", )