Skip to content

Commit

Permalink
change access key file to sensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Jun 24, 2022
1 parent 158d0dd commit 8bf7e45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ No requirements.
| [aws_iam_user_policy.user_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_user_policy) | resource |
| [aws_iam_user_policy_attachment.user_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_user_policy_attachment) | resource |
| [aws_ses_email_identity.user_send_mail](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ses_email_identity) | resource |
| [local_file.access_key_file](https://registry.terraform.io/providers/hashicorp/local/latest/docs/resources/file) | resource |
| [local_file.rotate_keys_tfvars](https://registry.terraform.io/providers/hashicorp/local/latest/docs/resources/file) | resource |
| [local_sensitive_file.access_key_file](https://registry.terraform.io/providers/hashicorp/local/latest/docs/resources/sensitive_file) | resource |
| [null_resource.access_key_file_decrypt_key](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |
| [null_resource.rotate_keys_tfvars](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |
| [time_sleep.wait_iam_access_key_v1](https://registry.terraform.io/providers/hashicorp/time/latest/docs/resources/sleep) | resource |
Expand Down
2 changes: 1 addition & 1 deletion access_keys.tf
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ resource "local_file" "rotate_keys_tfvars" {
# depends_on = [null_resource.rotate_keys_tfvars]
}

resource "local_file" "access_key_file" {
resource "local_sensitive_file" "access_key_file" {
count = var.create_access_keys ? 1 : 0
content = local.access_key_file
filename = var.create_access_keys ? format("%v/%v/access_key.yml", path.root, join("", null_resource.rotate_keys_tfvars.*.triggers.access_keys_directory)) : "empty.txt"
Expand Down

0 comments on commit 8bf7e45

Please sign in to comment.