apiVersion: eksctl.io/v1alpha5 kind: ClusterConfig metadata: name: amp-eks-fargate region: <YOUR_REGION> version: '1.21' iam: withOIDC: true serviceAccounts: - metadata: name: adot-collector namespace: adot-col labels: {aws-usage: "application"} attachPolicy: Version: "2012-10-17" Statement: - Effect: Allow Action: - "aps:RemoteWrite" - "aps:GetSeries" - "aps:GetLabels" - "aps:GetMetricMetadata" - "aps:QueryMetrics" - "logs:PutLogEvents" - "logs:CreateLogGroup" - "logs:CreateLogStream" - "logs:DescribeLogStreams" - "logs:DescribeLogGroups" - "xray:PutTraceSegments" - "xray:PutTelemetryRecord" - "xray:GetSamplingRules" - "xray:GetSamplingTargets" - "xray:GetSamplingStatisticSummaries" - "ssm:GetParameters" Resource: "*" fargateProfiles: - name: defaultfp selectors: - namespace: prometheus - namespace: kube-system - namespace: adot-col - namespace: prom-sample-app cloudWatch: clusterLogging: enableTypes: ["*"]