Getting Started
Connect AWS to Blocks to enable agents to interact with your cloud infrastructure. Agents can inspect resources, query services, assist with deployments, and help troubleshoot issues across your AWS environment.Blocks operates with the full privileges of the connected IAM user. We strongly recommend provisioning a dedicated IAM user with read-only access (e.g. the
ReadOnlyAccess managed policy) to operate safely.What Blocks Can Do
Blocks can help you with a variety of AWS tasks:- Inspect Resources: Query EC2 instances, S3 buckets, RDS databases, Lambda functions, and more
- Monitor Logs: Retrieve and analyze CloudWatch logs to diagnose issues
- Deployment Assistance: Help plan and execute deployments via ECS, Lambda, or CloudFormation
- Cost Analysis: Review resource usage and suggest cost optimizations
- Security Review: Audit IAM roles, security groups, and access policies
- Infrastructure Troubleshooting: Diagnose connectivity, configuration, and performance issues
Setting Up AWS Integration
To connect AWS to Blocks:Create a Dedicated IAM User
In the AWS IAM Console, create a new IAM user dedicated to Blocks.
Generate Access Credentials
Create an access key for the IAM user and copy the Access Key ID and Secret Access Key.
Using AWS in Requests
Once connected, you can reference your AWS environment in any request:Session Context: Responding in the same thread continues the session, preserving context from previous queries. Starting a new comment or issue creates a fresh session.
Security Best Practices
- Follow Least Privilege: Grant only the permissions Blocks needs for your specific use cases
- Rotate Credentials: Regularly rotate access keys and update them in Settings > AWS
- Restrict by Region: Scope IAM policies to specific regions where possible
- Monitor Activity: Enable CloudTrail to audit all API calls made by Blocks in your account
- Use Separate Accounts: Consider using a dedicated AWS account for staging vs. production
Common Use Cases
Infrastructure Debugging
Ask Blocks to investigate issues in your environment:Deployment Review
Get help reviewing before applying changes:Cost Optimization
Identify opportunities to reduce spend:Best Practices
- Be Specific: Reference service names, regions, and resource IDs where possible
- Provide Context: Describe the expected behavior alongside what you’re observing
- Check Progress: Use the dashboard link to monitor Blocks’ work on your request
- Follow Up: Continue the conversation by mentioning
@blockswith additional questions or clarifications

