Get started › Connect a provider
AWS
Connect flo8t to an AWS account with an IAM user or a role it assumes. flo8t reads EC2, EBS, CloudWatch, CloudTrail and prices.
Checked on a real AWS account.
Connection
Section titled “Connection”| Field | Value |
|---|---|
| Authentication Method | Assume Role (recommended) or Access Key |
| Role ARN | For Assume Role, for example arn:aws:iam::123456789012:role/FloatCollector |
| External ID | Only if the role’s trust policy requires one |
| Base Access Key ID, Secret | The IAM user flo8t uses to call AssumeRole. Needed because flo8t runs outside AWS |
| Access Key ID, Secret | For Access Key: the IAM user’s own keys |
| Account ID | Detected on connect if left blank |
| Regions | Comma-separated, or blank for every region the account has enabled |
| CloudWatch Agent Namespace | Where the CloudWatch Agent publishes memory and disk, CWAgent by default |
Add one provider per account. A role avoids storing a long-lived key for the account itself.
Permissions
Section titled “Permissions”Create a policy FloatRead and attach it to the user, or to the role:
{ "Version": "2012-10-17", "Statement": [{ "Effect": "Allow", "Action": [ "ec2:DescribeRegions", "ec2:DescribeAvailabilityZones", "ec2:DescribeInstances", "ec2:DescribeInstanceTypes", "ec2:DescribeVolumes", "ec2:DescribeSnapshots", "ec2:DescribeInstanceStatus", "ec2:DescribeSecurityGroups", "ec2:DescribeInstanceCreditSpecifications", "cloudwatch:GetMetricData", "cloudwatch:ListMetrics", "cloudtrail:LookupEvents", "health:DescribeEvents", "health:DescribeAffectedEntities", "pricing:GetProducts", "servicequotas:GetServiceQuota" ], "Resource": "*" }]}Only if flo8t runs actions, add a policy FloatActions with ec2:StartInstances,
ec2:StopInstances, ec2:RebootInstances, ec2:CreateSnapshot, ec2:DeleteSnapshot and
ec2:CreateTags.
With Assume Role, the base user needs sts:AssumeRole on the role, and the role’s trust
policy must allow that user (with your external ID if you set one).
Memory and disk
Section titled “Memory and disk”EC2 publishes no memory or disk-use metrics on its own. Install the CloudWatch Agent on the
instances, publishing mem_used_percent and disk used_percent with the InstanceId
dimension. Without it, memory right-sizing and disk use are unavailable for that instance;
CPU right-sizing still works.
What flo8t collects, and how often
Section titled “What flo8t collects, and how often”| What | How often |
|---|---|
| Inventory: instances, volumes, snapshots | Every hour |
| Performance from CloudWatch | Every 5 minutes |
| Events: CloudTrail and AWS Health | Every hour |
On the first day, flo8t loads the last 30 days for each instance, so right-sizing can start the next morning. AWS bills the CloudWatch metric requests flo8t makes, on your AWS invoice.