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

Using an existing task definition; overriding the command of a container #34

Open
elijahchancey opened this issue Jul 12, 2024 · 1 comment

Comments

@elijahchancey
Copy link

I already have a task definition family that runs the API service. Within that family, I need to override one of the commands in one of the three containers. I'm confused about how to do that with this module. I think input_event_target_input might be relevant, but I'm not sure how to use it. Would you mind putting an example in the docs? I'd very much appreciate it. Thanks!

@elijahchancey
Copy link
Author

I figured out how to do this.

event_target_input = jsonencode({
    containerOverrides = [
      {
        name = "api",
        command = [
          "echo",
          "meowmeow123"
        ]
      }
    ]
  })

Would it make sense to add this to the docs? I imagine this is a very common use case. 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

No branches or pull requests

1 participant