Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Updated options for ECS deploys #583

Merged
merged 2 commits into from
Oct 19, 2020

Conversation

surminus
Copy link
Contributor

First of all, I'd like to say how excited I am about this project! As an ECS user, while there are multiple deploy tools available, I haven't found anything that feels flexible enough to meet our requirements. The hooks feel especially beneficial.

I'm really interested in the design choices around running an application because there are lots of opinionated tools that lack the flexibility we need. At the moment deploying into ECS with Waypoint assumes a bunch of stuff (single container on a specified port), and I'm assuming that this is mostly because it's an early release.

I guess my main question here is: how much flexibility between the configuration and the "assumed defaults" are going to be a feature of Waypoint? Will it be possible to deploy into a very specific ECS setup, or is the point that it will be generic to allow deployments to multiple plugins?

This pull request adds a little bit of code to increase the flexibility of the ECS plugin, to:

  1. Add some configuration options to the main container
  2. Allow running additional containers alongside

Appreciate this project is still super new, but I couldn't help myself diving in, particularly since it's something that could potentially solve a problem for us!

This allows specifying additional environment variables to the default
PORT => 3000 mapping, and specifying secrets to use with the default
container.

I'm still trying to work out what the flow should be for a Waypoint
deployment into ECS, but it seems like we have at the very least a
default container that is created during the build stage.
The deployment to ECS is quite simple: a single container, on a chosen
port.

This allows specifying additional containers to run along side the main
container which is common as a use case.
Copy link
Contributor

@mitchellh mitchellh left a comment

Choose a reason for hiding this comment

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

Thank you! I agree I think Waypoint has huge promise for ECS users. This looks really good! I just want to discuss this with some other team members before merging.

@mitchellh
Copy link
Contributor

Okay! This looks awesome. We're gonna change some of the HCL attribute names a bit but otherwise we're very happy with this. thank you!

@mitchellh mitchellh merged commit 53a9147 into hashicorp:main Oct 19, 2020
@surminus
Copy link
Contributor Author

Great! Pleased I could contribute :)

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