Skip to content

Commit

Permalink
Merge pull request #98 from input-output-hk/clanup-tf-workspaces
Browse files Browse the repository at this point in the history
Remove dead code
  • Loading branch information
manveru committed Oct 28, 2021
2 parents fd02422 + bfc2ddf commit 1a7416b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
21 changes: 0 additions & 21 deletions modules/terraform/clients.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,6 @@ in {
roles = lib.flip lib.mapAttrs config.cluster.iam.roles
(name: role: { arn = var "data.aws_iam_role.${role.uid}.arn"; });

instances = lib.flip lib.mapAttrs config.cluster.instances
(name: server: {
flake-attr =
"nixosConfigurations.${server.uid}.config.system.build.toplevel";
instance-type =
var "data.aws_instance.${server.name}.instance_type";
name = server.name;
private-ip = var "data.aws_instance.${server.name}.private_ip";
public-ip = var "data.aws_instance.${server.name}.public_ip";
tags = server.tags;
uid = server.uid;
});

asgs = lib.flip lib.mapAttrs config.cluster.autoscalingGroups
(name: group: {
flake-attr =
Expand All @@ -57,14 +44,6 @@ in {
};
};

data.aws_instance = lib.flip lib.mapAttrs config.cluster.instances
(name: server: {
filter = [{
name = "tag:UID";
values = [ server.uid ];
}];
});

provider.aws = [{ region = config.cluster.region; }] ++ (lib.forEach regions
(region: {
inherit region;
Expand Down
2 changes: 0 additions & 2 deletions modules/terraform/core.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ in {
tags = server.tags;
uid = server.uid;
});

asgs = { };
};
};

Expand Down

0 comments on commit 1a7416b

Please sign in to comment.