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

add support for multiple services #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wardviaene
Copy link

This PR adds support for multiple services

@@ -65,5 +65,7 @@ def lambda_handler(event, context):

# Valid event, and one we are interested in
cluster = event["detail"]["clusterArn"]
adjust_service_desired_count(ecs_client(), cluster, service)
serviceItems = service.split(',')
for item in serviceItems[:]:
Copy link
Owner

Choose a reason for hiding this comment

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

I'm unfamiliar with the syntax of serviceItems[:] - can you explain how that is different from for item in serviceItems:?

@@ -65,5 +65,7 @@ def lambda_handler(event, context):

# Valid event, and one we are interested in
cluster = event["detail"]["clusterArn"]
adjust_service_desired_count(ecs_client(), cluster, service)
serviceItems = service.split(',')
Copy link
Owner

Choose a reason for hiding this comment

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

Please remain consistent with the python naming convention of lower_case_with_underscores for variables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants