Skip to content

Commit

Permalink
drop? fixup! [R] Route SNS notifications through a Lambda function (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
achave11-ucsc committed Dec 1, 2023
1 parent e4ea02a commit 0b894ab
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/azul/deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
AWSPreparedRequest,
AWSResponse,
)
from botocore.exceptions import (
NoCredentialsError,
)
import botocore.credentials
import botocore.session
import botocore.utils
Expand Down Expand Up @@ -635,8 +638,15 @@ def _validate_bucket_path_prefix(self, path_prefix):

@property
def monitoring_topic_name(self):
try:
stage = config.main_deployment_stage
except NoCredentialsError:
# Running `make openapi` in GitHub fails since retrieving the main
# deployment stage requires making a roundtrip to IAM. The
# monitoring topic is used by the monitoring Lambda.
stage = config.main_deployment_stage
return config.qualified_resource_name('monitoring',
stage=config.main_deployment_stage)
stage=stage)


aws = AWS()
Expand Down

0 comments on commit 0b894ab

Please sign in to comment.