Ruby developers: attend this session and learn about the next major version of the AWS SDK for Ruby, the aws-core gem. We dive deep into the SDK, covering topics such as waiters, request enumeration and pagination, resource modeling, version locking, and more. Learn how to take advantage of these features as we construct a sample Ruby application using the AWS SDK.
53. Writing Plugins
* The entire SDK is written as a series of plugins
Friday, November 15, 13
Ideas:
Data Integrity Checks
54. Writing Plugins
* The entire SDK is written as a series of plugins
Friday, November 15, 13
Ideas:
Data Integrity Checks
Extended Retry Logic
55. Writing Plugins
* The entire SDK is written as a series of plugins
Friday, November 15, 13
Ideas:
Data Integrity Checks
Extended Retry Logic
Default Values
56. Writing Plugins
* The entire SDK is written as a series of plugins
Friday, November 15, 13
Ideas:
Data Integrity Checks
Extended Retry Logic
Default Values
Cross Service Hooks
61. Plugins, Handlers and Context, Oh My!
Plugin
Context
• provides a DSL
• easy to add/remove
•
•
•
•
•
•
•
Handler
• stacked
• similar to rack middleware
Friday, November 15, 13
operation name
configuration
request parameters
http request
http response
response data
response error
62. Plugins, Handlers and Context, Oh My!
Plugin
Context
• provides a DSL
• easy to add/remove
•
•
•
•
•
•
•
operation name
configuration
request parameters
http request
http response
response data
response error
Let’s Build Something!
Handler
• stacked
• similar to rack middleware
Friday, November 15, 13
63. Best Practices
• Depend on major versions of the SDK
• gem
“aws-‐sdk-‐core”,
“~>
2.0”
• API Locking
• Lock your clients to a specific API version
• Aws::DynamoDB.new(api_version:
‘2012-‐08-‐10’)
• Secure Credential Management
• Rotate credentials
• Use IAM roles for EC2 instances when possible
• ENV variables (Heroku, etc.)
• From a file on disk (outside source control)
• Never check your credentials into source control!
Friday, November 15, 13
77. Please give us your feedback on this
presentation
TLS305
As a thank you, we will select prize
winners daily for completed surveys!
Friday, November 15, 13
Thank You