You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to be able to set a collection of required environment variables in my namespace
so that I can return a non-zero exit code when required values do not exist in the target AWS Account
Justification
When considering portability, I tend to use a separate AWS account as dev, prod.
When I use chamber to manage configuration in the AWS SSM parameter store, I want a command I can run, that has list-only permissions, but throws a non-zero code for missing values in the service.
Why
It enforces service level documentation of required config (portability)
It enables opt-in pre-flight check for the required service configuration that can be added to the CI pipeline
Proposal
There should be a file that supports required environment variables; for example a .env.example file.
Implement your own secret existence checker; a basic one could just use grep:
chamber list backend/services/user | grep please-exist
The text was updated successfully, but these errors were encountered:
simonireilly
changed the title
feature request: chamber check command for environment
feature request: chamber check command for target AWS Account
Feb 27, 2022
This issue has been automatically marked stale because it has not had any activity in the last 60 days. If no further activity occurs within 7 days, it will be closed. Closed does not mean "never", just that it has no momentum to get accomplished any time soon.
See CONTRIBUTING.md for more info.
User Story
As a chamber user
I want to be able to set a collection of required environment variables in my namespace
so that I can return a non-zero exit code when required values do not exist in the target AWS Account
Justification
When considering portability, I tend to use a separate AWS account as
dev
,prod
.When I use chamber to manage configuration in the AWS SSM parameter store, I want a command I can run, that has list-only permissions, but throws a non-zero code for missing values in the service.
Why
Proposal
There should be a file that supports required environment variables; for example a
.env.example
file.API
chamber check [--format <format=json>] [--template-file <file=chamber.json>] <service>
Permissions; would require List/Describe permissions, but not Get/Read permissions:
dev
environment to check for required configurationprod
environment to check for required configuration; without exposing Read access (principles of least privilege)Behaviour;
JSON Example
File format as
chamber.json
:DotEnv Example
File format as
.env.example
:Alternatives
Implement your own secret existence checker; a basic one could just use grep:
The text was updated successfully, but these errors were encountered: