Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
juttle-aws-adapter
Advanced tools
AWS adapter for the Juttle data flow language.
The AWS adapter is a Juttle frontend to various AWS APIs, returning the results of those API calls as Juttle points. You can use those points to perform detailed analysis of your AWS Infrastructure.
Additionally, the AWS adapter is packaged with a module that summarizes the raw API results, creating aggregate and demographic summary information from the raw points.
The adapter must be configured with an IAM Keypair to access the customer's AWS information and be given the region in which the customer's AWS products are located.
The adapter supports the following AWS Products:
By default, the adapter returns the raw json results of the AWS API calls for each product's "list items" function (e.g. EC2.describeInstances
, ELB.describeLoadBalancers
, etc) as Juttle points. The adapter also monitors the active set of items (EC2 Instances, etc) for each product and emits events when the items change. For example, when a new EC2 instance is added, a "EC2 instance added" event is generated. Also, when anything related to a given item is changed, a "... changed" event is generated.
The module packaged with the adapter, which can be imported via import "adapters/aws"
, exports several subgraphs that can be included in Juttle programs to automatically summarize the raw points returned from the AWS API calls. Each product has an aggregate_all_<product>()
subgraph that summarizes points associated with each product. Additionally, there is an aggregate_all
subgraph that summarizes for all products.
The subgraphs summarize the raw points into the following categories.
The full set of metrics and events are described here.
The AWS Adapter is very closely related to the Juttle Cloudwatch Adapter. The AWS adapter fetches current information about the demographics, capabilities, and configuration of a user's AWS resources and applications. The Cloudwatch adapter fetches historical monitoring information for the specific items in a user's AWS infrastructure.
import 'adapters/aws' as AWS;
read aws product='EC2'
| AWS.aggregate_EC2
| filter demographic='EC2 Instance Type'
| keep demographic, name, value
| view table
┌───────────────┬──────────┬──────────────────────────┐
│ name │ value │ demographic │
├───────────────┼──────────┼──────────────────────────┤
│ m3.medium │ 39 │ EC2 Instance Type │
├───────────────┼──────────┼──────────────────────────┤
│ m1.small │ 5 │ EC2 Instance Type │
├───────────────┼──────────┼──────────────────────────┤
│ m3.large │ 5 │ EC2 Instance Type │
├───────────────┼──────────┼──────────────────────────┤
│ m1.medium │ 2 │ EC2 Instance Type │
├───────────────┼──────────┼──────────────────────────┤
│ t1.micro │ 4 │ EC2 Instance Type │
├───────────────┼──────────┼──────────────────────────┤
│ c3.xlarge │ 1 │ EC2 Instance Type │
├───────────────┼──────────┼──────────────────────────┤
│ t2.micro │ 3 │ EC2 Instance Type │
├───────────────┼──────────┼──────────────────────────┤
│ c3.8xlarge │ 1 │ EC2 Instance Type │
├───────────────┼──────────┼──────────────────────────┤
│ m4.4xlarge │ 1 │ EC2 Instance Type │
├───────────────┼──────────┼──────────────────────────┤
│ m3.2xlarge │ 2 │ EC2 Instance Type │
├───────────────┼──────────┼──────────────────────────┤
│ c3.large │ 1 │ EC2 Instance Type │
├───────────────┼──────────┼──────────────────────────┤
│ c4.2xlarge │ 1 │ EC2 Instance Type │
├───────────────┼──────────┼──────────────────────────┤
│ m3.xlarge │ 1 │ EC2 Instance Type │
├───────────────┼──────────┼──────────────────────────┤
│ t2.small │ 1 │ EC2 Instance Type │
├───────────────┼──────────┼──────────────────────────┤
│ t2.medium │ 1 │ EC2 Instance Type │
└─────────────────────────────────────────────────────┘
An end-to-end example is described here and deployed to the demo system demo.juttle.io.
Like Juttle itself, the adapter is installed as a npm package. Both Juttle and the adapter need to be installed side-by-side:
$ npm install juttle
$ npm install juttle-aws-adapter
The juttle-aws-adapter fits into the overall Juttle Ecosystem as one of the adapters in the below diagram:
Configuration involves these steps:
.juttle/config.js
This page provides a good introduction to IAM access keys and how to obtain them for your amazon account.
The key must have read-only access for the products for which you want to obtain metrics and events. The following default policies are sufficient:
.juttle/config.js
Add a config block like this to .juttle/config.js
:
{
"adapters": {
"aws": {
access_key: "--YOUR-ACCESS-KEY-HERE--",
secret_key: "--YOUR-SECRET-KEY-HERE--",
region: "--YOUR-REGION-HERE--"
}
}
}
Region is a region like us-west-2
.
Read command line format and examples:
read [(product filter) [OR (product filter)]...]
read product="EC2" // Return all metrics and events for all EC2 instances
read product="EC2" OR product="EBS" // Return all metrics and events for the set of EC2 instances and EBS volumes
The aws adapter only reads current live information, and as a result does not support a timerange in the past. The frequency at which the adapter polls AWS can be controlled via the -every
option and the stop time can be controlled via the -to
options.
The filtering expression consists of any number of product or item filters, combined with OR
.
A product filter has the format product="<aws product>"
, where <aws product>
is one of the following:
EC2
EBS
ELB
RDS
CloudFront
AutoScaling
ElastiCache
Lambda
The returned data will consist of Raw Points or Aggregate Metric/Demographic Metrics for the specified products.
With no filter expression at all, the returned data will consist of all metrics and events for all supported products.
Want to contribute? Awesome! Don’t hesitate to file an issue or open a pull request.
0.3.1
Released 2016-03-23
FAQs
Juttle adapter for AWS (Amazon Web Services)
The npm package juttle-aws-adapter receives a total of 11 weekly downloads. As such, juttle-aws-adapter popularity was classified as not popular.
We found that juttle-aws-adapter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.