{{- if .Values.presto.spec.config.aws.createSecret -}}
apiVersion: v1
kind: Secret
metadata:
  name: presto-aws-credentials
data:
{{- if .Values.presto.spec.config.aws.accessKeyID }}
  aws-access-key-id: {{ .Values.presto.spec.config.aws.accessKeyID | b64enc | quote}}
{{- end}}
{{- if .Values.presto.spec.config.aws.secretAccessKey }}
  aws-secret-access-key: {{ .Values.presto.spec.config.aws.secretAccessKey | b64enc | quote}}
{{- end}}
{{- end -}}
