Skip to content

Commit

Permalink
Feature/firehose prefix (#50)
Browse files Browse the repository at this point in the history
* prefixのリバイス

* IAMの修正
  • Loading branch information
XxxKMSxxX authored Jul 28, 2024
1 parent 81a1976 commit 35bde77
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/firehose/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,11 @@ resource "aws_iam_role_policy" "firehose_policy" {
"glue:GetDatabases",
"glue:UpdateDatabase"
],
Resource = "arn:aws:glue:${var.aws_region}:${data.aws_caller_identity.current.account_id}:catalog"
Resource = [
"arn:aws:glue:${var.aws_region}:${data.aws_caller_identity.current.account_id}:catalog",
"arn:aws:glue:${var.aws_region}:${data.aws_caller_identity.current.account_id}:database/${aws_glue_catalog_database.my_database.name}",
"arn:aws:glue:${var.aws_region}:${data.aws_caller_identity.current.account_id}:table/${aws_glue_catalog_table.my_table.name}"
]
},
{
Effect = "Allow",
Expand Down

0 comments on commit 35bde77

Please sign in to comment.