Closed amyipdev closed 4 months ago
.env
will be dropped once #21 is merged. I don't think it's feasible to support this use case, as it makes working with the repository a lot more annoying. Any server interaction done locally and not through the GitHub Actions should be assumed to require Nix.
This patch adds additional information to the README on necessary instructions for using the
acm-aws
repository withoutnix-shell
.Environment variables stored in the
.env
are necessary for performing manyacm-aws
functions, including usage of the SSH script. Sourcing the.env
is necessary to be able to use the SSH script.When logging in with
nix-shell
, the.env
is automatically sourced, preventing users from having any issues. However, there are currently no indicators that the file needs to be sourced -.env
is not even mentioned at all in the README. We don't currently specify in the README thatnix-shell
is a requirement - in fact, it is listed as optional/highly recommended - and thus non-nix-shell logins should be supported.Assuming basic dependencies (jq) are installed (doesn't even need Terraform or AWSCLI2), sourcing the
.env
(withallexport
, as the file does not currently actually export the environment variables) and./secrets
is decrypted (with proper permission overrides on the SSH key) is a sufficient condition for being able to log in with SSH.Signed-off-by: Amy Parker amy@amyip.net