resource "aws_instance" "test_instance" {
ami = "ami-123"
instance_type = "c6i.large"
}
aws_instance.test_instance
├─ Instance usage (Linux/UNIX, on-demand, c6i.large) 730 hours $62.05
- Download OpenSSH for Windows and install it.
- Setup the environment variables needed to run the SSH Agent by opening a command line shell, and running
ssh-agent -s
. This will output 2 environment variables that you can set by runningset SSH_AUTH_SOCK=value_here
andset SSH_AGENT_PID=value_here
. - In the command line shell, run
ssh-agent
to start the SSH Agent.
This file contains 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
See the API docs at http://reference.rightscale.com/cloud_analytics/analytics_api/index.html for login details | |
# Getting a list of available Filters. These filters can be used to create Scheduled Reports, Budget Alerts etc. | |
curl -G https://analytics.rightscale.com/api/instances/actions/filter_options \ | |
-H X-Api-Version:1.0 \ | |
-H Content-Type:application/json \ | |
-b rightscalecookies \ | |
-d start_time=2015-04-01 \ | |
-d end_time=2015-05-06 \ | |
-d filter_types[]=instance:account_id \ |
This file contains 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
# Gems needed to convert a Postgres DB to MySQL | |
gem 'pg', '~> 0.14.0' | |
gem 'mysql2', '~> 0.3.11' | |
gem 'taps', '~> 0.3.24' | |
gem 'sqlite3', '~> 1.2' |
This file contains 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 'fileutils' | |
OUT_DIR = 'public' | |
desc 'Prepare and upload the static site to S3' | |
task :upload, [:name] do |t, args| | |
raise Exception.new('You must provide the name of site to upload to, e.g., be rake upload[www]') unless args[:name] | |
puts "Removing existing output directory" | |
FileUtils.rm_rf OUT_DIR if File.exists?(OUT_DIR) |
This file contains 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
Request URL:http://localhost:3000/videos | |
Request Method:POST | |
Status Code:302 Found | |
Request Headersview parsed | |
POST /videos HTTP/1.1 | |
Host: localhost:3000 | |
Connection: keep-alive | |
Content-Length: 707456 | |
Cache-Control: max-age=0 | |
Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ= |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>MyApp</title> | |
<link href="/assets/application.css?body=1" media="all" rel="stylesheet" type="text/css" /> | |
<link href="/assets/twitter/bootstrap.css?body=1" media="all" rel="stylesheet" type="text/css" /> | |
<link href="/assets/scaffolds.css?body=1" media="all" rel="stylesheet" type="text/css" /> | |
<link href="/assets/videos.css?body=1" media="all" rel="stylesheet" type="text/css" /> | |
<script src="/assets/jquery.js?body=1" type="text/javascript"></script> |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>MyApp</title> | |
<link href="/assets/application.css?body=1" media="all" rel="stylesheet" type="text/css" /> | |
<link href="/assets/twitter/bootstrap.css?body=1" media="all" rel="stylesheet" type="text/css" /> | |
<link href="/assets/scaffolds.css?body=1" media="all" rel="stylesheet" type="text/css" /> | |
<link href="/assets/videos.css?body=1" media="all" rel="stylesheet" type="text/css" /> | |
<script src="/assets/jquery.js?body=1" type="text/javascript"></script> |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>MyApp</title> | |
<link href="/assets/application.css?body=1" media="all" rel="stylesheet" type="text/css" /> | |
<link href="/assets/twitter/bootstrap.css?body=1" media="all" rel="stylesheet" type="text/css" /> | |
<link href="/assets/scaffolds.css?body=1" media="all" rel="stylesheet" type="text/css" /> | |
<link href="/assets/videos.css?body=1" media="all" rel="stylesheet" type="text/css" /> | |
<script src="/assets/jquery.js?body=1" type="text/javascript"></script> |