Last active
August 29, 2015 14:22
-
-
Save ilyakatz/274b071a865ab9854dca to your computer and use it in GitHub Desktop.
Viewing logs in OpsWorks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aws-sdk-core' | |
deployments = opsworks.describe_commands(deployment_id: deployment_id) | |
region = "us-east-1" | |
opsworks = Aws::OpsWorks::Client.new(region: region) | |
deployments = opsworks.describe_commands(deployment_id: deployment_id) | |
deployments[0].collect(&:log_url).compact |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo opsworks-agent-cli show_log | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment