From b8ac115a7a4030399736838cc93f9a123ef12918 Mon Sep 17 00:00:00 2001 From: Ciaran Sweet <9111975+ciaransweet@users.noreply.github.com> Date: Wed, 7 Aug 2024 16:15:48 +0100 Subject: [PATCH] feat: deterministic outputs of service urls (#411) --- ingest_api/infrastructure/construct.py | 2 +- raster_api/infrastructure/construct.py | 1 + s3_website/infrastructure/construct.py | 1 + stac_api/infrastructure/construct.py | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ingest_api/infrastructure/construct.py b/ingest_api/infrastructure/construct.py index 69b3265c..2959aef0 100644 --- a/ingest_api/infrastructure/construct.py +++ b/ingest_api/infrastructure/construct.py @@ -98,13 +98,13 @@ def __init__( custom_host=config.custom_host, ) - # CfnOutput(self, "ingest-api", value=self.api.url) stack_name = Stack.of(self).stack_name CfnOutput( self, "stac-ingestor-api-url", export_name=f"{stack_name}-stac-ingestor-api-url", value=self.api.url, + key="ingestapiurl", ) register_ssm_parameter( diff --git a/raster_api/infrastructure/construct.py b/raster_api/infrastructure/construct.py index 95c71265..c7362148 100644 --- a/raster_api/infrastructure/construct.py +++ b/raster_api/infrastructure/construct.py @@ -122,6 +122,7 @@ def __init__( "raster-api", value=self.raster_api.url, export_name=f"{stack_name}-raster-url", + key="rasterapiurl", ) CfnOutput(self, "raster-api-arn", value=veda_raster_function.function_arn) diff --git a/s3_website/infrastructure/construct.py b/s3_website/infrastructure/construct.py index 40d7c07f..5d89341b 100644 --- a/s3_website/infrastructure/construct.py +++ b/s3_website/infrastructure/construct.py @@ -50,4 +50,5 @@ def __init__( self, "bucket-website", value=f"https://{self.bucket.bucket_website_domain_name}", + key="stacbrowserurl", ) diff --git a/stac_api/infrastructure/construct.py b/stac_api/infrastructure/construct.py index 95be8f23..f4848a41 100644 --- a/stac_api/infrastructure/construct.py +++ b/stac_api/infrastructure/construct.py @@ -128,4 +128,5 @@ def __init__( "stac-api", value=self.stac_api.url, export_name=f"{stack_name}-stac-url", + key="stacapiurl", )