Skip to content

Commit

Permalink
fix pgp key file detection
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Jun 27, 2022
1 parent 9f22dbc commit ab31746
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,6 @@

* 2.7.3 -- 2022-06-24
- add decrypt key for access_key.yml file

* 2.7.4 -- 2022-06-27
- fix pgp key detection
2 changes: 1 addition & 1 deletion access_keys.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ locals {
username = aws_iam_user.user.name
region = local.account_environment == "ew" ? "us-east-1" : "us-gov-east-1"
profile = var.profile == null ? "" : var.profile
pgp_key_file = fileexists(var.pgp_key_file) ? var.pgp_key_file : ""
pgp_key_file = local.pgp_key_file_exists ? var.pgp_key_file : ""
})
access_key_file = templatefile("${path.module}/templates/access_key.tpl",
{
Expand Down
2 changes: 1 addition & 1 deletion version.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
locals {
_module_name = "aws-iam-user"
_module_version = "2.7.3"
_module_version = "2.7.4"
}

0 comments on commit ab31746

Please sign in to comment.