Coder Social home page Coder Social logo

Comments (5)

hferentschik avatar hferentschik commented on June 8, 2024

@zakswindow, I am not quite sure what you are asking here. Can you please provide some more context?

Under the hood this module already uses terraform-aws-eks (https://github.com/jenkins-x/terraform-aws-eks-jx/blob/master/modules/cluster/main.tf#L54). What should we in your opnion do? Expose some more functionality from terraform-aws-eks from this module? Change some configuration?

from terraform-aws-eks-jx.

zakswindow avatar zakswindow commented on June 8, 2024

@zakswindow, I am not quite sure what you are asking here. Can you please provide some more context?

Under the hood this module already uses terraform-aws-eks (https://github.com/jenkins-x/terraform-aws-eks-jx/blob/master/modules/cluster/main.tf#L54). What should we in your opnion do? Expose some more functionality from terraform-aws-eks from this module? Change some configuration?
@hferentschik
Please see this link here https://github.com/terraform-aws-modules/terraform-aws-eks/blob/master/examples/basic/main.tf

map_roles = var.map_roles map_users = var.map_users map_accounts = var.map_accounts
If we can add this vars to jx eks module to add some additional users to configmap/aws-auth, we then don't need to add vault user manually.

from terraform-aws-eks-jx.

patrickleet avatar patrickleet commented on June 8, 2024

@hferentschik
map_users would be useful for sure

Looks like we just need a new variable here: https://github.com/jenkins-x/terraform-aws-eks-jx/blob/master/modules/cluster/variables.tf

And to pass it in here: https://github.com/jenkins-x/terraform-aws-eks-jx/blob/master/modules/cluster/main.tf#L55

That way we can use jx module like so:

module "eks-jx" {
  source  = "jenkins-x/eks-jx/aws"
  // ...
  map_users = [
    {
      userarn  = aws_iam_user.patrick.arn
      username = aws_iam_user.patrick.name
      groups   = ["system:masters"]
    }
  ]
}

resource "aws_iam_user" "patrick" {
  name = "patrick"
}

from terraform-aws-eks-jx.

patrickleet avatar patrickleet commented on June 8, 2024

It's also worth noting that currently, we can't add new users to aws-auth configmap, because any future terraform plan and apply's wipe out the changes.

from terraform-aws-eks-jx.

ankitm123 avatar ankitm123 commented on June 8, 2024

🎉 This issue has been resolved in version 1.4.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

from terraform-aws-eks-jx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.