apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
  name: s3-do-home-infra-secret
  namespace: s3-exporter
  labels:
    app.kubernetes.io/name: s3-do-home-infra-secret
    app.kubernetes.io/instance: s3-exporter
    app.kubernetes.io/part-of: s3-exporter
spec:
  secretStoreRef:
    kind: ClusterSecretStore
    name: vault
  data:
    - secretKey: AWS_ACCESS_KEY_ID
      remoteRef:
        conversionStrategy: Default
        decodingStrategy: None
        key: /digital-ocean/home-infra/all-access
        metadataPolicy: None
        property: AWS_ACCESS_KEY_ID
    - secretKey: AWS_SECRET_ACCESS_KEY
      remoteRef:
        conversionStrategy: Default
        decodingStrategy: None
        key: /digital-ocean/home-infra/all-access
        metadataPolicy: None
        property: AWS_SECRET_ACCESS_KEY
    - secretKey: AWS_REGION
      remoteRef:
        conversionStrategy: Default
        decodingStrategy: None
        key: /digital-ocean/home-infra/prometheus-exporter
        metadataPolicy: None
        property: AWS_REGION
