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

Add support for supplying Fargate platform version #26

Merged
merged 2 commits into from
Oct 13, 2020

Conversation

hectcastro
Copy link
Contributor

@hectcastro hectcastro commented Oct 10, 2020

Overview

Pass through the platformVersion keyword argument when the configured launchType is FARGATE. In addition, default platformVersion to LATEST.

Closes #19

Demo

image

Testing Instructions

See: opensupplyhub/open-apparel-registry#1129

@@ -170,34 +171,29 @@ def run_task(self, config, task_def_arn, security_group_id, subnet_id, cmd):
taskDefinition=task_def_arn
)["taskDefinition"]

kwargs = {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Using a kwargs dictionary here aids in removing the task_response code duplication below.

Copy link
Contributor

Choose a reason for hiding this comment

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

Nice refactor! 🎯

@@ -1,3 +1,5 @@
from setuptools import setup

setup(use_scm_version=True,)
setup(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Black complained about this during the PR build.

Copy link
Contributor

@colekettler colekettler left a comment

Choose a reason for hiding this comment

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

Tested this out with OAR, looks good to go 🚢

Pass through the platformVersion keyword argument when the configured
launchType is FARGATE. In addition, default platformVersion to LATEST.
@hectcastro hectcastro force-pushed the feature/hmc/fargate-platform-version branch from e7955ee to 892a664 Compare October 13, 2020 15:27
@hectcastro hectcastro merged commit d393fd7 into develop Oct 13, 2020
@hectcastro hectcastro deleted the feature/hmc/fargate-platform-version branch October 13, 2020 15:30
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.

Add ability to supply Fargate platform version
2 participants