Skip to content

Integrations

AWS (management)

Automate AWS from workflows and agents: EC2, Auto Scaling, ECS, Lambda, RDS, IAM, S3 buckets, CloudFormation, Systems Manager, Secrets Manager, CloudWatch, Cost Explorer and any other AWS API.

Last updated 11 min read Edit this page on GitHub
On this page

The AWS (management) connector (aws) gives workflows, AI agents, MCP clients, the REST API and the CLI 130 ready-made references for the operations a platform team automates: 57 read, 38 write and 35 destructive. File uploads and downloads stay in the AWS S3 connector (aws_s3); this connector manages buckets, not objects.

It runs on the server with no AWS SDK: requests are signed with Signature Version 4 and sent through the egress guard, Query / EC2 / REST-XML answers are parsed to JSON, and every list can page.

Set up#

  1. In AWS, create an IAM user for automation (or use an existing one) and an access key for it. For production, give the user only sts:AssumeRole and put the real permissions on a role (below).
  2. In UserTasks: Integrations → Connectors → AWS (management). Enter the access key ID and secret, the default region and the partition (AWS, AWS GovCloud (US) or AWS China).
  3. Optional: Role to assume (role ARN), External ID, Role session name and duration. Every call then uses the role's temporary credentials. They are cached until five minutes before they expire and renewed automatically.
  4. Test connection calls STS GetCallerIdentity (allowed for every identity) and shows the account and ARN the connector acts as.
  5. Choose which references to create: all of them, or only the ones you need (for example only the read references to start).

Temporary credentials (a session token) work too, but stop when they expire. A role to assume is better.

Connection test messages#

Message saysWhat to fix
AWS did not recognise the access keyThe access key ID is wrong, deleted, or belongs to another partition (a GovCloud key on AWS, for example).
AWS rejected the request signatureThe secret access key is wrong.
temporary credentials … have expiredPaste a new session token, or use an access key with a role to assume.
could not assume roleThe key's policy must allow sts:AssumeRole on the role, the role's trust policy must name the user or account, and the external ID must match.
does not resolve / not available in regionThe region is wrong, not enabled for the account (opt-in regions), or the service isn't offered there.

Permissions#

Give the connector only what the references you enable need. Each reference's IAM actions are in the tables below. A read-only start:

JSON
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "UserTasksAwsRead",
      "Effect": "Allow",
      "Action": [
        "autoscaling:DescribeAutoScalingGroups",
        "autoscaling:DescribeScalingActivities",
        "ce:GetCostAndUsage",
        "ce:GetCostForecast",
        "cloudformation:DescribeChangeSet",
        "cloudformation:DescribeStackEvents",
        "cloudformation:DescribeStacks",
        "cloudformation:ListStackResources",
        "cloudformation:ValidateTemplate",
        "cloudwatch:DescribeAlarms",
        "cloudwatch:GetMetricStatistics",
        "cloudwatch:ListMetrics",
        "ec2:DescribeImages",
        "ec2:DescribeInstanceStatus",
        "ec2:DescribeInstances",
        "ec2:DescribeRegions",
        "ec2:DescribeSecurityGroups",
        "ec2:DescribeSnapshots",
        "ec2:DescribeSubnets",
        "ec2:DescribeVolumes",
        "ec2:DescribeVpcs",
        "ecs:DescribeServices",
        "ecs:DescribeTasks",
        "ecs:ListClusters",
        "ecs:ListServices",
        "ecs:ListTasks",
        "iam:GetAccessKeyLastUsed",
        "iam:GetRole",
        "iam:GetUser",
        "iam:ListAccessKeys",
        "iam:ListAttachedGroupPolicies",
        "iam:ListAttachedRolePolicies",
        "iam:ListAttachedUserPolicies",
        "iam:ListGroups",
        "iam:ListGroupsForUser",
        "iam:ListPolicies",
        "iam:ListRoles",
        "iam:ListUsers",
        "lambda:GetFunction",
        "lambda:ListFunctions",
        "logs:DescribeLogGroups",
        "logs:FilterLogEvents",
        "logs:GetQueryResults",
        "logs:StartQuery",
        "organizations:DescribeAccount",
        "organizations:DescribeOrganization",
        "organizations:ListAccounts",
        "rds:DescribeDBInstances",
        "rds:DescribeDBSnapshots",
        "s3:GetBucketPolicy",
        "s3:GetBucketPublicAccessBlock",
        "s3:GetBucketVersioning",
        "s3:ListAllMyBuckets",
        "secretsmanager:DescribeSecret",
        "secretsmanager:ListSecrets",
        "ssm:GetCommandInvocation",
        "ssm:ListCommandInvocations"
      ],
      "Resource": "*"
    }
  ]
}

(Secret reads, secretsmanager:GetSecretValue and ssm:GetParameter*, are left out on purpose: add them only for the secrets a process needs.)

For change actions, scope by resource and tag, for example only instances tagged managed-by = usertasks:

JSON
{
  "Version": "2012-10-17",
  "Statement": [{
    "Effect": "Allow",
    "Action": ["ec2:StartInstances", "ec2:StopInstances", "ec2:RebootInstances"],
    "Resource": "arn:aws:ec2:*:123456789012:instance/*",
    "Condition": { "StringEquals": { "aws:ResourceTag/managed-by": "usertasks" } }
  }]
}

The role's trust policy for AssumeRole with an external ID:

