karanpratapsingh / preview-environments

Quickly create temporary preview environments
MIT License
14 stars 4 forks source link

InvalidParameterException: Unsupported resource type: cluster #7

Closed moisesrodriguez closed 2 years ago

moisesrodriguez commented 2 years ago

I'm getting this error when the provision step. I do not see anywhere in the code anything with type cluster that would give me an idea where the error comes from.

Screen Shot 2022-02-07 at 17 19 26

moisesrodriguez commented 2 years ago

I believe the previous error was because I had to manually create the ECS Cluster myself and then pass the name to config.ts. But now I'm getting Error: : InvalidParameterException: Tasks cannot be empty:

Screen Shot 2022-02-07 at 18 19 25

karanpratapsingh commented 2 years ago

yes, the cluster is required, this script only creates/removes the task. I think this issue is coming from somewhere here https://github.com/karanpratapsingh/preview-environments/blob/master/infrastructure/iam.tf.

Steps to debug:

moisesrodriguez commented 2 years ago

This last error was fixed with the PR https://github.com/karanpratapsingh/preview-environments/pull/10