-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
feat: support Fargate in private+public EKS environments #1117
Conversation
9762c61
to
d606add
Compare
Shouldn't be better to pass the fargate subnets directly to the fargate_profiles instead of creating a new variable? something like this:
The patch for the module would be similar to yours: |
@aittam like that? |
nope, I just sent you a PR on your forked repo on how I intended it. I have tested it and it works. Look at the examples/fargate/main.tf file on how to use it. |
merged |
fixed the formatting issue |
49262e5
to
f410c1b
Compare
rebased and re-formatted with Terraform 0.14 |
dffb0e5
to
3d991a1
Compare
Terraform 0.14 has been released and the formatter is not stable. So I pinned the version to 0.12.29 instead. |
Any update on this PR ? |
3d991a1
to
32456f0
Compare
rebased again. That PR was ready but rotted a bit. |
The EKS cluster can be provisioned with both private and public subnets. But Fargate only accepts private ones. This new variable allows to override the subnets to explicitly pass the private subnets to Fargate and work around that issue.
32456f0
to
3a5d830
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Not a repo owner). Looks concise and complete to me.
Just tested this, specifying only the private subnets of the cluster in the fargate_profile. Works as intended. Looking at the Edit: Also tested not specifying subnets in profile. The it correctly takes subnets var from parent module (as was always the case). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works as intended, I am using it in a real word project.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @zimbatm
…aws-modules#1117) NOTES: The EKS cluster can be provisioned with both private and public subnets. But Fargate only accepts private ones. This new variable allows to override the subnets to explicitly pass the private subnets to Fargate and work around that issue.
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
PR o'clock
Description
The EKS cluster can be provisioned with both private and public subnets.
But Fargate only accepts private ones.
This new variable allows to override the subnets to explicitly pass the
private subnets to Fargate and work around that issue.
Checklist