-
-
Notifications
You must be signed in to change notification settings - Fork 552
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
feat: Allow disabling service creation to support creating just a task definition #176
feat: Allow disabling service creation to support creating just a task definition #176
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add an example of how to use this so we can validate it works as intended
@bryantbiggs, sure, I've added an example in the last commit. In this case I haven't tested the example as I don't have a sandbox account I can play around easily with it at the moment, though |
Getting back to you with an update: the fix worked for our case — an ECS cluster + a standalone task definition for it. Works as expected. We're going to use the branch until it's implemented as a part of the official module. @bryantbiggs waiting for your feedback regarding the example I provided. I'm happy to complete the rest of the change-related routines if you confirm that the solution is aligned with the whole module concept 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, few tweaks to update - make sure to run pre-commit run -a
to update docs and format code to pass CI checks
Thanks for the review and sorry for the silence — I've been feeling unwell. Will try to push the necessary changes today 👌 |
@bryantbiggs all checks are now passed, though I haven't tested the Fargate example on a real account. Could you please help out with this? I still don't have a spare sandbox for testing out open-source tools. However, I tested the change in the branch on our dev-account over the resource we configured last week using the proposed change — it still works there. |
I'll test this tonight/early tomorrow - there are a few minor tweaks we'll need to make, if you enable us to contribute to your PR we can push them directly here, otherwise I'll cut a PR against your PR (meta!) |
Thanks! Sure, I've added you to our fork — feel free to modify the branch of this PR |
@@ -114,6 +114,7 @@ module "ecs_service" { | |||
|
|||
linux_parameters = { | |||
capabilities = { | |||
add = [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just to quiet the diff
@@ -60,7 +60,7 @@ locals { | |||
secrets = length(var.secrets) > 0 ? var.secrets : null | |||
startTimeout = var.start_timeout | |||
stopTimeout = var.stop_timeout | |||
systemControls = length(var.system_controls) > 0 ? var.system_controls : null | |||
systemControls = length(var.system_controls) > 0 ? var.system_controls : [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was also to quiet the diff
@@ -59,6 +59,11 @@ output "task_definition_family" { | |||
value = try(aws_ecs_task_definition.this[0].family, null) | |||
} | |||
|
|||
output "task_definition_family_revision" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems like this could come in handy for others
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you! (feel free to remove my access to your fork at your convenience, thanks again!)
This PR is included in version 5.10.0 🎉 |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Description
The new
create_service_resource
variable controls whether aservice
resource should be created (which istrue
by default) allowing skipping creation of the service when it's not required.Motivation and Context
Breaking Changes
No breaking changes were introduced in the PR.
How Has This Been Tested?
examples/*
to demonstrate and validate my change(s)examples/*
projectspre-commit run -a
on my pull request