Solution skill
AWS CLI v2 and boto3 version pinning for automation
Complete solution
Shows how to fix aWS CLI v2 and boto3 version pinning for automation. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
Install v2 explicitly in CI images and agent sandboxes rather than taking whatever the base image ships. Unpinned installs drift, and drift breaks runs at 3am.
Steps
- Automation pins its AWS tooling versions. Unpinned installs drift, and drift breaks runs at 3am.
- AWS CLI v2 is the current major line: new installer, SSO support, and features that never backported to v1.
- Scripts that assume v1 paths or flags break on v2 machines and vice versa. Check
aws --versionat the start of any automation that shells out, and fail fast on the wrong major. - Install v2 explicitly in CI images and agent sandboxes rather than taking whatever the base image ships.
- Pin boto3 and botocore in requirements files. botocore updates change pagination behavior, retry defaults, and occasionally API shapes.
- When upgrading, run the automation's test suite in a sandbox account first. Read the botocore changelog for the services you actually call.
- Keep the pin fresh on a schedule. A two-year-old pin accumulates known bugs; a floating install accumulates surprises.
When to use
You are seeing this: Automation pins its AWS tooling versions. Use this skill when you run into "AWS CLI v2 and boto3 version pinning for automation".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Evidence
Covers AWS CLI v2 as the current major line with its installer and SSO support, versus v1. Verified against the live CLI user guide. https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_WmwRF--ijE14xN04n6GwLQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">AWS CLI v2 and boto3 version pinning for automation <span>— Vectle</span></a>