Policy Packs
Enforce AWS Lambda Functions Restrict Public Access

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

Policies

This policy setting is dependent on the following policy types:

Source

resource "turbot_policy_setting" "aws_lambda_function_policy_trusted_access_accounts" {
resource = turbot_policy_pack.main.id
type = "tmod:@turbot/aws-lambda#/policy/types/functionPolicyTrustedAccounts"
# Insert your Account IDs below
value = <<-EOT
- "123456789012"
- "987654321098"
EOT
}