[Bug]: Kinesis analytics v2 application recreates after change of runtime_envrionment && ConcurrentModificationException #37529
Labels
bug
Addresses a defect in current functionality.
service/kinesisanalyticsv2
Issues and PRs that pertain to the kinesisanalyticsv2 service.
Terraform Core Version
1.6.6
AWS Provider Version
5.48.0
Affected Resource(s)
Expected Behavior
After the kinesis configuration runtime_environment is changed it should trigger an update for the existing kinesis application.
Actual Behavior
Terraform deletes the kinesisanalitycsv2 application and creates a new one with the same name, which resolves in ConcurrentModificationException.
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Create a terraform stack on aws with the kinesis analytics v2 application using runtime_environment = "FLINK-1_15".
Modify the Terraform file and change the version of runtime_environment to runtime_environment = "FLINK-1_18".
Run the plan and apply again.
Debug Output
No response
Panic Output
No response
Important Factoids
The issue with ConcurrentModificationException is described in #31239, but the expected behavior is incorrect as it states that "Terraform should delete the existing AWS Kinesis Analytics application and create a new application with the new runtime environment."
In case of changing runtime_environment the update of the application should be performed instead of recreating application. In aws-sdk-go-v2 application runtime environment update can be performed via func (c *Client) UpdateApplication(ctx context.Context, params *UpdateApplicationInput, optFns ...func(*Options)) (*UpdateApplicationOutput, error)
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: