Step 7: Explore the Instance's Settings and Logs - AWS OpsWorks

Step 7: Explore the Instance's Settings and Logs

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.

Examine the settings that AWS OpsWorks Stacks used to launch the instance. You can also examine the instance logs that AWS OpsWorks Stacks created.

To display the instance's settings and logs
  1. In the service navigation pane, choose Instances. The Instances page displays.

  2. For Node.js App Server, choose nodejs-server1. The instance's properties page is shown.

  3. To explore the instance logs, in the Logs section, for Log, choose show.

  4. AWS OpsWorks Stacks displays the log in a separate web browser tab.

To learn more about what some of the instance settings represent, return to the nodejs-server1 page, choose Stop, and when you see the confirmation message, choose Stop. Choose Edit after Status changes from stopping to stopped, and then hover over each of the settings. (Not all settings have on-screen descriptions.) For more information about these settings, see Adding an Instance to a Layer.

When you have finished reviewing settings, choose Start to restart the instance, and wait until Status changes to online. Otherwise, you won't be able to test the app later, because the instance will remain stopped.

Note

If you want to log in to the instance to explore it further, you must first provide AWS OpsWorks Stacks with information about your public SSH key (which you can create with tools such as ssh-keygen or PuTTYgen), and then you must set permissions on the My Sample Stack (Linux) stack to enable your user to log in to the instance. For instructions, see Registering a User's Public SSH Key and Logging In with SSH.

In the next step, explore the app's settings.