Skip to content

Example of using output config_map_aws_auth? #906

@darrenfurr

Description

@darrenfurr

I'm looking for an example of using the output config_map_aws_auth.
I want to apply the configmap when the cluster is first created.

Later, I then add aws_eks_fargate_profile in another Terraform (which also adds to the aws-auth configmap), so if this module is re-run it breaks the Fargate profile.

I tried this:

resource "local_file" "aws_auth" {
  content              = module.kubernetes.config_map_aws_auth
  filename             = "config-map-aws-auth_${module.kubernetes.cluster_id}.yaml"
  file_permission      = "0644"
  directory_permission = "0755"
}

But gives me this error...

module.kubernetes.config_map_aws_auth is empty tuple
This value does not have any attributes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions