| 323 | } |
| 324 | |
| 325 | func (module *Module) InitNodes() { |
| 326 | // Locate the Resources: section in the module |
| 327 | _, moduleResources, _ := s11n.GetMapValue(module.Node, string(cft.Resources)) |
| 328 | module.ResourcesNode = moduleResources |
| 329 | |
| 330 | // Locate the Parameters: section in the module (might be nil) |
| 331 | _, moduleParams, _ := s11n.GetMapValue(module.Node, string(cft.Parameters)) |
| 332 | module.ParametersNode = moduleParams |
| 333 | |
| 334 | // Locate the Outputs: section in the module (might be nil) |
| 335 | _, moduleOutputs, _ := s11n.GetMapValue(module.Node, string(cft.Outputs)) |
| 336 | module.OutputsNode = moduleOutputs |
| 337 | |
| 338 | // Locate the Conditions: section in the module (might be nil) |
| 339 | _, moduleConditions, _ := s11n.GetMapValue(module.Node, string(cft.Conditions)) |
| 340 | module.ConditionsNode = moduleConditions |
| 341 | |
| 342 | // Locate the Modules: section in the module (might be nil) |
| 343 | _, moduleModules, _ := s11n.GetMapValue(module.Node, string(cft.Modules)) |
| 344 | module.ModulesNode = moduleModules |
| 345 | } |
| 346 | |
| 347 | // ProcessResources injects the module's resources into the output node |
| 348 | func (module *Module) ProcessResources(outputNode *yaml.Node) error { |