Skip to content

Commit

Permalink
Merge pull request #1405 from dsalaza4/main
Browse files Browse the repository at this point in the history
refac(back): #1378 deprecate k8s config from aws
  • Loading branch information
jandresh authored Dec 13, 2024
2 parents 2a12307 + 2e663c6 commit 06527a7
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 81 deletions.
47 changes: 0 additions & 47 deletions docs/src/api/builtins/secrets.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,53 +276,6 @@ Example:
Decrypted password: 123
```

## secretsForKubernetesConfigFromAws

Create a Kubernetes
config file out of an AWS EKS cluster
and set it up in the
[KUBECONFIG Environment Variable](https://kubernetes.io/docs/concepts/configuration/).

Types:

- secretsForKubernetesConfigFromAws
(`attrsOf secretForKubernetesConfigFromAwsType`): Optional.
Defaults to `{ }`.
- secretForKubernetesConfigFromAwsType (`submodule`):
- cluster (`str`):
AWS EKS Cluster name.
- region (`str`):
AWS Region the EKS cluster is located in.

Example:

=== "makes.nix"

```nix
{
outputs,
...
}: {
secretsForKubernetesConfigFromAws = {
myCluster = {
cluster = "makes-k8s";
region = "us-east-1";
};
};
deployTerraform = {
modules = {
moduleProd = {
setup = [
outputs."/secretsForKubernetesConfigFromAws/myCluster"
];
src = "/my/module1";
version = "0.14";
};
};
};
}
```

## secretsForTerraformFromEnv

Export secrets in a format suitable for Terraform
Expand Down
3 changes: 1 addition & 2 deletions docs/src/security/threat-model.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@
`secretsForAwsFromEnv`,
`secretsForAwsFromGitlab`,
`secretsForEnvFromSops`,
`secretsForGpgFromEnv`,
`secretsForKubernetesConfigFromAws`, and
`secretsForGpgFromEnv`, and
`secretsForTerraformFromEnv`.
However, we don't currently have a way to protect the user
Expand Down
1 change: 0 additions & 1 deletion src/evaluator/modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
(import ./secrets-for-aws-from-gitlab/default.nix args)
(import ./secrets-for-env-from-sops/default.nix args)
(import ./secrets-for-gpg-from-env/default.nix args)
(import ./secrets-for-kubernetes-config-from-aws/default.nix args)
(import ./secrets-for-terraform-from-env/default.nix args)
(import ./test-license/default.nix args)
(import ./test-terraform/default.nix args)
Expand Down

This file was deleted.

0 comments on commit 06527a7

Please sign in to comment.