resources/cluster_in_new_VPC.yaml [37:60]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    asgMetricsCollection:
      - granularity: 1Minute
        metrics: # note this is not the full set of ASG metrics that can be collected
          - GroupDesiredCapacity
          - GroupInServiceInstances
          - GroupPendingInstances
          - GroupStandbyInstances
          - GroupTerminatingInstances
          - GroupTotalInstances
    tags:
      k8s.io/cluster-autoscaler/enabled: "true" # required for autoscaler autodiscovery to work
      k8s.io/cluster-autoscaler/MY_CLUSTER_NAME: "owned" # required for autoscaler autodiscovery to work
    iam:
      withAddonPolicies:
        autoScaler: true
      attachPolicyARNs:
        - arn:aws:iam::aws:policy/AmazonEKSWorkerNodePolicy
        - arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy
        - arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly
        - arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore
        - arn:aws:iam::aws:policy/CloudWatchFullAccess
    preBootstrapCommands:
      # install ssm agent
      - yum install -y https://s3.amazonaws.com/ec2-downloads-windows/SSMAgent/latest/linux_amd64/amazon-ssm-agent.rpm
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



resources/cluster_in_new_VPC.yaml [70:93]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    asgMetricsCollection:
      - granularity: 1Minute
        metrics: # note this is not the full set of ASG metrics that can be collected
          - GroupDesiredCapacity
          - GroupInServiceInstances
          - GroupPendingInstances
          - GroupStandbyInstances
          - GroupTerminatingInstances
          - GroupTotalInstances
    tags:
      k8s.io/cluster-autoscaler/enabled: "true" # required for autoscaler autodiscovery to work
      k8s.io/cluster-autoscaler/MY_CLUSTER_NAME: "owned" # required for autoscaler autodiscovery to work
    iam:
      withAddonPolicies:
        autoScaler: true
      attachPolicyARNs:
        - arn:aws:iam::aws:policy/AmazonEKSWorkerNodePolicy
        - arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy
        - arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly
        - arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore
        - arn:aws:iam::aws:policy/CloudWatchFullAccess
    preBootstrapCommands:
      # install ssm agent
      - yum install -y https://s3.amazonaws.com/ec2-downloads-windows/SSMAgent/latest/linux_amd64/amazon-ssm-agent.rpm
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



