Skip to content

Commit

Permalink
remove db-connect
Browse files Browse the repository at this point in the history
  • Loading branch information
gormanstock committed Oct 5, 2023
1 parent 63f8b97 commit 4149d89
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,6 @@ data "aws_iam_policy_document" "ottertune_db_policy" {
}


data "aws_iam_policy_document" "ottertune_connect_policy" {
statement {
actions = ["rds-db:connect"]
resources = ["arn:aws:rds-db:*:*:dbuser:*/ottertune*"]
}
}


data "aws_iam_policy_document" "ottertune_copy_pg_policy" {
statement {
actions = [
Expand Down Expand Up @@ -116,8 +108,7 @@ data "aws_iam_policy_document" "ottertune_cluster_tuning_policy" {
}

data "aws_iam_policy_document" "ottertune_policy_document_combined" {
source_policy_documents = concat([data.aws_iam_policy_document.ottertune_db_policy.json,
data.aws_iam_policy_document.ottertune_connect_policy.json],
source_policy_documents = concat([data.aws_iam_policy_document.ottertune_db_policy.json],
var.permissions_level == "write_limited" ? [data.aws_iam_policy_document.ottertune_copy_pg_policy.json, data.aws_iam_policy_document.ottertune_pg_policy.json, data.aws_iam_policy_document.ottertune_cluster_pg_policy.json] : [],
length(var.tunable_parameter_group_arns) > 0 ? [data.aws_iam_policy_document.ottertune_tuning_policy.json] : [],
length(var.tunable_aurora_cluster_parameter_group_arns) > 0 ? [data.aws_iam_policy_document.ottertune_cluster_tuning_policy.json] : [])
Expand Down

0 comments on commit 4149d89

Please sign in to comment.