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