Skip to content
This repository has been archived by the owner on Apr 18, 2022. It is now read-only.

Commit

Permalink
Fix permissions issue for lambda in vpc
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Fairhead committed Nov 30, 2018
1 parent d962630 commit 412b03c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lambda_cron/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ resource "aws_iam_role_policy_attachment" "basic_exec_role" {
policy_arn = "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
}

resource "aws_iam_role_policy_attachment" "vpc_access" {
role = "${aws_iam_role.job.name}"
policy_arn = "arn:aws:iam::aws:policy/service-role/AWSLambdaVPCAccessExecutionRole"
}

data "aws_iam_policy_document" "secrets" {
statement {
actions = [
Expand Down

0 comments on commit 412b03c

Please sign in to comment.