Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup of BatchLaunchTemplate + make External SNS trigger configurable #23

Merged
merged 3 commits into from
Nov 20, 2024

Conversation

rpmcginty
Copy link
Collaborator

@rpmcginty rpmcginty commented Nov 20, 2024

  • fix launch template class method
  • make external sns trigger construct more configurable

What's in this Change?

@rpmcginty rpmcginty requested a review from njmei November 20, 2024 21:50
Comment on lines 117 to 119
enabled=(env_base.env_type is EnvType.PROD)
if sqs_event_source_enabled is None
else sqs_event_source_enabled,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super-nit, but maybe the order of priority is clearer if written as:

enabled=sqs_event_source_enabled
if sqs_event_event_source_enabled
else (env_base.env_type is EnvType.PROD)

@@ -71,7 +82,7 @@ def __init__(
scope=self,
id=env_base.get_construct_id(external_sns_event_name, "sns-event-queue"),
queue_name=env_base.prefixed(external_sns_event_name, "sns-event-queue"),
retention_period=cdk.Duration.days(7),
retention_period=external_sns_event_queue_retention_period or cdk.Duration.days(7),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could set the default for external_sns_event_queue_retention_period to cdk.Duration.days(7) in the signature and simplify this line to:

retention_period=external_sns_event_queue_retention_period,

?

Copy link
Collaborator

@njmei njmei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No additional comments beyond the ones Sherif raised

@rpmcginty rpmcginty merged commit 9085cce into main Nov 20, 2024
4 checks passed
@rpmcginty rpmcginty deleted the bugfix/remove-abstractmethod-deco branch November 21, 2024 01:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants