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

Fix communication between Batch instances and ECS tasks #16

Open
wants to merge 14 commits into
base: develop
Choose a base branch
from

Conversation

dmannarino
Copy link
Member

Pull request checklist

Please check if your PR fulfills the following requirements:

  • Make sure you are requesting to pull a topic/feature/bugfix branch (right side). Don't request your master!
  • Make sure you are making a pull request against the develop branch (left side). Also you should start your branch off our develop.
  • Check the commit's or even all commits' message styles matches our requested structure.
  • Check your code additions will fail neither code linting checks nor unit test.

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

  • Batch instances time-out trying to phone home their success or failure
  • Also, per the docs, specifying inline rules in a SG and then externally defined rules can result in inconsistent behavior during apply

Issue Number: GTC-2860

What is the new behavior?

  • Batch instances report home okay
  • All rules are externally define, removing inconsistency

Does this introduce a breaking change?

  • Yes
  • No

Other information

Data API PR (to attach the security group to the compute environments) to follow

@dmannarino dmannarino requested review from solomon-negusse, gtempus and jterry64 and removed request for gtempus and solomon-negusse August 30, 2024 20:17
Copy link

@danscales danscales left a comment

Choose a reason for hiding this comment

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

Seems reasonable, but I'll let Solomon provide the full "approve".

security_group_id = aws_security_group.ecs_tasks.id
protocol = "tcp"
from_port = var.listener_port
to_port = var.listener_port

Choose a reason for hiding this comment

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

Is listener_port being used for two meanings, what the load balancer should listen on and what the ECS tasks should listen on for batch jobs? If so, can you update the comment on var.listener_port in variables.tf? Or create a separate variable var.ecs_tasks_port with the same value 80?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ahh, I see. Yeah, the code and comments have diverged quite a bit. Will fix, thanks!

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