terraform/website/docs/configuration/modules.html.md
Nick Fagerlund 209541aaf0 website: Break up main Modules and Module Development pages
This one is a lot like the previous two commits, but slightly more complex:

- Only adding one new meta-argument page, for `providers`; otherwise, it just
  re-uses the dual-purpose pages I made in the resources commit.

- About that `providers` argument: The stuff that was relevant to consumers of a
  module went in that meta-argument page, but there was also a huge deep dive on
  how the _author_ of a re-usable module should handle provider configurations
  in cases where inheriting the default providers isn't sufficient. THAT, I
  moved into a new page in the module development section. (For the consumer of
  a module, this should all be an implementation detail; the module README
  should tell you which aliased providers you need to configure and pass, and
  then you just do it, without worrying about proxy configuration blocks etc.)

- The "standard module structure" recommendations in the main module development
  page gets a page of its own, to make it more prominent and discoverable.

- Same deal with using the old URL as a landing page, at least for the main
  module calls page. It didn't seem necessary for the module development page.
2020-11-17 16:30:51 -08:00

1.4 KiB

layout page_title
language Modules Landing Page - Configuration Language

Modules Landing Page

To improve navigation, we've split the old Modules page into several smaller pages.

Syntax and Elements of Module Blocks

This information has moved to Module Blocks.

Multiple Instances with count and for_each

This information has moved to count and for_each.

Handling Provider Configurations in Re-usable Modules

This information has moved to The providers Meta-Argument (for users of re-usable modules) and Providers Within Modules (for module developers).