Merge pull request #11621 from hashicorp/b-aws-test-fixes
provider/aws: Some Lambda test fixes
This commit is contained in:
commit
8f063d6773
|
@ -239,6 +239,7 @@ resource "aws_lambda_function" "lambda_function_test_update" {
|
|||
function_name = "example_lambda_name_update"
|
||||
role = "${aws_iam_role.iam_for_lambda.arn}"
|
||||
handler = "exports.example"
|
||||
runtime = "nodejs4.3"
|
||||
}
|
||||
|
||||
resource "aws_lambda_event_source_mapping" "lambda_event_source_mapping_test" {
|
||||
|
@ -324,6 +325,7 @@ resource "aws_lambda_function" "lambda_function_test_update" {
|
|||
function_name = "example_lambda_name_update"
|
||||
role = "${aws_iam_role.iam_for_lambda.arn}"
|
||||
handler = "exports.example"
|
||||
runtime = "nodejs4.3"
|
||||
}
|
||||
|
||||
resource "aws_lambda_event_source_mapping" "lambda_event_source_mapping_test" {
|
||||
|
|
|
@ -670,7 +670,9 @@ resource "aws_iam_role_policy" "iam_policy_for_lambda" {
|
|||
{
|
||||
"Effect": "Allow",
|
||||
"Action": [
|
||||
"ec2:CreateNetworkInterface"
|
||||
"ec2:CreateNetworkInterface",
|
||||
"ec2:DescribeNetworkInterfaces",
|
||||
"ec2:DeleteNetworkInterface"
|
||||
],
|
||||
"Resource": [
|
||||
"*"
|
||||
|
|
Loading…
Reference in New Issue