Skip to content
This repository was archived by the owner on Mar 17, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion engines/terraform/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ func NewTerraformDeployment(engine *TerraformEngine, stackName string) *Terrafor
func (td *TerraformDeployment) resolveInfraResource(infraName string) (cdktf.TerraformHclModule, error) {
resource, ok := td.engine.platform.InfraSpecs[infraName]
if !ok {
return nil, fmt.Errorf("infra resource %s not found", infraName)
availableResources := slices.Collect(maps.Keys(td.engine.platform.InfraSpecs))
return nil, fmt.Errorf("referenced infra resource '%s' is not defined in the platform. Available infra resources are: %v", infraName, availableResources)
}
Comment thread
raksiv marked this conversation as resolved.

if _, ok := td.terraformInfraResources[infraName]; !ok {
Expand Down