Best way to export Terraform environment variables to AWS Parameter Store

I have a problem how best to export environment variables from a Terraform project to the AWS Parameter Store.

I have 9 separate projects in 3 Development projects, 3 Test projects and 3 Production projects.

Each project has approximately 50 environment variables.

I’m looking for a good way to export the variables of these projects to the AWS Parameter Store, since there are many variables to be explicitly declared in the Terraform code.

I created a module for the Parameter Store, but this is the least of the problems, the main problem would be how to export the variables without having to explicitly name them one by one as this would be a security problem.

Thank you very much in advance