# Dynamic Variables

**URL:** <https://discourse.nodered.org/t/dynamic-variables/95221>\
**Category:** General\
**Tags:** security, docker\
**Created:** [7 February 2025 20:11 UTC](https://discourse.nodered.org/t/dynamic-variables/95221 "2025-02-07T20:11:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![leozanellato](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/leozanellato/32/92020_2.png) [@leozanellato](https://discourse.nodered.org/u/leozanellato)\
**Post date:** [7 February 2025 20:11 UTC](https://discourse.nodered.org/t/dynamic-variables/95221/1 "2025-02-07T20:11:08Z")

</div>

I'm working on a new project using ECS with Docker.

Instead of using a cryptographic file, I'm storing credentials dynamically in `flow_creds.json` by leveraging AWS Secrets Manager like:

- **Server:** `{{{SQL_IP}}}`
- **Password:** `{{{SQL_PW}}}`

This approach works fine with the `mssql-plus` contrib package. However, when I use other packages like `gsheets` or `OPCUA`, the dynamic variables in the credentials do not work.

Is there a solution to this issue?

This is the only method I've found to persist credentials across deployments in Docker.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [8 May 2025 20:11 UTC](https://discourse.nodered.org/t/dynamic-variables/95221/2 "2025-05-08T20:11:14Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
