File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ resource "aws_kms_key" "secrets_cmk" {
1414 Sid = " AllowAccountAdminsFullAccess"
1515 Effect = " Allow"
1616 Principal = { AWS = " arn:aws:iam::${ data . aws_caller_identity . current . account_id } :root" }
17- actions = [ " kms:*" ]
18- resources = [ " *" ]
17+ Action = " kms:*"
18+ Resource = " *"
1919 },
2020 # Allow Secrets Manager service to use the key
2121 {
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ resource "aws_secretsmanager_secret" "hashing_secret" {
1313# Initial secrets
1414resource "aws_secretsmanager_secret_version" "hashing_secrets_test" {
1515 secret_id = aws_secretsmanager_secret. hashing_secret . id
16- secret_string = " this_is_a_test_secret "
16+ secret_string = " initial_secret "
1717}
1818
1919# Resource-based policy attached to the secret
Original file line number Diff line number Diff line change @@ -59,7 +59,8 @@ data "aws_iam_policy_document" "assumed_role_permissions_boundary" {
5959 " xray:PutTelemetryRecords" ,
6060
6161 # Secret Manager
62- " secretsmanager:GetSecretValue"
62+ " secretsmanager:GetSecretValue" ,
63+ " secretsmanager:DescribeSecret"
6364 ]
6465
6566 resources = [" *" ]
You can’t perform that action at this time.
0 commit comments