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

Update portMappings to include containerPortRange #178

Closed
wants to merge 9 commits into from

Conversation

asmithdt
Copy link

@asmithdt asmithdt commented Jan 29, 2024

what

Allow specifying containerPortRange in portMappings

why

To support containerPortRange

references

@asmithdt asmithdt requested review from a team as code owners January 29, 2024 16:22
variables.tf Outdated
protocol = optional(string)
name = optional(string)
appProtocol = optional(string)
containerPortRange = optional(string)
}))
description = "The port mappings to configure for the container. This is a list of maps. Each map should contain \"containerPort\", \"hostPort\", and \"protocol\", where \"protocol\" is one of \"tcp\" or \"udp\". If using containers in a task with the awsvpc or host network mode, the hostPort can either be left blank or set to the same value as the containerPort"
Copy link
Sponsor Member

Choose a reason for hiding this comment

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

It would be good to include containerPortRange in the description if possible

Copy link
Author

Choose a reason for hiding this comment

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

I've just indicated that it's an alternative to containerPort, hope that's okay?

@joe-niland joe-niland added the minor New features that do not break anything label Jan 30, 2024
@joe-niland
Copy link
Sponsor Member

/terratest

@aknysh
Copy link
Member

aknysh commented Jan 30, 2024

/terratest

Copy link
Member

@aknysh aknysh left a comment

Choose a reason for hiding this comment

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

thanks @asmithdt

Copy link
Member

@aknysh aknysh left a comment

Choose a reason for hiding this comment

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

@asmithdt can you please address this error in the terratest and update it?

https://github.com/cloudposse/actions/actions/runs/7712166124/job/21019086777

@joe-niland
Copy link
Sponsor Member

Hi @asmithdt
The tests will need updating to allow the Terratest check to pass.
Are you happy to take a look?

@asmithdt
Copy link
Author

Apologies, I missed these messages. I have made a change which I hope will resolve the tests, I can't seem to run locally to check though; not sure if that's something I need to setup with the build-harness? Let me know if that doesn't get it. Cheers!

Copy link

mergify bot commented May 6, 2024

💥 This pull request now has conflicts. Could you fix it @asmithdt? 🙏

@mergify mergify bot added the conflict This PR has conflicts label May 6, 2024
@mergify mergify bot closed this May 6, 2024
Copy link

mergify bot commented May 6, 2024

This PR was closed due to inactivity and merge conflicts. 😭
Please resolve the conflicts and reopen if necessary.

@mergify mergify bot removed the conflict This PR has conflicts label May 6, 2024
@YeomansIII
Copy link

@asmithdt Anything I can do to help on this? Honestly not sure how to get containerPortRange to work in terraform at all, even though it supported on ECS. If anyone has any workarounds in the meantime, like having terraform forgo any validation of the container_definition (I can't think of another way to get containerPortRange into AWS...)

@joe-niland joe-niland reopened this May 15, 2024
Copy link

mergify bot commented May 15, 2024

💥 This pull request now has conflicts. Could you fix it @asmithdt? 🙏

@mergify mergify bot added the conflict This PR has conflicts label May 15, 2024
@joe-niland
Copy link
Sponsor Member

Hi @asmithdt

Sorry for the delay.

Could you please run the following and commit the result?

make init
make readme

@mergify mergify bot closed this May 22, 2024
Copy link

mergify bot commented May 22, 2024

This PR was closed due to inactivity and merge conflicts. 😭
Please resolve the conflicts and reopen if necessary.

@mergify mergify bot removed the conflict This PR has conflicts label May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor New features that do not break anything
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants