apiVersion: v1
clusters:
  - cluster:
      certificate-authority-data: <CERTIFICATE_DATA>
      server: <CLUSTER_URL>
    name: <CLUSTER_NAME>
contexts:
  - context:
      cluster: <CLUSTER_NAME>
      user: <CLUSTER_NAME_USER>
    name: <CLUSTER_NAME>
current-context: <CLUSTER_NAME>
kind: Config
preferences: {}
users:
  - name: <CLUSTER_NAME_USER>
    user:
      exec:
        apiVersion: client.authentication.k8s.io/v1alpha1
        args:
          - token
          - -i
          - <CLUSTER_NAME>
        command: aws-iam-authenticator
        env:
          - name: AWS_STS_REGIONAL_ENDPOINTS
            value: regional
          - name: AWS_DEFAULT_REGION
            value: <CLUSTER_REGION>
          - name: AWS_CONFIG_FILE
            value: <AWS_CONFIG_FILE_PATH>
          - name: AWS_PROFILE
            value: ats
