# Are credentials set?

**URL:** <https://discourse.nodered.org/t/are-credentials-set/20294>\
**Category:** Developing Nodes\
**Created:** [14 January 2020 04:32 UTC](https://discourse.nodered.org/t/are-credentials-set/20294 "2020-01-14T04:32:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![iOnline247](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ionline247/32/15634_2.png) [@iOnline247](https://discourse.nodered.org/u/iOnline247)\
**Post date:** [14 January 2020 04:32 UTC](https://discourse.nodered.org/t/are-credentials-set/20294/1 "2020-01-14T04:32:35Z")

</div>

I'm trying to figure out if this is feasible.

Ideally, I'd like to set the [HTML elements](https://github.com/iOnline247/node-red-contrib-aws-any/blob/EnvCredentialSupport/src/nodes/aws-sdk-any-config/template.html#L39-L48) to be readonly (and style with CSS, so it's apparent), if the credentials are [supplied via environment variables](https://github.com/iOnline247/node-red-contrib-aws-any/blob/EnvCredentialSupport/src/nodes/aws-sdk-any-config/aws-sdk-any-config.js). I **am** able to set the environment variables and make the API calls after saving blank values within the config node.

When I hit [this breakpoint](https://github.com/iOnline247/node-red-contrib-aws-any/blob/EnvCredentialSupport/src/nodes/aws-sdk-any-config/script.js#L14), I doesn't appear I'm able to discern if the credentials have been set and the `input`'s are blank. Is there a way to tell or signal the UI that these were set already, so the UX isn't clunky?

---

<div class="post-metadata">

**Author:** ![iOnline247](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ionline247/32/15634_2.png) [@iOnline247](https://discourse.nodered.org/u/iOnline247)\
**Post date:** [14 January 2020 04:35 UTC](https://discourse.nodered.org/t/are-credentials-set/20294/2 "2020-01-14T04:35:44Z")

</div>

For context, this is how the AWS SDK looks for credentials:

> <https://github.com/awsdocs/aws-javascript-developer-guide-v2/blob/87b6b39d3d85de60f7ac957d3cedb0dc83d38554/doc_source/setting-credentials-node.md>
