From the course: Advanced AWS CloudFormation for Enterprise

Unlock the full course today

Join today to access over 24,900 courses taught by industry experts.

Demo: Using a CloudFormation module

Demo: Using a CloudFormation module

- [Instructor] Okay, picking back up from the previous video, we're looking at use_module.yml underneath the modules folder. Very short template here. We've got parameters, we've still got to pass in a subnet but then we have something that we named with a logical ID of Web Stack Resource and it's type needs to be the type that we just created. So make sure that this matches what you created earlier. I call it Brandon Demo WebStack Module. You'll call this whatever you named it. And it takes parameters just the same parameters that are needed inside the module. Again, it's important as the writer of the module to let people know what's expected and then also what the outputs are. So we're outputting the IP. So this does essentially everything that we did with the basic EC2 template before but now we're doing it through this encapsulated concept of a module, which is something that can be reused over and…

Contents