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
From the course: Advanced AWS CloudFormation for Enterprise
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
-
-
-
-
-
-
(Locked)
Demo: Composing CloudFormation stacks with nested stacks and packaged code13m 54s
-
(Locked)
Transform templates with AWS CloudFormation macros6m 11s
-
(Locked)
Demo: Template-level macro transformations8m 1s
-
(Locked)
Demo: Snippet-level macro transformations10m 28s
-
(Locked)
Macro teardown1m 9s
-
(Locked)
Create reusable components with CloudFormation modules4m 26s
-
(Locked)
Demo: Creating a CloudFormation module8m 26s
-
(Locked)
Demo: Using a CloudFormation module7m 16s
-
(Locked)
-
-