Skip to content

Commit

Permalink
fix: tidy up client secret id export names
Browse files Browse the repository at this point in the history
  • Loading branch information
anayeaye committed Mar 5, 2024
1 parent 2af4229 commit 1f0ded0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
],
Expand All @@ -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",
Expand Down
10 changes: 5 additions & 5 deletions infra/stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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}",
)

Expand Down Expand Up @@ -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}",
)

Expand Down

0 comments on commit 1f0ded0

Please sign in to comment.