2021-12-27 04:37:57 +01:00
|
|
|
{ pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
2022-01-30 17:06:58 +01:00
|
|
|
provider.aws = map
|
|
|
|
(region: {
|
|
|
|
inherit region;
|
|
|
|
alias = region;
|
|
|
|
profile = "personal";
|
|
|
|
}) [
|
2021-12-27 04:37:57 +01:00
|
|
|
"us-east-1"
|
|
|
|
"us-east-2"
|
|
|
|
"us-west-2"
|
|
|
|
];
|
|
|
|
|
|
|
|
data.external.cloudflare_api_key = {
|
2022-01-30 17:06:58 +01:00
|
|
|
program = [
|
|
|
|
(pkgs.writeShellScript "cloudflare_api_key" ''
|
|
|
|
jq -n --arg api_key "$(pass cloudflare-api-key)" '{"api_key":$api_key}'
|
|
|
|
'')
|
|
|
|
];
|
2021-12-27 04:37:57 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
provider.cloudflare = {
|
|
|
|
email = "root@gws.fyi";
|
|
|
|
api_key = "\${data.external.cloudflare_api_key.result.api_key}";
|
|
|
|
};
|
|
|
|
}
|