Step 2: Tag the demo instance - Application Monitoring with Amazon CloudWatch

Step 2: Tag the demo instance

Before adding a tag to the demo instances, verify that the <Workload> Demo Instance parameter for the workloads is set to Yes. Once the deployment is complete, you can tag instances and monitor them on the Amazon CloudWatch dashboard. When adding a tag to your demo EC2 Instance, you must use the same tag as the <Workload> Tagging Schema parameter value used in your stack deployment.

  1. Sign in to the Amazon EC2 console.

  2. Select the demo instance <stack-name>-DemoEC2 deployed with default parameters.

  3. Select the Tags tab and choose Manage tags.

  4. Choose Add tag to the instance and provide the key-value pair you provided during deployment. The default value for Apache demo instance is shown in the Add tag figure for the Apache workload. Similar tags need to be added for respective workload demo instances.

    Add tag

    Add tag

  5. Choose Save.

  6. The Lambda function runs on cron schedule and it can take up to 5 minutes for the instance to show up on the CloudWatch dashboard.

  7. Sign in to the Amazon CloudWatch dashboard console and select the deployed dashboard. The dashboard should look similar to the example (CloudWatch Dashboard for Apache figure) for Apache. You should see similar dashboards for NGINX and Puma workloads as well.

    CloudWatch dashboard for Apache

    CloudWatch dashboard for Apache