Skip to content

Commit

Permalink
Merge pull request #9 from clouddrove/PR
Browse files Browse the repository at this point in the history
aws_secrt_encrypted
  • Loading branch information
Nikita Dugar committed Apr 14, 2021
2 parents bb6ac8e + b868631 commit e73bfbc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions _example/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module "iam-user" {

policy_enabled = true
policy = data.aws_iam_policy_document.default.json
pgp_key = ""
}

data "aws_iam_policy_document" "default" {
Expand Down
2 changes: 2 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#Description : This terraform module is designed to generate consistent label names and tags
# for resources. You can use terraform-labels to implement a strict naming
# convention.


module "labels" {
source = "git::https://github.com/clouddrove/terraform-labels.git?ref=tags/0.14.0"

Expand Down
2 changes: 1 addition & 1 deletion outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ output "key_id" {
}

output "secret" {
value = join("", aws_iam_access_key.default.*.secret)
value = var.pgp_key == "" ? join("", aws_iam_access_key.default.*.secret) : join("", aws_iam_access_key.default.*.encrypted_secret)
description = "The secret access key. Note that this will be written to the state file. Please supply a pgp_key instead, which will prevent the secret from being stored in plain text."
}

Expand Down

0 comments on commit e73bfbc

Please sign in to comment.