Skip to content

Refactor optional/required environment key system #10

@michaelstephens

Description

@michaelstephens

Currently, AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY are marked as an optional environment keys and are not enforced but are technically required for the production environment.
https://github.com/YashdalfTheGray/statusinator/blob/66d258fba974c781e571985a4b1c79c08ecbbc72/env/constants.go#L28-L29

Likewise, SERVICE_ROLE_ARN is marked as a required environment key and is enforced but is an optional key for the production environment and is only mandatory in the development environment.
https://github.com/YashdalfTheGray/statusinator/blob/66d258fba974c781e571985a4b1c79c08ecbbc72/env/constants.go#L24

We need a way for the system to handle the swapping of optional and required (read: enforced) environment keys depending on which environment you are running in.

Metadata

Metadata

Labels

bugSomething isn't workingcoreCore components to hold up the rest

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions