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

[BUG] Fix missing public ip parameter #18

Merged
merged 2 commits into from
Mar 22, 2023

Conversation

ohookins
Copy link
Contributor

I suspect #4 broke things when it introduced some new parameters to allow AWSVPC networking to be used, as the error we keep on getting is relating to subnets not being defined. The root cause is that yargs' boolean type will default to false, whereas the array type will default to undefined.

This means that we can never compare to undefined and get the expected result, so judging whether we wanted AWSVPC networking mode or not, and whether we had the right set of parameters to satisfy that, was always flawed, and didn't configure the task definition correctly.

I've fixed that, and also started pulling out some unnecessary pre-ES6-isms but it's too big a mess to do in one PR (and too unrelated). We still depend on lodash and async although we really don't need to, but that's a bigger job for another day.

@ohookins ohookins added the bug label Mar 21, 2023
@ohookins ohookins changed the title Bug fix missing public ip parameter [BUG] Fix missing public ip parameter Mar 21, 2023
@@ -81,7 +79,7 @@ const options = {
securityGroups: argv.securityGroups
};

ecsTaskRunner(options, function(err, stream) {
ecsTaskRunner(options, function (err, stream) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Most (all?) of these are due to my editor auto-formatting. Apologies.

Copy link
Contributor

Choose a reason for hiding this comment

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

That's like apologizing for your dog barking when a stranger is poking around your windows at night, it's doing its job and doing it well :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I may very well have different settings though, I don't think we've got any editor settings file in this repo (and I'm too lazy to create one right now).

Copy link
Contributor

@liath liath left a comment

Choose a reason for hiding this comment

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

LGTM!

@ohookins ohookins merged commit c44b682 into master Mar 22, 2023
@ohookins ohookins deleted the bug-fix-missing-public-ip-parameter branch March 22, 2023 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants