Skip to content

Commit

Permalink
Merge pull request #6 from ottertune/remove-db-connect
Browse files Browse the repository at this point in the history
[FE-285] remove db-connect from tf
  • Loading branch information
gormanstock authored Oct 5, 2023
2 parents 63f8b97 + 4149d89 commit e6ad36c
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 e6ad36c

Please sign in to comment.