rails_stack Attributes - AWS OpsWorks

rails_stack Attributes

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.

name

Specifies the rails stack, and is set to "apache_passenger" or "nginx_unicorn" (string).

node["opsworks"]["rails_stack"]["name"]
recipe

The associated recipe, which depends on whether you are using Passenger or Unicorn (string):

  • Unicorn: "unicorn::rails"

  • Passenger: "passenger_apache2::rails"

node["opsworks"]["rails_stack"]["recipe"]
restart_command

The restart command, which depends on whether you are using Passenger or Unicorn (string):

  • Unicorn: "../../shared/scripts/unicorn clean-restart"

  • Passenger: "touch tmp/restart.txt"

service

The service name, which depends on whether you are using Passenger or Unicorn (string):

  • Unicorn: "unicorn"

  • Passenger: "apache2"

node["opsworks"]["rails_stack"]["service"]