# Configure AWX Database using external secret(store in AWS Secrete manager)

**URL:** <https://forum.ansible.com/t/configure-awx-database-using-external-secret-store-in-aws-secrete-manager/39045>\
**Category:** Get Help\
**Tags:** aws, awx\
**Created:** [December 11, 2024, 9:35am UTC](https://forum.ansible.com/t/configure-awx-database-using-external-secret-store-in-aws-secrete-manager/39045 "2024-12-11T09:35:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sachinjagtap](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@sachinjagtap](https://forum.ansible.com/u/sachinjagtap)\
**Post date:** [December 11, 2024, 9:35am UTC](https://forum.ansible.com/t/configure-awx-database-using-external-secret-store-in-aws-secrete-manager/39045/1 "2024-12-11T09:35:26Z")

</div>

Hello Folks

I am trying to set up awx environments with respective external database. I have added **postgres\_configuration\_secret: awx-configuration-secret** in Values.yaml file.

awx-deploy.yaml has below code in it.

{{- /\* Postgres configs if enabled and not already present \*/}}  
{{- if and .Values.AWX.postgres.enabled (not (hasKey .Values.AWX.spec “postgres\_configuration\_secret”)) }}  
postgres\_configuration\_secret: {{ include “postgres.secretName” $ }}  
{{- end }}  
{{- end }}

this configuration works well but when I change the database awx installation doesn’t take newly configured database.

any thought?
