Since Terraform is a 3rd party infrastructure as code tool I wouldn’t be able to advise much on its usage in this particular scenario unfortunately.
As far as automating it outside of Terraform, a strategy I use is to view all the available APIs for a service using the AWS CLI documentation, searching for the step-by-step APIs that would complete the goal, and if they exist you can then create a script. If the APIs don't exist to complete your goal then you'll have to stick with your current process.
How do I configure an Amazon MQ instance that's in a VPC to invoke a Lambda function?Accepted Answerasked 2 years ago
Use Customerdisplay name in amazon connect contact flowasked 5 months ago
use amazon connect to set a specific date (April 12, 2022) to receive callsasked 5 months ago
Amazon connect contact flow regression testingasked 5 months ago
Get Attributes from Amazon Connect to Amazon Lexasked 3 years ago
AWS Lambda not able to connect to public RDS instanceasked 5 months ago
How do I link my Amazon Connect instance to a Lambda function outside the contact flow with automationasked 3 months ago
Receiving an error message while trying to create an instance in Amazon Connect.asked 5 days ago
Lambda Function returned an error in Connect Contact Flow logs, but Lambda itself working fineasked 4 months ago
How do I remove contacts from a callback queue in Amazon Connect?EXPERTasked 9 months ago