Skip to content

Commit 7cf8fc1

Browse files
authored
fix: deprecation warnings (nozaq#140)
1 parent 3d57fcc commit 7cf8fc1

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

bucket.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ data "aws_iam_policy_document" "audit_log" {
116116
actions = ["s3:*"]
117117
effect = "Deny"
118118
resources = [
119-
"${module.audit_log_bucket.this_bucket.arn}",
119+
module.audit_log_bucket.this_bucket.arn,
120120
"${module.audit_log_bucket.this_bucket.arn}/*"
121121
]
122122
condition {

modules/cloudtrail-baseline/main.tf

+3-3
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ data "aws_iam_policy_document" "cloudtrail_key_policy" {
119119
condition {
120120
test = "StringEquals"
121121
variable = "kms:CallerAccount"
122-
values = ["${var.aws_account_id}"]
122+
values = [var.aws_account_id]
123123
}
124124
condition {
125125
test = "StringLike"
@@ -144,7 +144,7 @@ data "aws_iam_policy_document" "cloudtrail_key_policy" {
144144
condition {
145145
test = "StringEquals"
146146
variable = "kms:CallerAccount"
147-
values = ["${var.aws_account_id}"]
147+
values = [var.aws_account_id]
148148
}
149149
}
150150

@@ -162,7 +162,7 @@ data "aws_iam_policy_document" "cloudtrail_key_policy" {
162162
condition {
163163
test = "StringEquals"
164164
variable = "kms:CallerAccount"
165-
values = ["${var.aws_account_id}"]
165+
values = [var.aws_account_id]
166166
}
167167
condition {
168168
test = "StringLike"

modules/secure-bucket/main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ data "aws_iam_policy_document" "access_log_policy" {
55
actions = ["s3:*"]
66
effect = "Deny"
77
resources = [
8-
"${aws_s3_bucket.access_log[0].arn}",
8+
aws_s3_bucket.access_log[0].arn,
99
"${aws_s3_bucket.access_log[0].arn}/*"
1010
]
1111
condition {

0 commit comments

Comments
 (0)