Merge pull request #108420 from grahamc/aws-nuke

aws-nuke: init at 2.14.0
gstqt5
Maximilian Bosch 2021-01-04 23:53:52 +01:00 committed by GitHub
commit 7cd7ff7acb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,36 @@
{ stdenv
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "aws-nuke";
version = "2.14.0";
src = fetchFromGitHub {
owner = "rebuy-de";
repo = pname;
rev = "v${version}";
sha256 = "sha256-ULHT2ysAVZHSojIdsbPTuwskwOQVrK8f14r9eq+Effs=";
};
vendorSha256 = "sha256-GUCsl5VyptNvStJZgCsJDlllZasX1OhbVkahcQFuiC8=";
preBuild = ''
if [ "x$outputHashAlgo" != "x" ]; then
# Only `go generate` when fetching the go mod vendor code
go generate ./...
fi
'';
doCheck = false;
subPackages = [ "." ];
meta = with stdenv.lib; {
description = "Nuke a whole AWS account and delete all its resources";
homepage = "https://github.com/rebuy-de/aws-nuke";
license = licenses.mit;
maintainers = with maintainers; [ grahamc ];
};
}

View File

@ -967,6 +967,8 @@ in
aws-google-auth = python3Packages.callPackage ../tools/admin/aws-google-auth { };
aws-nuke = callPackage ../tools/admin/aws-nuke { };
aws-okta = callPackage ../tools/security/aws-okta { };
aws-rotate-key = callPackage ../tools/admin/aws-rotate-key { };