Implementing Recipes for Chef 12.2 Stacks
Important
AWS OpsWorks Stacks is no longer accepting new customers. Existing customers will be able to use the OpsWorks console, API, CLI, and CloudFormation resources as normal until May 26, 2024, at which time they will be discontinued. To prepare for this transition, we recommend you transition your stacks to AWS Systems Manager as soon as possible. For more information, see AWS OpsWorks Stacks End of Life FAQs and Migrating your AWS OpsWorks Stacks applications to AWS Systems Manager Application Manager.
Chef 12.2 (currently Chef 12.22) is available only on Windows stacks, which must run that Chef version.
-
Recipes must use Windows-specific attributes and resources for some purposes.
For more information, see Chef for Microsoft Windows
. -
Chef runs use Ruby 2.3.6, so your recipes can use the new Ruby syntax.
-
Recipes can use Chef search and data bags.
Chef 12.2 stacks can use many community cookbooks without modification. For more information, see Using Chef Search and Using Data Bags.
-
Most of the stack configuration and deployment attributes described in AWS OpsWorks Stacks Data Bag Reference and Built-in Cookbook Attributes are available to Windows recipes.
You can use Chef search to obtain these attribute values. For an example, see Obtaining Attribute Values with Chef Search. For a list of attributes, see AWS OpsWorks Stacks Data Bag Reference.