Amazon Web Services (AWS) has introduced a set of tools designed to provide organizations with detailed insights into the usage and adoption of its artificial intelligence agents, AWS Quick and Kiro. These new capabilities aim to equip administrators with the data needed to understand how these AI tools are being utilized across their operations, track agent hours, and facilitate internal cost allocation.
The Chenab Times has learned that the solution involves leveraging AWS Quick’s usage datasets, which can be configured to log chat activity, agent hours, user feedback, and index usage. These logs are delivered to an Amazon Simple Storage Service (Amazon S3) bucket owned by the customer. An open-source setup script automates the process of creating these logs, establishing AWS Glue tables, configuring an Amazon Athena workgroup, and setting up four Amazon QuickSight SPICE datasets.
Solution Overview and Data Flow
The newly introduced framework allows organizations to ingest usage events published by AWS Quick as vended logs. These events are then directed through Amazon CloudWatch Logs to a designated S3 bucket. The system subsequently generates AWS Glue tables and an Athena workgroup, culminating in the creation of four SPICE datasets: chat activity, agent hours, feedback, and index usage. This structured data pipeline supports comprehensive usage reporting and enables accurate internal cost allocation by team and by service surface, such as desktop and web.
The setup script is designed to be run in each AWS Region where an organization wishes to monitor usage. Once configured, logging commences automatically. The datasets are refreshed daily at 02:00 UTC, with an option for immediate manual refreshes. Beyond the base Quick usage data, the system can be extended with Kiro usage reports and broader organizational data through additional scripts, creating joined datasets and feeding into enhanced dashboards.
Prerequisites and Access Control
Implementing these monitoring tools requires an active AWS account with AWS Quick enabled in the desired region. A Quick user with Administrator or Administrator Pro roles is necessary to own the datasets. Additionally, a role with appropriate permissions is needed to execute the setup script, which creates various AWS resources including S3 buckets, CloudWatch Logs deliveries, Athena and AWS Glue resources, and IAM policies.
The logs contain user-identifiable information, such as usernames or email addresses, embedded within user ARNs. Access to the raw data in the S3 bucket is governed by IAM policies, while access to the datasets and dashboards within Quick is managed separately. By default, only the dataset owner can access the data, but permissions can be extended through Quick’s sharing mechanisms. Optional default access policies can be set to ‘Deny’ for enhanced security, restricting access across S3, Athena, Amazon Redshift, and Amazon Relational Database Service (Amazon RDS) unless explicitly permitted.
Setup, Verification, and Querying
The setup process is initiated via a Python script executed within AWS CloudShell. Users can perform a dry run to preview the actions before execution. The script prompts for confirmation of account ID and requires specific phrases to be entered for critical steps, such as bucket creation. Users can define log retention periods and choose to reuse existing S3 buckets. For access control, users can opt for a ‘DENY DEFAULT ACCESS’ policy or accept the default exposure.
Verification steps include checking for the presence of log files in the designated S3 bucket, confirming data ingestion into Quick datasets after a brief delay, and testing viewer access to ensure that unauthorized users are restricted. Once the setup is verified, users can begin querying the data. For instance, a question like “How many chat messages did distinct users send in the reporting period?” can be posed directly in Quick Chat. The results can be cross-referenced with queries run in Amazon Athena to ensure consistency.
Integrating Kiro and Organizational Context
An additional script is available to integrate Kiro usage data. This requires a Kiro profile within the same AWS account and Kiro administrator permissions. Running this script creates specific Kiro usage datasets and contributes to a unified AWS Quick and Kiro usage dashboard. The Kiro usage datasets provide records per user, day, and client, enabling analysis of distinct users for monthly reporting.
A further script allows for the integration of organizational context, such as division, department, and cost center, by leveraging AWS IAM Identity Center user data. This script creates new datasets appended with organizational attributes and updates a dedicated “AWS Quick usage by organization” dashboard. These organizational attributes are updated only when the script is re-executed, ensuring that the -with-org datasets reflect the latest organizational structure alongside usage data.
Cost Considerations and Cleanup
The operational costs associated with this solution are attributed to Amazon Athena scans during data refreshes, SPICE capacity usage, S3 storage, and CloudWatch Logs delivery. For example, a week’s worth of logs might amount to approximately 89 KB, with datasets consuming around 0.3 MB of SPICE capacity and daily refreshes scanning about 77 KB in Athena. These costs are generally considered modest for the visibility provided.
For cleanup, it is recommended to run the destroy commands for the Kiro and organization scripts first, as they depend on the base datasets. Subsequently, the primary setup script can be run with the “–destroy” flag. This process removes the starter analysis, dashboards, and log files, while retaining the customer-owned S3 bucket. Deleted usage logs are irretrievable, underscoring the importance of careful data management.

The Chenab Times News Desk

