basic:
  mAccountRole: arn:aws:iam::[[ m_account ]]:role/auto-deploy-cli
  outputBucket: dev-auto-deploy
  tfStateBucket: [[ tf_state_bucket ]]
  dAccountRoles:
  [%- for account in d_accounts %]
    - arn:aws:iam::[[ account ]]:role/auto-deploy-cli
  [%- endfor %]
forGlobal:
  openedTenantIds: []
  isPublic: false
  sortPriority: 1999
eks:
  version: "1.35"
  template-path: etc/k8s-templates/eks-v1.yaml
  tags:
    environment: dev
    servicetype: dedicated
    usedby: dbaas-control-plane-seed
    tenant: admin
  admin-roles:
    - cicd-role
    - argocd-oidc-role
    - full-manager-service-role
    - dbaas-dev
    - dbaas-dev-readonly
    - dbaas-central-role-dev
    - arn:aws:iam::552185537300:role/devops-server-dev
  availabilityZones: '{{ getAvailabilityZonesN 3 | awsAzId2Name "" }}'
  vpc: # see https://eksctl.io/usage/schema/#vpc
    cidr: 10.1.0.0/16
    nat:
      gateway: Single
    clusterEndpoints:
      publicAccess: true
    publicAccessCIDRs:
      - 0.0.0.0/0
  node-groups: # see https://eksctl.io/usage/schema/#managedNodeGroups
    - name: worker
      amiFamily: Bottlerocket
      instanceType: "[[ seed_instance_type ]]"
      desiredCapacity: 1
      maxSize: 10
      privateNetworking: true # must set to true
  addons:
    - name: vpc-cni
      version: "latest"
      attachPolicyARNs:
        - arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy
    - name: coredns
      version: "latest"
    - name: kube-proxy
      version: "latest"
    - name: aws-ebs-csi-driver
      version: "latest"
      wellKnownPolicies:
        ebsCSIController: true
      configurationValues: |
        controller: # set extral tags on pvc
          extraVolumeTags:
            environment: dev
            servicetype: dedicated
            usedby: dbaas-control-plane-seed
            tenant: admin
# job Options support go template syntax in STRING value
# and support extened functions:
# 1. getHostedZoneId name: get hosted zone id by name
# 2. getLoadBalancerHostedZoneId: get current region  elb hosted zone id
# 3. getAvailabilityZones: get current region availability zones
# 4. getAwsRoleArn role: get role arn on m-account
jobOptions:
  regionalServer:
    dnsName: '{{ .Name }}.regional-api.dev.aws.tidbcloud.com'
    hostedZone: dev.aws.tidbcloud.com
    hostedZoneId: '{{ getHostedZoneId "dev.aws.tidbcloud.com" }}'
    loadBalancerHostedZoneId: '{{ getLoadBalancerHostedZoneId }}'
    availabilityZones: '{{ getAvailabilityZonesN 3 | awsAzId2Name (index .TidbClusterAccounts 0).AwsRole.AccountId }}'
    publicHostedZoneDomain: clusters.dev.tidb-cloud.com
    publicHostedZoneID: '{{ getHostedZoneId "clusters.dev.tidb-cloud.com" }}'
    defaultDataplaneAccount: "{{ (index .TidbClusterAccounts 0).AwsRole.AccountId }}"
    auth0Audience: dev-proxy-service
    auth0Domain: tidb-dev.us.auth0.com
    globalControlplaneIPs:
      - 54.148.240.60/32       # global base IPs
      - 54.71.2.116/32         # global base IPs
      - 52.13.110.238/32       # global base IPs
      - 44.245.243.63/32       # new jump server
    o11yRegionalServiceIPs: []
    clinicIPs:
      - 35.83.225.251/32
    bastionIPs:
      - 0.0.0.0/0              # allow all ip access k8s
    authorizedSubjects:
      - arn:aws:iam::552185537300:role/devops-server-dev
    o11yRegionalServiceEndpoint: "https://www.rs.{{ .Region }}.aws.observability.tidbcloud.com"
  clusterServer:
    clusterProxy:
      auth0Audience: dev-proxy-service
      auth0Domain: tidb-dev.us.auth0.com
      enableDevMode: false
    configChange:
      activityClinicEp: http://dev-clinic.pingcap.com:8085
      activityEnabled: false
      activityHubEp: https://b9u12esjuf.execute-api.us-west-2.amazonaws.com
      activitySource: gitops
      env: dev
    fullManage:
      pcaArn: arn:aws:acm-pca:us-west-2:[[ m_account ]]:certificate-authority/4668d5cc-1042-4371-9ff4-72ab9493c545
  dpProvider:
    wafIpSetName: Security-wangbing-whitelist-ip
    secretManager:
      infraAPIServerKey: dev-dedicated-infra-kubeconfig
      apiGatewayKey: dev-dp-compat-xregion-auth-key
  jumpServer:
    enabled: true
    role: arn:aws:iam::552185537300:role/devops-server-dev
  ng-service:
    disabled: true
  o11y:
    enabled: false
    auth0SecretID: dev-o11y-auth0-client
    globalEndpoint: www.gs.us-west-2.aws.observability.tidbcloud.com
    tenantId: infra-dev
    projectId: seed
    ruleTemplateId: tidb-cloud-control-plane-dedicated-seed-rule
    privateLinkZone: '{{ getAvailabilityZoneIndex 0 | awsAzId2Name "" }}' # first az
  vector:
    o11yRoleArn:
      - arn:aws:iam::[[ o11y_account ]]:role/*
