这是indexloc提供的服务,不要输入任何密码
Skip to content

✨ Make environment variables write only #354

@holbrookab-bond

Description

@holbrookab-bond

What functionality would you like to see?

Hi @dglsparsons , per the other issue, I started playing around with the idea of making the environment variables write only in terraform side, to limit the state writing of the values in the code. This would require a plugin upgrade.

Feel free to take a look at:
holbrookab-bond#1

Implementation details:

  • Terraform doesn't support WriteOnly in Sets, so I made this a Map (to avoid sorting issues). Note: this would break the existing provider.
  • If an environment variable's value is updated, the entire resource must be destroyed. Per my research it doesn't appear you can just do an update.
  • I started touching the regular environment variable, but decided to focus on the main environment variables plural one.
  • I haven't looked at other resources that may need updates like this.

This is not ready for a PR for you (I've made no real changes to documentation or tests), but thought you'd like to see and react to it.

Thanks!

Example

No response

Additional Details

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions