-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Unable to create Kinesis Analytics application: InvalidArgumentException #7032
Comments
Hi @zentavr 👋 Thanks for the detailed report about this and apologies for the unexpected behavior. When working with IAM resources across other AWS services, eventual consistency within AWS can cause issues immediately after changes in IAM even with proper Terraform resource ordering. Each downstream AWS service handles these types of IAM permissions errors differently so we have to add custom logic for each case, but generally we just need to retry on the error (like the one you provided) for a reasonable period of time (up to 1 or 2 minutes). We currently handle one slightly different error case already in the resource: I also notice that our acceptance testing does not include an output Lambda function like yours above so hopefully adding a similar test configuration will trigger the error you see so we can ensure its properly fixed and regressions are prevented in the future. I have submitted #7039 to add the testing and retries. |
Hello @bflad , Thank you for the reply and all the explanations. We are on the development stage right now and it’s not very critical, but would be a problem a little bit later :) |
The fix for this should be merged and will release with version 1.55.0 of the Terraform AWS provider, likely middle of this week. |
This has been released in version 1.55.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
@bflad - I will test and let you know. |
@bflad - Thank you, it works! :) |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
--->
Expected Behavior
Kinesis application should be created, because I specified
...when creating
aws_kinesis_analytics_application.ks_app_sdk_health_analytics
resourceActual Behavior
Creation of Kinesis Application gets failed after the first execution. When I apply the same scripts second time - everyting gets created.
Important Factoids
I have my environment in the VPC
The text was updated successfully, but these errors were encountered: