Skip to content
This repository was archived by the owner on Jun 8, 2025. It is now read-only.

Conversation

@wardviaene
Copy link

This PR adds support for multiple services

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:?

# 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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants