Configsets like in Terraform

Hi there,

We have the configsets to run the scripts or for any custom installs (other than user data) in AWS CloudFormation. How does the similar works in Terraform?.

Lets say:

  1. Installing the latest AWS CLI version
  2. Volumes configuation
  3. SSM agent installtion
  4. CW agent installation
  5. Domain Join
  6. web serever installtion
  7. Code Deploy
  8. Firewalls setup etc

I am have set all the above and more in the CFN tempaltes now and trying to simulate the same in TF. Userdata is not helping (not expected though!). I should let the Org level scripts to run at first and once they are done, I want my configets should run.

Any ideas please.

Thanks,
M