-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Added write_aws_auth_config option #228
Added write_aws_auth_config option #228
Conversation
8878814
to
0779391
Compare
aws_auth.tf
Outdated
working_dir = "${path.module}" | ||
|
||
command = <<EOS | ||
mkfifo aws_auth_configmap kube_config & \ |
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.
mkfifo
won't work on Windows.
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 for your comment.
For compatibility with Windows, it changed to a method not using mkfifo command.
How about simply if a user sets |
902f855
to
d190055
Compare
I'm still not convinced this is a good approach. Think about these scenarios:
I think you can solve these by writing the file to |
I am using the local-exec working_dir option to run under module. FYI |
I am assuming to use the aws eks update-kubeconfig command. example
|
You are right! My mistake, sorry!
You mean the AWS CLI? But in this PR, you are not assuming that. If you were assuming that, then we wouldn't need to write |
Since @philwinder opened the original issue, I've asked them to test this PR 🙂 |
Updating using kubeconfig in update_config_map_aws_auth is only used to join eks node to eks cluster. see |
d190055
to
a38a290
Compare
c25c08a
to
b4005eb
Compare
@max-rocket-internet |
Hi @yutachaos Fix that and we can merge. |
aws_auth.tf
Outdated
working_dir = "${path.module}" | ||
|
||
command = <<EOS | ||
for i in {1..5}; do \ |
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.
This was changed in #245 for ZSH
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.
Thank you fixed it.
b4005eb
to
6c0d103
Compare
and `write_aws_auth_config` variable for not create the aws_auth files option
b6b65f9
to
883f1b0
Compare
883f1b0
to
64a5785
Compare
@max-rocket-internet Hi there, thank you for adding this. Are there any plans to create a Release Tag? |
* master: Release v2.2.0 (terraform-aws-modules#270) Add optional permissions_boundary (terraform-aws-modules#265) Updating example IAM docs to include Launch Template actions (terraform-aws-modules#268) Added write_aws_auth_config option (terraform-aws-modules#228) Worker group tags (terraform-aws-modules#252) Adding the g3s.xlarge instance type ebs optimized mapping (terraform-aws-modules#258) Add enabled_metrics attributes to autoscaling_group (terraform-aws-modules#256) Use launch template defaults for launch template userdata (terraform-aws-modules#255) Enable create_before_destroy for ASG and enable force_delete to be configured (terraform-aws-modules#250)
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
Added an option not to create aws_auth configmap.
I made it possible to apply kubectl apply without generating a file to correspond.
Refer issues
#169
#170
Checklist
terraform fmt
andterraform validate
both work from the root andexamples/eks_test_fixture
directories (look in CI for an example)