JSON
{
  "Version": "2012-10-17",
  "Statement": [{
    "Effect": "Allow",
    "Principal": { "AWS": "arn:aws:iam::123456789012:user/usertasks-automation" },
    "Action": "sts:AssumeRole",
    "Condition": { "StringEquals": { "sts:ExternalId": "your-external-id" } }
  }]
}

Safety#

  • Risk on every reference. Each reference is marked read, write or destructive. Destructive covers deleting, terminating, every IAM change, opening security group ports, bucket policies and public access, running commands on instances (Run Command), stack updates, and writing or rotating secrets. An agent always waits for a person to approve a destructive call (the approval can't be switched off for these tools), and MCP clients must pass confirm: true to run one.
  • Dry runs. EC2 change actions take dry_run: AWS checks permissions and parameters without making the change and the reference returns dry_run: true, would_succeed: true (or the permission error). Lambda Invoke with dry_run checks that the caller may invoke the function. CloudFormation Create Change Set previews a stack change and Describe Change Set lists what would be added, modified, replaced or removed. Execute Change Set applies it.
  • Secrets stay out of logs. Secret outputs use secret names: secret_string / secret_json (Secrets Manager), secret_value (Parameter Store SecureString), secret_access_key (new IAM access keys). They are masked in the integration call log and left out of reportable run variables. If you map one to a workflow variable, give the variable a secret-shaped name too (for example db_secret), or it is reported like any other value. Secret inputs (secret_string, secret_value) are masked in the call log too. Put plain settings in Parameter Store with value and secrets with secret_value. Lambda environment variables are not secret inputs, so keep secrets out of them. Call Any API never logs its response.
  • Credentials are encrypted at rest, decrypted only for the call, and never appear in outputs, errors or logs. AWS error messages are checked for access key IDs and signatures before they are shown.
  • Retries. Throttling (Throttling, RequestLimitExceeded, TooManyRequestsException, HTTP 429 …) is retried with exponential backoff and Retry-After for every call: AWS didn't process a throttled request. Server errors (5xx) and network failures are retried only for reads. All retries fit inside the step's timeout.
  • Errors keep the AWS code: the reference returns the HTTP status and { error: true, code, kind, message, request_id }, and the workflow step's status lets you branch. kind is credentials, expired, permission, not_found, region, throttled, validation, conflict or server. A permission error names the IAM action to add.

Paging#

List references take page_size and next_token and return next_token (null on the last page) and truncated. With all_pages: true they follow the pages for you, up to 20 pages or 2,000 items. When the cap is reached, truncated is true and next_token continues from there.

Regions, partitions and custom endpoints#

  • Regional references take an optional region input that overrides the connector's default region (it must be in the same partition). IAM, Organizations and Cost Explorer are global and are signed for the partition's home region automatically.
  • Custom endpoint sends every call to one origin instead of AWS. Use it for LocalStack (http://localhost:4566), a VPC interface endpoint or a FIPS host. Requests are still signed for the configured region. A private address must be allowed with EGRESS_PRIVATE_ALLOW on the server (see Self-hosting).
  • Self-hosted installs need nothing else: no AWS SDK, CLI or extra service.

References#

EC2#

ReferenceRiskWhat it doesInputs (* required)OutputsIAM actions
ec2_describe_instances EC2: Describe InstancesreadList EC2 instances (optionally by ID or filter) with state, type, IPs and tagsinstance_ids, filters, include_raw, paging, regioninstances, count, next_token, truncatedec2:DescribeInstances
ec2_describe_instance_status EC2: Describe Instance StatusreadInstance state plus system / instance status checks and scheduled eventsinstance_ids, include_all_instances, filters, paging, regionstatuses, next_token, truncatedec2:DescribeInstanceStatus
ec2_start_instances EC2: Start InstanceswriteStart stopped EC2 instancesinstance_ids*, dry_run, regioninstances, dry_run, would_succeedec2:StartInstances
ec2_stop_instances EC2: Stop InstanceswriteStop running EC2 instances (optionally hibernate or force)instance_ids*, force, hibernate, dry_run, regioninstances, dry_run, would_succeedec2:StopInstances
ec2_reboot_instances EC2: Reboot InstanceswriteReboot EC2 instancesinstance_ids*, dry_run, regionrebooted, instance_ids, dry_run, would_succeedec2:RebootInstances
ec2_terminate_instances EC2: Terminate InstancesdestructivePermanently terminate EC2 instances (instance store and delete-on-termination volumes are lost)instance_ids*, dry_run, regioninstances, dry_run, would_succeedec2:TerminateInstances
ec2_run_instances EC2: Run InstanceswriteLaunch new EC2 instances from an AMIimage_id, instance_type, count, subnet_id, security_group_ids, key_name, iam_instance_profile, user_data, tags, client_token, dry_run, regionreservation_id, instances, instance_ids, dry_run, would_succeedec2:RunInstances, ec2:CreateTags, iam:PassRole (when an instance profile is given)
ec2_modify_instance_type EC2: Change Instance TypewriteResize a stopped instance to another instance typeinstance_id, instance_type, dry_run, regionmodified, dry_run, would_succeedec2:ModifyInstanceAttribute
ec2_describe_security_groups EC2: Describe Security GroupsreadList security groups with their inbound and outbound rulesgroup_ids, filters, paging, regionsecurity_groups, next_token, truncatedec2:DescribeSecurityGroups
ec2_create_security_group EC2: Create Security GroupwriteCreate a security group in a VPC (no inbound rules until you add them)group_name, description, vpc_id, tags, dry_run, regiongroup_id, dry_run, would_succeedec2:CreateSecurityGroup, ec2:CreateTags
ec2_authorize_security_group_ingress EC2: Add Inbound RuledestructiveAllow inbound traffic to a security group (a port range from CIDR blocks or another group)group_id*, protocol, from_port, to_port, cidrs, source_group_id, rule_description, ip_permissions, dry_run, regionsuccess, rules, dry_run, would_succeedec2:AuthorizeSecurityGroupIngress
ec2_revoke_security_group_ingress EC2: Remove Inbound RulewriteRemove an inbound rule from a security group (must match the rule exactly)group_id*, protocol, from_port, to_port, cidrs, source_group_id, rule_description, ip_permissions, dry_run, regionsuccess, rules, dry_run, would_succeedec2:RevokeSecurityGroupIngress
ec2_delete_security_group EC2: Delete Security GroupdestructiveDelete a security group (fails while instances or other groups use it)group_id*, dry_run, regiondeleted, dry_run, would_succeedec2:DeleteSecurityGroup
ec2_describe_volumes EC2: Describe VolumesreadList EBS volumes with size, type, state and attachmentsvolume_ids, filters, paging, regionvolumes, next_token, truncatedec2:DescribeVolumes
ec2_create_volume EC2: Create VolumewriteCreate an EBS volume (empty or from a snapshot)availability_zone*, size_gib, volume_type, snapshot_id, iops, throughput, encrypted, kms_key_id, tags, dry_run, regionvolume_id, state, volume, dry_run, would_succeedec2:CreateVolume, ec2:CreateTags
ec2_attach_volume EC2: Attach VolumewriteAttach an EBS volume to an instancevolume_id, instance_id, device*, dry_run, regionstate, attachment, dry_run, would_succeedec2:AttachVolume
ec2_detach_volume EC2: Detach VolumewriteDetach an EBS volume from its instancevolume_id*, instance_id, force, dry_run, regionstate, attachment, dry_run, would_succeedec2:DetachVolume
ec2_delete_volume EC2: Delete VolumedestructivePermanently delete a detached EBS volumevolume_id*, dry_run, regiondeleted, dry_run, would_succeedec2:DeleteVolume
ec2_describe_snapshots EC2: Describe SnapshotsreadList EBS snapshots (your own by default)snapshot_ids, owner, filters, paging, regionsnapshots, next_token, truncatedec2:DescribeSnapshots
ec2_create_snapshot EC2: Create SnapshotwriteSnapshot an EBS volume (point-in-time backup)volume_id*, description, tags, dry_run, regionsnapshot_id, state, snapshot, dry_run, would_succeedec2:CreateSnapshot, ec2:CreateTags
ec2_delete_snapshot EC2: Delete SnapshotdestructivePermanently delete an EBS snapshotsnapshot_id*, dry_run, regiondeleted, dry_run, would_succeedec2:DeleteSnapshot
ec2_describe_images EC2: Describe Images (AMIs)readList AMIs (your own by default)image_ids, owners, filters, paging, regionimages, next_token, truncatedec2:DescribeImages
ec2_create_image EC2: Create Image (AMI)writeCreate an AMI from an instanceinstance_id, name, description, no_reboot, tags, dry_run, regionimage_id, dry_run, would_succeedec2:CreateImage, ec2:CreateTags
ec2_deregister_image EC2: Deregister Image (AMI)destructiveDeregister an AMI (its snapshots are kept unless deleted separately)image_id*, dry_run, regionderegistered, dry_run, would_succeedec2:DeregisterImage
ec2_create_tags EC2: Add or Update TagswriteAdd or overwrite tags on EC2 resources (instances, volumes, snapshots, AMIs, security groups …)resource_ids, tags, dry_run, regionsuccess, dry_run, would_succeedec2:CreateTags
ec2_delete_tags EC2: Remove TagswriteRemove tags (by key) from EC2 resourcesresource_ids, tag_keys, dry_run, regionsuccess, dry_run, would_succeedec2:DeleteTags
ec2_describe_vpcs EC2: Describe VPCsreadList VPCsvpc_ids, filters, paging, regionvpcs, next_token, truncatedec2:DescribeVpcs
ec2_describe_subnets EC2: Describe SubnetsreadList subnets with their VPC, Availability Zone and free addressessubnet_ids, filters, paging, regionsubnets, next_token, truncatedec2:DescribeSubnets
ec2_describe_regions EC2: Describe RegionsreadList the regions enabled for the account (or all, with opt-in status)all_regions, regionregionsec2:DescribeRegions

Auto Scaling#

ReferenceRiskWhat it doesInputs (* required)OutputsIAM actions
autoscaling_describe_groups Auto Scaling: Describe GroupsreadList Auto Scaling groups with min / max / desired capacity and instancesgroup_names, paging, regiongroups, next_token, truncatedautoscaling:DescribeAutoScalingGroups
autoscaling_set_desired_capacity Auto Scaling: Set Desired CapacitywriteScale an Auto Scaling group to a number of instances (within its min and max)group_name, desired_capacity, honor_cooldown, regionsuccessautoscaling:SetDesiredCapacity
autoscaling_update_group Auto Scaling: Update Group SizewriteChange the minimum, maximum and / or desired capacity of an Auto Scaling groupgroup_name*, min_size, max_size, desired_capacity, regionsuccessautoscaling:UpdateAutoScalingGroup
autoscaling_start_instance_refresh Auto Scaling: Start Instance RefreshwriteReplace the instances of a group in batches (rolling update to the current launch template)group_name*, min_healthy_percentage, instance_warmup, regioninstance_refresh_idautoscaling:StartInstanceRefresh
autoscaling_describe_activities Auto Scaling: Describe Scaling ActivitiesreadRecent scaling activities of a group (launches, terminations, failures)group_name, paging, regionactivities, next_token, truncatedautoscaling:DescribeScalingActivities

ECS#

ReferenceRiskWhat it doesInputs (* required)OutputsIAM actions
ecs_list_clusters ECS: List ClustersreadList ECS cluster ARNspaging, regioncluster_arns, next_token, truncatedecs:ListClusters
ecs_list_services ECS: List ServicesreadList the services of a clustercluster, paging, regionservice_arns, next_token, truncatedecs:ListServices
ecs_describe_services ECS: Describe ServicesreadDesired / running counts, deployments and events of up to 10 servicescluster, services*, regionservices, failuresecs:DescribeServices
ecs_update_service ECS: Update ServicewriteChange a service's desired count or task definition, or force a new deploymentcluster, service*, desired_count, task_definition, force_new_deployment, regionservice, desired_count, running_countecs:UpdateService, iam:PassRole (new task definition roles)
ecs_scale_service ECS: Scale ServicewriteSet the number of tasks a service runscluster, service, desired_count, regionservice, desired_count, running_countecs:UpdateService
ecs_list_tasks ECS: List TasksreadList task ARNs of a cluster (optionally one service's, running or stopped)cluster, service, desired_status, paging, regiontask_arns, next_token, truncatedecs:ListTasks
ecs_describe_tasks ECS: Describe TasksreadStatus, containers and stop reasons of up to 100 taskscluster, tasks*, regiontasks, failuresecs:DescribeTasks
ecs_run_task ECS: Run TaskwriteStart one-off tasks from a task definition (batch jobs, migrations)cluster, task_definition*, count, launch_type, subnets, security_groups, assign_public_ip, overrides, started_by, regiontasks, task_arns, failuresecs:RunTask, iam:PassRole (task / execution roles)
ecs_stop_task ECS: Stop TaskwriteStop a running task (a service starts a replacement)cluster, task*, reason, regiontaskecs:StopTask

Lambda#

ReferenceRiskWhat it doesInputs (* required)OutputsIAM actions
lambda_list_functions Lambda: List FunctionsreadList Lambda functions with runtime, memory, timeout and last changepaging, regionfunctions, next_token, truncatedlambda:ListFunctions
lambda_get_function Lambda: Get FunctionreadConfiguration, tags and reserved concurrency of a functionfunction_name*, qualifier, regionconfiguration, tags, concurrencylambda:GetFunction
lambda_invoke Lambda: Invoke FunctionwriteInvoke a function synchronously (returns its result) or asynchronously (Event)function_name*, payload, invocation_type, qualifier, include_logs, dry_run, regionstatus_code, result, function_error, executed_version, log_tail, dry_run, would_succeedlambda:InvokeFunction
lambda_update_function_configuration Lambda: Update Function ConfigurationwriteChange memory, timeout, environment variables, handler or description of a functionfunction_name*, memory_mb, timeout_seconds, environment, description, handler, runtime, regionconfiguration, last_update_statuslambda:UpdateFunctionConfiguration
lambda_put_function_concurrency Lambda: Set Reserved ConcurrencywriteReserve concurrency for a function (0 stops all invocations: an emergency brake)function_name, reserved_concurrency, regionreserved_concurrencylambda:PutFunctionConcurrency

RDS#

ReferenceRiskWhat it doesInputs (* required)OutputsIAM actions
rds_describe_db_instances RDS: Describe DB InstancesreadList RDS DB instances with engine, class, status and endpointdb_instance_id, paging, regiondb_instances, next_token, truncatedrds:DescribeDBInstances
rds_start_db_instance RDS: Start DB InstancewriteStart a stopped DB instancedb_instance_id*, regiondb_instance, statusrds:StartDBInstance
rds_stop_db_instance RDS: Stop DB InstancewriteStop a DB instance (AWS starts it again after 7 days)db_instance_id*, snapshot_id, regiondb_instance, statusrds:StopDBInstance
rds_reboot_db_instance RDS: Reboot DB InstancewriteReboot a DB instance (optionally with Multi-AZ failover)db_instance_id*, force_failover, regiondb_instance, statusrds:RebootDBInstance
rds_start_db_cluster RDS: Start Aurora ClusterwriteStart a stopped Aurora DB clusterdb_cluster_id*, regiondb_cluster, statusrds:StartDBCluster
rds_stop_db_cluster RDS: Stop Aurora ClusterwriteStop an Aurora DB clusterdb_cluster_id*, regiondb_cluster, statusrds:StopDBCluster
rds_create_db_snapshot RDS: Create DB SnapshotwriteTake a manual snapshot of a DB instancedb_instance_id, snapshot_id, tags, regionsnapshot, statusrds:CreateDBSnapshot, rds:AddTagsToResource
rds_describe_db_snapshots RDS: Describe DB SnapshotsreadList DB snapshots (of one instance, or all)db_instance_id, snapshot_type, paging, regionsnapshots, next_token, truncatedrds:DescribeDBSnapshots
rds_delete_db_snapshot RDS: Delete DB SnapshotdestructivePermanently delete a manual DB snapshotsnapshot_id*, regionsnapshot, statusrds:DeleteDBSnapshot

IAM#

ReferenceRiskWhat it doesInputs (* required)OutputsIAM actions
iam_list_users IAM: List UsersreadList IAM users (optionally under a path)path_prefix, pagingusers, next_token, truncatediam:ListUsers
iam_get_user IAM: Get UserreadAn IAM user with its groups, attached policies and access keysuser_name*user, groups, attached_policies, access_keysiam:GetUser, iam:ListGroupsForUser, iam:ListAttachedUserPolicies, iam:ListAccessKeys
iam_create_user IAM: Create UserdestructiveCreate an IAM user (no console password or access key until you add one)user_name*, path, tagsuser, arniam:CreateUser, iam:TagUser
iam_delete_user IAM: Delete UserdestructiveDelete an IAM user (remove its keys, groups and policies first, or AWS refuses)user_name*deletediam:DeleteUser
iam_list_groups IAM: List GroupsreadList IAM groups (or the groups of one user)user_name, paginggroups, next_token, truncatediam:ListGroups, iam:ListGroupsForUser
iam_add_user_to_group IAM: Add User to GroupdestructiveAdd a user to a group (grants the group's permissions)user_name, group_namesuccessiam:AddUserToGroup
iam_remove_user_from_group IAM: Remove User from GroupdestructiveRemove a user from a groupuser_name, group_namesuccessiam:RemoveUserFromGroup
iam_list_roles IAM: List RolesreadList IAM roles (optionally under a path)path_prefix, pagingroles, next_token, truncatediam:ListRoles
iam_get_role IAM: Get RolereadAn IAM role with its trust policy and attached policiesrole_name*role, trust_policy, attached_policiesiam:GetRole, iam:ListAttachedRolePolicies
iam_create_role IAM: Create RoledestructiveCreate an IAM role with a trust policy (who may assume it)role_name, trust_policy, description, max_session_duration, path, tagsrole, arniam:CreateRole, iam:TagRole
iam_delete_role IAM: Delete RoledestructiveDelete an IAM role (detach its policies and remove it from instance profiles first)role_name*deletediam:DeleteRole
iam_list_policies IAM: List Managed PoliciesreadList managed policies (customer managed by default)scope, only_attached, pagingpolicies, next_token, truncatediam:ListPolicies
iam_create_policy IAM: Create Managed PolicydestructiveCreate a customer managed policy from a policy documentpolicy_name, policy_document, description, pathpolicy, arniam:CreatePolicy
iam_list_attached_policies IAM: List Attached PoliciesreadManaged policies attached to a user, role or groupprincipal_type, principal_name, pagingattached_policies, next_token, truncatediam:ListAttachedUserPolicies, iam:ListAttachedRolePolicies, iam:ListAttachedGroupPolicies
iam_attach_policy IAM: Attach PolicydestructiveAttach a managed policy to a user, role or group (grants its permissions)principal_type, principal_name, policy_arn*successiam:AttachUserPolicy, iam:AttachRolePolicy, iam:AttachGroupPolicy
iam_detach_policy IAM: Detach PolicydestructiveDetach a managed policy from a user, role or groupprincipal_type, principal_name, policy_arn*successiam:DetachUserPolicy, iam:DetachRolePolicy, iam:DetachGroupPolicy
iam_list_access_keys IAM: List Access KeysreadAccess keys of a user (ID, status, created) with when each was last useduser_name*access_keysiam:ListAccessKeys, iam:GetAccessKeyLastUsed
iam_create_access_key IAM: Create Access KeydestructiveCreate an access key for a user. The secret is returned once, in secret_access_key (masked in logs and run history)user_name*access_key_id, secret_access_key, status, create_dateiam:CreateAccessKey
iam_update_access_key IAM: Enable or Disable Access KeydestructiveDeactivate a compromised or unused access key (or reactivate it)user_name, access_key_id, status*success, statusiam:UpdateAccessKey
iam_delete_access_key IAM: Delete Access KeydestructivePermanently delete an access keyuser_name, access_key_iddeletediam:DeleteAccessKey

S3 buckets#

ReferenceRiskWhat it doesInputs (* required)OutputsIAM actions
s3_list_buckets S3: List BucketsreadList the account's S3 buckets with creation date and regionprefix, paging, regionbuckets, next_token, truncateds3:ListAllMyBuckets
s3_create_bucket S3: Create BucketwriteCreate a bucket in the connector region (or the region input). New buckets block public access by defaultbucket*, regionbucket, region, locations3:CreateBucket
s3_delete_bucket S3: Delete BucketdestructiveDelete an empty bucket (AWS refuses while it holds objects or versions)bucket*, regiondeleteds3:DeleteBucket
s3_get_bucket_policy S3: Get Bucket PolicyreadThe bucket policy (JSON), or exists = false when there is nonebucket*, regionexists, policys3:GetBucketPolicy
s3_put_bucket_policy S3: Set Bucket PolicydestructiveReplace the bucket policy (can grant access to other accounts or the public)bucket, policy, regionsuccesss3:PutBucketPolicy
s3_delete_bucket_policy S3: Delete Bucket PolicydestructiveRemove the bucket policybucket*, regiondeleteds3:DeleteBucketPolicy
s3_get_bucket_versioning S3: Get Bucket VersioningreadVersioning status: Enabled, Suspended or empty (never enabled)bucket*, regionstatus, mfa_deletes3:GetBucketVersioning
s3_put_bucket_versioning S3: Set Bucket VersioningwriteEnable or suspend versioning on a bucketbucket, status, regionstatuss3:PutBucketVersioning
s3_get_public_access_block S3: Get Public Access BlockreadThe bucket's Block Public Access settings (configured = false when none are set)bucket*, regionconfigured, block_public_acls, ignore_public_acls, block_public_policy, restrict_public_bucketss3:GetBucketPublicAccessBlock
s3_put_public_access_block S3: Set Public Access BlockdestructiveSet the bucket's Block Public Access settings (all four default to true; turning any off can expose data)bucket*, block_public_acls, ignore_public_acls, block_public_policy, restrict_public_buckets, regionsuccess, configurations3:PutBucketPublicAccessBlock

CloudFormation#

ReferenceRiskWhat it doesInputs (* required)OutputsIAM actions
cfn_describe_stacks CloudFormation: Describe StacksreadStacks (or one stack) with status, outputs, parameters and tagsstack_name, paging, regionstacks, next_token, truncatedcloudformation:DescribeStacks
cfn_describe_stack_events CloudFormation: Describe Stack EventsreadRecent events of a stack, newest first (resource status changes and failure reasons)stack_name*, paging, regionevents, next_token, truncatedcloudformation:DescribeStackEvents
cfn_list_stack_resources CloudFormation: List Stack ResourcesreadResources of a stack with their physical IDs and statusstack_name*, paging, regionresources, next_token, truncatedcloudformation:ListStackResources
cfn_validate_template CloudFormation: Validate TemplatereadCheck a template's syntax and list its parameters and required capabilitiestemplate_body, template_url, regionvalid, parameters, capabilities, descriptioncloudformation:ValidateTemplate
cfn_create_stack CloudFormation: Create StackwriteCreate a stack from a template (poll Describe Stacks for CREATE_COMPLETE)stack_name*, template_body, template_url, parameters, capabilities, tags, role_arn, on_failure, timeout_minutes, client_request_token, regionstack_idcloudformation:CreateStack, plus the permissions for every resource in the template (or iam:PassRole for role_arn)
cfn_update_stack CloudFormation: Update StackdestructiveUpdate a stack (resources may be replaced or deleted; preview with Create Change Set first). Keeps the current template when none is givenstack_name*, template_body, template_url, parameters, capabilities, tags, role_arn, client_request_token, regionstack_id, no_changescloudformation:UpdateStack, plus the permissions for the changed resources
cfn_delete_stack CloudFormation: Delete StackdestructiveDelete a stack and the resources it created (except retained ones)stack_name*, retain_resources, role_arn, regiondeletingcloudformation:DeleteStack, plus delete permissions for the stack's resources
cfn_create_change_set CloudFormation: Create Change Set (preview)writePreview what a create or update would change without changing anything (then Describe / Execute Change Set)stack_name, change_set_name, change_set_type, template_body, template_url, parameters, capabilities, tags, role_arn, dry_run, regionchange_set_id, stack_idcloudformation:CreateChangeSet
cfn_describe_change_set CloudFormation: Describe Change SetreadThe changes a change set would make (Add / Modify / Remove, and whether resources are replaced)stack_name, change_set*, regionstatus, execution_status, status_reason, changescloudformation:DescribeChangeSet
cfn_execute_change_set CloudFormation: Execute Change SetdestructiveApply a previewed change set to its stackstack_name, change_set*, regionexecutingcloudformation:ExecuteChangeSet, plus the permissions for the changed resources

Systems Manager#

ReferenceRiskWhat it doesInputs (* required)OutputsIAM actions
ssm_send_command Systems Manager: Run CommanddestructiveRun shell or PowerShell commands on managed instances (by ID or tag). Optionally waits for a single instance's outputinstance_ids, targets, commands, document_name, parameters, comment, timeout_seconds, wait_seconds, regioncommand_id, status, stdout, stderr, response_codessm:SendCommand, ssm:GetCommandInvocation (to wait)
ssm_get_command_invocation Systems Manager: Get Command ResultreadStatus and output of a command on one instancecommand_id, instance_id, regionstatus, status_details, response_code, stdout, stderrssm:GetCommandInvocation
ssm_list_command_invocations Systems Manager: List Command ResultsreadPer-instance status (and output) of a command sent to many instancescommand_id*, paging, regioninvocations, next_token, truncatedssm:ListCommandInvocations
ssm_get_parameter Parameter Store: Get ParameterreadRead a parameter. SecureString values (with decrypt) come back in secret_value, masked in logs and run historyname*, decrypt, regionname, type, value, secret_value, version, last_modified, arnssm:GetParameter, kms:Decrypt (SecureString with decrypt)
ssm_get_parameters_by_path Parameter Store: Get Parameters by PathreadRead every parameter under a path (SecureString values in secret_value)path*, recursive, decrypt, paging, regionparameters, next_token, truncatedssm:GetParametersByPath, kms:Decrypt (SecureString with decrypt)
ssm_put_parameter Parameter Store: Put ParameterdestructiveCreate or update a parameter. Put secrets in secret_value (stored as SecureString, masked in logs); plain settings in valuename*, value, secret_value, type, overwrite, description, kms_key_id, tags, regionversion, tierssm:PutParameter, kms:Encrypt (SecureString with a customer key)
ssm_delete_parameter Parameter Store: Delete ParameterdestructiveDelete a parametername*, regiondeletedssm:DeleteParameter

Secrets Manager#

ReferenceRiskWhat it doesInputs (* required)OutputsIAM actions
secretsmanager_list_secrets Secrets Manager: List SecretsreadList secrets (names, descriptions, rotation and last-changed dates; never values)name_prefix, paging, regionsecrets, next_token, truncatedsecretsmanager:ListSecrets
secretsmanager_describe_secret Secrets Manager: Describe SecretreadA secret's metadata: rotation, versions, tags, last accessed (not the value)secret_id*, regionsecret, rotation_enabled, last_rotatedsecretsmanager:DescribeSecret
secretsmanager_get_secret_value Secrets Manager: Get Secret ValuereadRead a secret value. Returned in secret_string (and secret_json when it is JSON), masked in logs and run historysecret_id*, version_stage, version_id, regionsecret_string, secret_json, secret_binary, name, arn, version_id, version_stagessecretsmanager:GetSecretValue, kms:Decrypt (customer-managed key)
secretsmanager_create_secret Secrets Manager: Create SecretdestructiveCreate a secret (the value is masked in logs and run history)name, secret_string, description, kms_key_id, tags, regionarn, name, version_idsecretsmanager:CreateSecret, secretsmanager:TagResource, kms:GenerateDataKey (customer-managed key)
secretsmanager_put_secret_value Secrets Manager: Put Secret ValuedestructiveStore a new value for a secret (becomes AWSCURRENT; the old one AWSPREVIOUS)secret_id, secret_string, regionarn, version_id, version_stagessecretsmanager:PutSecretValue, kms:GenerateDataKey (customer-managed key)
secretsmanager_rotate_secret Secrets Manager: Rotate SecretdestructiveRotate a secret now with its rotation function (or set up rotation)secret_id*, rotation_lambda_arn, rotate_after_days, rotate_immediately, regionarn, version_idsecretsmanager:RotateSecret, lambda:InvokeFunction (rotation function)
secretsmanager_delete_secret Secrets Manager: Delete SecretdestructiveSchedule a secret for deletion after a recovery window (7–30 days), or delete it immediatelysecret_id*, recovery_window_days, force_without_recovery, regionarn, deletion_datesecretsmanager:DeleteSecret

CloudWatch#

ReferenceRiskWhat it doesInputs (* required)OutputsIAM actions
cloudwatch_describe_alarms CloudWatch: Describe AlarmsreadMetric and composite alarms with their state (optionally only ALARM ones)alarm_names, name_prefix, state, paging, regionmetric_alarms, composite_alarms, next_token, truncatedcloudwatch:DescribeAlarms
cloudwatch_set_alarm_state CloudWatch: Set Alarm StatewriteSet an alarm's state temporarily (test its actions; the next evaluation resets it)alarm_name, state, reason*, regionsuccesscloudwatch:SetAlarmState
cloudwatch_set_alarm_actions CloudWatch: Enable or Disable Alarm ActionswriteMute (or unmute) the notifications and actions of alarms, e.g. during maintenancealarm_names, enabled, regionsuccess, enabledcloudwatch:EnableAlarmActions, cloudwatch:DisableAlarmActions
cloudwatch_put_metric_alarm CloudWatch: Create or Update AlarmwriteCreate or replace a metric alarmalarm_name, namespace, metric_name, dimensions, statistic, period_seconds, evaluation_periods, threshold, comparison, alarm_actions, description, treat_missing_data, regionsuccesscloudwatch:PutMetricAlarm
cloudwatch_delete_alarms CloudWatch: Delete AlarmsdestructiveDelete alarmsalarm_names*, regiondeletedcloudwatch:DeleteAlarms
cloudwatch_get_metric_statistics CloudWatch: Get Metric StatisticsreadDatapoints of a metric over a time range (e.g. average CPU of an instance over the last hour)namespace, metric_name, dimensions, start_time, end_time, period_seconds, statistics, unit, regionlabel, datapointscloudwatch:GetMetricStatistics
cloudwatch_list_metrics CloudWatch: List MetricsreadFind metrics by namespace, name or dimensionnamespace, metric_name, dimensions, paging, regionmetrics, next_token, truncatedcloudwatch:ListMetrics
cloudwatch_put_metric_data CloudWatch: Publish MetricwritePublish a custom metric value (e.g. approvals waiting, process duration)namespace, metric_name, value*, unit, dimensions, regionsuccesscloudwatch:PutMetricData

CloudWatch Logs#

ReferenceRiskWhat it doesInputs (* required)OutputsIAM actions
logs_describe_log_groups CloudWatch Logs: List Log GroupsreadList log groups with retention and stored bytesname_prefix, paging, regionlog_groups, next_token, truncatedlogs:DescribeLogGroups
logs_filter_log_events CloudWatch Logs: Search Log EventsreadLog events of a group matching a filter pattern in a time rangelog_group*, filter_pattern, log_streams, start_time, end_time, paging, regionevents, next_token, truncatedlogs:FilterLogEvents
logs_run_query CloudWatch Logs: Run Insights QueryreadRun a Logs Insights query and wait for the rows (or return query_id to fetch later with Get Query Results)log_groups, query, start_time, end_time, limit, wait_seconds, regionquery_id, status, rows, statisticslogs:StartQuery, logs:GetQueryResults
logs_get_query_results CloudWatch Logs: Get Query ResultsreadStatus and rows of a Logs Insights queryquery_id*, regionstatus, rows, statisticslogs:GetQueryResults

Cost Explorer#

ReferenceRiskWhat it doesInputs (* required)OutputsIAM actions
ce_get_cost_and_usage Cost Explorer: Get Cost and UsagereadCost (USD) by day or month, optionally grouped by service, account, region or tag. Each call costs USD 0.01start_date, end_date, granularity, metric, group_by, filterrows, total, unit, start_date, end_datece:GetCostAndUsage
ce_get_cost_forecast Cost Explorer: Get Cost ForecastreadForecast cost (USD) from today to an end date (default: end of this month). Each call costs USD 0.01end_date, granularity, metrictotal, unit, by_periodce:GetCostForecast

Organizations#

ReferenceRiskWhat it doesInputs (* required)OutputsIAM actions
organizations_describe_organization Organizations: Describe OrganizationreadThe organization this account belongs to (ID, management account, feature set)—organizationorganizations:DescribeOrganization
organizations_list_accounts Organizations: List AccountsreadAccounts of the organization with status and email (management or delegated admin account)pagingaccounts, next_token, truncatedorganizations:ListAccounts
organizations_describe_account Organizations: Describe AccountreadOne member account (name, email, status, joined)account_id*accountorganizations:DescribeAccount

STS#

ReferenceRiskWhat it doesInputs (* required)OutputsIAM actions
sts_get_caller_identity STS: Get Caller IdentityreadThe account, ARN and user ID the connector acts as (after AssumeRole, the role session)regionaccount, arn, user_idnone (always allowed)

Any AWS API#

ReferenceRiskWhat it doesInputs (* required)OutputsIAM actions
aws_call_api AWS: Call Any APIdestructiveCall any AWS API action by service and action name (Query, EC2, JSON or REST protocols). For actions without a ready-made referenceservice, action, params, protocol, api_version, target_prefix, json_version, signing_name, method, path, query, body, regionstatus, data, request_idthe IAM action being called

Call Any API#

aws_call_api covers the long tail. Give service (the endpoint prefix) and action, and params with AWS member names. For built-in services (ec2, iam, sts, autoscaling, cloudformation, rds, monitoring, elasticloadbalancing, sns, ecs, ssm, secretsmanager, logs, dynamodb, kms, ce, organizations, lambda, s3) that is all. For others, also give protocol and the api_version (Query / EC2) or target_prefix (JSON). For REST services, give method, path, query and body. Query lists can be JSON arrays: {"Filter":[{"Name":"tag:env","Value":["prod"]}]} is sent as Filter.1.Name=…&Filter.1.Value.1=… (EC2) or ….member.N (Query). It is always destructive, because the action isn't known in advance.

Examples#

  • EC2: Describe Instances (ec2_describe_instances): {"filters":{"tag:env":"prod","instance-state-name":["running"]}}
  • EC2: Run Instances (ec2_run_instances): {"image_id":"ami-0123456789abcdef0","instance_type":"t3.micro","tags":{"Name":"build-runner"}}
  • EC2: Add Inbound Rule (ec2_authorize_security_group_ingress): {"group_id":"sg-0123456789abcdef0","protocol":"tcp","from_port":443,"cidrs":["203.0.113.0/24"]}
  • EC2: Add or Update Tags (ec2_create_tags): {"resource_ids":["i-0123456789abcdef0"],"tags":{"owner":"ops"}}
  • Auto Scaling: Set Desired Capacity (autoscaling_set_desired_capacity): {"group_name":"web-asg","desired_capacity":4}
  • ECS: Scale Service (ecs_scale_service): {"cluster":"prod","service":"api","desired_count":6}
  • Lambda: Invoke Function (lambda_invoke): {"function_name":"nightly-report","payload":{"date":"2026-11-28"}}
  • IAM: Attach Policy (iam_attach_policy): {"principal_type":"role","principal_name":"auditor","policy_arn":"arn:aws:iam::aws:policy/SecurityAudit"}
  • CloudFormation: Create Stack (cfn_create_stack): {"stack_name":"team-sandbox","template_url":"https://example-bucket.s3.amazonaws.com/sandbox.yaml","parameters":{"Owner":"ops"}}
  • Systems Manager: Run Command (ssm_send_command): {"instance_ids":["i-0123456789abcdef0"],"commands":["systemctl restart nginx"],"wait_seconds":20}
  • CloudWatch: Get Metric Statistics (cloudwatch_get_metric_statistics): {"namespace":"AWS/EC2","metric_name":"CPUUtilization","dimensions":{"InstanceId":"i-0123456789abcdef0"},"start_time":"-3h"}
  • Cost Explorer: Get Cost and Usage (ce_get_cost_and_usage): {"start_date":"2026-11-01","end_date":"2026-12-01","group_by":"SERVICE"}
  • AWS: Call Any API (aws_call_api): {"service":"sns","action":"Publish","params":{"TopicArn":"arn:aws:sns:us-east-1:123456789012:ops-alerts","Message":"Deploy approved"}}

From a workflow, add Call API / Reference, pick the connector's reference and map the inputs. An agent can use any of the references as a tool. Destructive ones wait for approval. Cost Explorer charges USD 0.01 per API call, so cache cost reports in a data table rather than calling it on every task.

Bash
usertasks references execute <ec2_stop_instances reference id> --set inputs:='{"instance_ids":["i-0123456789abcdef0"],"dry_run":true}'

Limits#

  • One call per step: long-running changes (stack creates, instance refreshes, RDS snapshots) return at once. Poll Describe Stacks, Describe Scaling Activities or Describe DB Snapshots in a loop with a delay, or wait with a timer step.
  • Run Command waits for output only for a single instance and only up to wait_seconds (inside the step timeout). Use Get Command Result or List Command Results afterwards.
  • Logs Insights waits up to wait_seconds, then returns query_id for Get Query Results.
  • Responses over 20 MB are refused. Use paging.

Was this page helpful?