How to manage aws-auth configmap with pulumi?
# kubernetes
g
How to manage aws-auth configmap with pulumi?
I'm doing something like this for now, but there might be a better way?
Copy code
awsAuthConfigmap.data.apply(v => {
  // console.log(YAML.parse(v.mapRoles))
  let roleMappings = YAML.parse(v.mapRoles)
  let roleMapping = {
    rolearn: "TEST",
    username: "TEST",
    groups: "TEST",
}
  roleMappings.push(roleMapping)
  console.log(roleMappings)
})
b
g
oh awesome thanks