Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provider/aws: Retry Lambda func creation on IAM error #15067

Merged
merged 1 commit into from
Jun 5, 2017

Conversation

radeksimko
Copy link
Member

This is to address the following test failure:

=== RUN   TestAccAWSLambdaFunction_importLocalFile_VPC
--- FAIL: TestAccAWSLambdaFunction_importLocalFile_VPC (16.48s)
    testing.go:280: Step 0 error: Error applying: 1 error(s) occurred:
        
        * aws_lambda_function.lambda_function_test: 1 error(s) occurred:
        
        * aws_lambda_function.lambda_function_test: Error creating Lambda function: InvalidParameterValueException: The provided execution role does not have permissions to call CreateNetworkInterface on EC2
            status code: 400, request id: ddb1a6a7-48e4-11e7-9d99-9d3b481e3ff0
FAIL

Here's a snippet from the debug log proving this is the API call that returned the error:

---[ RESPONSE ]--------------------------------------
HTTP/1.1 400 Bad Request
Connection: close
Content-Length: 119
Content-Type: application/json
Date: Sun, 04 Jun 2017 05:15:46 GMT
X-Amzn-Errortype: InvalidParameterValueException
X-Amzn-Requestid: ddb1a6a7-48e4-11e7-9d99-9d3b481e3ff0


{"Type":"User","message":"The provided execution role does not have permissions to call CreateNetworkInterface on EC2"}
-----------------------------------------------------

Copy link
Contributor

@stack72 stack72 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eventual consistency makes me sad :( But this PR LGTM!

@radeksimko radeksimko merged commit b14b81f into master Jun 5, 2017
@radeksimko radeksimko deleted the b-aws-lambda-retry branch June 5, 2017 08:49
@ghost
Copy link

ghost commented Apr 11, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants