https://pulumi.com logo
Title
g

glamorous-australia-21342

06/21/2022, 5:36 PM
How to manage aws-auth configmap with pulumi?
I'm doing something like this for now, but there might be a better way?
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

bored-table-20691

06/21/2022, 5:43 PM
g

glamorous-australia-21342

06/21/2022, 5:46 PM
oh awesome thanks