apiVersion: cloud.pingcap.com/v1
kind: Provider
metadata:
  labels:
    cloud.pingcap.com/provider-type: aws
  name: aws
spec:
  type: aws
  storageClasses:
    - name: pd-gp3-4000-400
      type: gp3
      iops: 4000
      throughput: 400
    - name: pd-gp3-3000-125
      type: gp3
      iops: 3000
      throughput: 125
    - name: tikv-gp3-4000-400
      type: gp3
      iops: 4000
      throughput: 400
    - name: tikv-gp3-3000-128
      type: gp3
      iops: 3000
      throughput: 128
    - name: tikv-gp3-3000-125
      type: gp3
      iops: 3000
      throughput: 125
    - name: tikv-io2-100-0  # io2 does not support customizing throughput
      type: io2
      iops: 100
    - name: tikv-io2-6000-0  # io2 does not support customizing throughput
      type: io2
      iops: 6000
    - name: tiflash-gp3-6000-625
      type: gp3
      iops: 6000
      throughput: 625
    - name: tiflash-io2-100-0
      type: io2
      iops: 100
    - name: pd-gp2
      type: gp2
    - name: tikv-gp2
      type: gp2
    - name: tiflash-gp2
      type: gp2
  regions:
    - name: us-west-2
      zones:
        - us-west-2a
        - us-west-2b
        - us-west-2c
    - name: us-east-1
      zones:
        - us-east-1a
        - us-east-1b
        - us-east-1c
  instanceTypes:
    - name: c6g.large
      arch: arm64
      cpu: '2'
      memory: 4Gi
      regions: ["us-west-2", "us-east-1"]
      unavailableMemory: '0'  
    - name: c6g.xlarge
      arch: arm64
      cpu: '4'
      memory: 8Gi
      regions: ["us-west-2", "us-east-1"]
      unavailableMemory: '0'
    - name: c6g.2xlarge
      arch: arm64
      cpu: '8'
      memory: 16Gi
      regions: ["us-west-2", "us-east-1"]
      unavailableMemory: '0'
    - name: c6g.4xlarge
      arch: arm64
      cpu: '16'
      memory: 32Gi
      regions: ["us-west-2", "us-east-1"]
      unavailableMemory: '0'
    - name: r6g.2xlarge
      arch: arm64
      cpu: '8'
      memory: 64Gi
      regions: ["us-west-2", "us-east-1"]
      unavailableMemory: '0'
    - name: r6g.4xlarge
      arch: arm64
      cpu: '16'
      memory: 128Gi
      regions: ["us-west-2", "us-east-1"]
      unavailableMemory: '0'
    - name: t4g.small
      arch: arm64
      cpu: '2'
      memory: 2Gi
      regions: ["us-west-2", "us-east-1"]
      unavailableMemory: '0'
    - name: t4g.medium
      arch: arm64
      cpu: '2'
      memory: 4Gi
      regions: ["us-west-2", "us-east-1"]
      unavailableMemory: '0'
    - name: m6g.large
      arch: arm64
      cpu: '2'
      memory: 8Gi
      regions: ["us-west-2", "us-east-1"]
      unavailableMemory: '0'
    - name: m6g.xlarge
      arch: arm64
      cpu: '4'
      memory: 16Gi
      regions: ["us-west-2", "ap-northeast-2", "ap-northeast-1", "ap-southeast-1", "us-east-1", "eu-central-1", "ap-south-1", "ap-southeast-3", "ap-southeast-2", "sa-east-1", "ap-east-1"]
      unavailableMemory: '0'
    - name: m6g.2xlarge
      arch: arm64
      cpu: '8'
      memory: 32Gi
      regions: ["us-west-2", "us-east-1"]
      unavailableMemory: '0'
    - name: m6g.4xlarge
      arch: arm64
      cpu: '16'
      memory: 64Gi
      regions: ["us-west-2", "us-east-1"]
      unavailableMemory: '0'
    - name: c5.9xlarge
      arch: amd64
      regions: ["us-west-2", "us-east-1"]
      cpu: '32'
      memory: 72Gi
      minStorage: 1Ti
      maxStorage: 1Ti
      unavailableMemory: '0'
    - name: r5.2xlarge
      arch: amd64
      regions: ["us-west-2", "us-east-1"]
      cpu: '8'
      memory: 64Gi
      minStorage: 1Ti
      maxStorage: 1Ti
      unavailableMemory: '0'
    - name: r5b.2xlarge
      arch: amd64
      regions: ["us-west-2", "us-east-1"]
      cpu: '8'
      memory: 64Gi
      minStorage: 1Ti
      maxStorage: 1Ti
      unavailableMemory: '0'
    - name: c5.4xlarge
      arch: amd64
      regions: ["us-west-2", "us-east-1"]
      cpu: '16'
      memory: 32Gi
      unavailableMemory: '0'
    - name: c5.2xlarge
      arch: amd64
      regions: ["us-west-2", "us-east-1"]
      cpu: '8'
      memory: 16Gi
      unavailableMemory: '0'
    - name: c5.xlarge
      arch: amd64
      regions: ["us-west-2", "us-east-1"]
      cpu: '4'
      memory: 8Gi
      unavailableMemory: '0'
    - name: i3.4xlarge
      arch: amd64
      regions: ["us-west-2", "us-east-1"]
      cpu: '16'
      memory: 122Gi
      localStorageSize: 1900Gi
      minStorage: 1900Gi
      maxStorage: 1900Gi
      unavailableMemory: '0'
    - name: i3.2xlarge
      arch: amd64
      regions: ["us-west-2", "us-east-1"]
      cpu: '8'
      memory: 61Gi
      localStorageSize: 1900Gi
      minStorage: 1900Gi
      maxStorage: 1900Gi
      unavailableMemory: '0'
    - name: t3a.small
      arch: amd64
      regions: ["us-west-2", "us-east-1"]
      cpu: '2'
      memory: 2Gi
      minStorage: 50Gi
      maxStorage: 50Gi
      unavailableMemory: '0'
    - name: t3.medium
      arch: amd64
      regions: ["us-west-2", "us-east-1"]
      cpu: '2'
      memory: 4Gi
      minStorage: '0'
      maxStorage: 500Gi
      unavailableMemory: '0'
    - name: t3a.medium
      arch: amd64
      regions: ["us-west-2", "us-east-1"]
      cpu: '2'
      memory: 4Gi
      minStorage: '0'
      maxStorage: 500Gi
      unavailableMemory: '0'
    - name: m5.large
      arch: amd64
      regions: ["us-west-2", "us-east-1", "ap-northeast-1", "ap-east-1"]
      cpu: '2'
      memory: 8Gi
      minStorage: '0'
      maxStorage: 2Ti
      unavailableMemory: '0'
    - name: m5.xlarge
      arch: amd64
      regions: ["us-west-2", "ap-northeast-2", "ap-northeast-1", "ap-southeast-1", "us-east-1", "eu-central-1", "ap-south-1", "ap-southeast-3", "ap-southeast-2", "sa-east-1", "ap-east-1"]
      cpu: '4'
      memory: 16Gi
      minStorage: '0'
      maxStorage: 2Ti
      unavailableMemory: '0'
    - name: m5.2xlarge
      arch: amd64
      regions: ["us-west-2", "us-east-1"]
      cpu: '8'
      memory: 32Gi
      minStorage: '0'
      maxStorage: 2Ti
      unavailableMemory: '0'
  forProvider:
    apiVersion: cloud.pingcap.com/v1
    kind: GardenerProviderSpec
    enableGracefulShutdownWebhook: false
    reporter:
      image: "dbaas/dev/billing-reporter:5361cfdaede17bc8f46c0cca7d862aa7d88cd8ea"
      sqsEndpoint: "https://sqs.us-west-2.amazonaws.com/385595570414/nightly-billing.fifo"
      region: "us-west-2"
    sliReporter:
      image: "dbaas/dev/sli-reporter:189aa14429727ad1708f334c82ad94ab8bf69f9a"
      region: "us-west-2"
      deliveryStreamName: "sli-dev-metrics"
      deliveryStreamRoleArn: "arn:aws:iam::552185537300:role/sli-cross-account-role"
    proxy:
      image: "dbaas/dev/cluster-proxy:cbdfeb838e589c2cca68ef4df1eeecc14511a43b"
      auth0Audience: "dev-proxy-service"
      auth0Domain: "tidb-dev.us.auth0.com"
      loadBalancerSourceRanges:
        - "54.148.240.60/32"
        - "54.71.2.116/32"
        - "52.13.110.238/32"
    dataflowAgent:
      image: "385595570414.dkr.ecr.us-west-2.amazonaws.com/tidbcloud/dataflow-agent:38501dec90f250af08836b5e63b9e771fd55b0c5"
    topsql:
      image: "dbaas/dev/topsql-agent:511df4e3c487ed0cc324d306a83fea4633dc4ddb"
    aws:
      publicHostedZoneDomain: shared.aws.tidbcloud.com
      publicHostedZoneId: Z329W86VRKILYT
      crossplaneProvider: provider-aws
      accountID: "385595570414"
      ecrRegion: "us-west-2"
      pcaArn: "arn:aws:acm-pca:us-west-2:385595570414:certificate-authority/4668d5cc-1042-4371-9ff4-72ab9493c545"
      pcaRegion: "us-west-2"
