Policy Packs
Enforce AWS Lambda Functions Restrict Public Access

Policy Setting: AWS > Lambda > Function > Policy > Trusted Access > Services

Policies

This policy setting is dependent on the following policy types:

Source

resource "turbot_policy_setting" "aws_lambda_function_policy_trusted_access_services" {
resource = turbot_policy_pack.main.id
type = "tmod:@turbot/aws-lambda#/policy/types/functionPolicyTrustedServices"
# Insert your services below
value = <<-EOT
- "sns.amazonaws.com"
- "ec2.amazonaws.com"
EOT
}