our project is using Bazel, and I realize that different parts of the project depend on different resource on Terraform. For example, one will need to create an artifact registry registry-<username>
where username is the developer’s ID, and then one of our bazel rule oci_push
will push built image to the registry.
What I want is, when one run the oci_push
, the terraform creates the registry it needs, and I found that there is no production version terraform rules.
Can you recommend me what is the best way to deal with this? I know there are a lot of options, I’m just not sure what’s the clean solution to this.
One way I am thinking is to just define custom commands to run terraform from different directories, where each directory contains a group of resources that needs to be created at the same time.
nsmsms is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1