Skip to content

Commit

Permalink
terraform: fix devshell
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Oct 15, 2024
1 parent 01dfaad commit 824d619
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion terraform-iam/.envrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use flake .#terraform
use flake .#terraform-iam

export AWS_CONFIG_FILE=$PWD/aws-config
export AWS_PROFILE=nixos-prod
Expand Down
16 changes: 16 additions & 0 deletions terraform/flake-module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,22 @@ in
{ pkgs, ... }:
{
devShells.terraform = pkgs.mkShellNoCC {
packages = [
pkgs.awscli2
# TODO: migrate registry for opentofu as well.
(pkgs.opentofu.withPlugins (
p: [
p.aws
p.fastly
p.netlify
p.secret
]
))
];
};

# get rid of this, once we fix the migration above.
devShells.terraform-iam = pkgs.mkShellNoCC {
packages = [
pkgs.awscli2
(pkgs.opentofu.withPlugins (
Expand Down

0 comments on commit 824d619

Please sign in to comment.