1 min read | by Jordi Prats
To be able to get a list of resources managed by terraform we can use terraform state list for listing all the resources on the terraform state:
$ terraform state list
helm_release.ampa
kubernetes_ingress.ampa
kubernetes_ingress.grafana
kubernetes_ingress.prometheus-server
module.monitoring.helm_release.prometheus
module.monitoring.kubernetes_namespace.monitoring_namespace
module.monitoring.module.adapter.helm_release.prometheus-adapter
module.monitoring.module.grafana.helm_release.grafana
If we want to get the details of any given resources, we can use terraform state show for describing it's state.
Posted on 07/05/2021