c6444ecc3c
GitOrigin-RevId: 51e44a13acea71b36245e8bd8c7db53e0a3e61ee
28 lines
575 B
Nix
28 lines
575 B
Nix
{ ... }:
|
|
|
|
{
|
|
programs = {
|
|
awscli = {
|
|
enable = true;
|
|
settings = {
|
|
default = {
|
|
output = "json";
|
|
region = "eu-west-3";
|
|
};
|
|
};
|
|
credentials = { iam = { credential_process = "pass show aws"; }; };
|
|
};
|
|
};
|
|
|
|
test.stubs.awscli2 = { };
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.aws/config
|
|
assertFileContent home-files/.aws/config \
|
|
${./aws-config.conf}
|
|
|
|
assertFileExists home-files/.aws/credentials
|
|
assertFileContent home-files/.aws/credentials \
|
|
${./aws-credentials.conf}
|
|
'';
|
|
}
|