awscli: add module
This commit is contained in:
parent
4f02e35f9d
commit
f1b7775d23
8 changed files with 110 additions and 0 deletions
3
tests/modules/programs/awscli/aws-config.conf
Normal file
3
tests/modules/programs/awscli/aws-config.conf
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
[default]
|
||||
output=json
|
||||
region=eu-west-3
|
||||
2
tests/modules/programs/awscli/aws-credentials.conf
Normal file
2
tests/modules/programs/awscli/aws-credentials.conf
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
[iam]
|
||||
credential_process=pass show aws
|
||||
28
tests/modules/programs/awscli/awscli.nix
Normal file
28
tests/modules/programs/awscli/awscli.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
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}
|
||||
'';
|
||||
}
|
||||
1
tests/modules/programs/awscli/default.nix
Normal file
1
tests/modules/programs/awscli/default.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
{ awscli = ./awscli.nix; }
|
||||
Loading…
Add table
Add a link
Reference in a new issue