I want to get a list of ARNs of every repository that exists in my account using Terraform.
I know I can use aws_codecommit_repository data source to get arn of a specific repository by specifying repository_name.
But how can I get arns of every repository without specifying any particular repository name? Is it possible?
Whenever you don't find a data source that does what you need you have to resort to an external
datasource.To get all code commit repository ARNs, you may use:
util.sh:main.tf:Note that this requires
jqinstalled.