4 Deploying a Multi-Tiered Web Application in AWS
This chapter covers:
- Packaging and organizing code in modules
- Best practices for structuring complex projects using modules
- Passing data between modules using input variables and output values
- Downloading and utilizing modules from the module registry
- Setting variable values from definition files
Don’t panic. The code in this chapter is a little crazy, I know, especially compared to what we’ve done before, but it’s not important that you completely understand it. Believe it or not, I actually want you to feel slightly uncomfortable, because that’s an important skill in being able to navigate someone else’s project structure and understand more or less how it works. The point of this chapter is not to teach you how to engineer a new project from scratch (as we’ll go over how to do that in the next chapter), but how to consume modules and pass data between them. That being said, you could pretty much lift this scenario as is, and with some minor tweaks, have a production ready system.