Skip to content

Commit

Permalink
Delete unused data resources (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
arazdolski committed Dec 19, 2023
1 parent a04c7af commit 6962322
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -58,30 +58,6 @@ resource "aws_cloudwatch_log_group" "sftp_log_group" {
# Module : IAM POLICY
# Description : This data source can be used to fetch information about a specific IAM role.

data "aws_iam_policy_document" "transfer_server_assume_role" {
statement {
effect = "Allow"
actions = ["sts:AssumeRole"]

principals {
type = "Service"
identifiers = ["transfer.amazonaws.com"]
}
}
}

data "aws_iam_policy_document" "transfer_server_assume_policy" {
statement {
effect = "Allow"

actions = [
"s3:*",
]

resources = ["*"]
}
}

data "aws_iam_policy_document" "s3_access_for_sftp_users" {
for_each = var.enabled ? local.user_names_map : {}
statement {
Expand Down

0 comments on commit 6962322

Please sign in to comment.