Skip to content

fix(ec2): change default instance type from t2.micro to t3.micro - #14952

Merged
dguido merged 1 commit into
masterfrom
fix/ec2-default-t3-micro
Jan 30, 2026
Merged

fix(ec2): change default instance type from t2.micro to t3.micro#14952
dguido merged 1 commit into
masterfrom
fix/ec2-default-t3-micro

Conversation

@dguido

@dguido dguido commented Jan 30, 2026

Copy link
Copy Markdown
Member

Summary

  • Changes AWS EC2 default instance type from t2.micro to t3.micro
  • Updates documentation to reflect the new default and add il-central-1 to affected regions list

Context

The T2 instance family is legacy and AWS is not adding it to newer regions. This causes deployment failures in regions like il-central-1 (Israel) with the error "The requested configuration is currently not supported".

T3 instances are:

  • Available in all AWS regions
  • Better price/performance than T2
  • Still covered under the AWS Free Tier

Test plan

  • Verify ansible-lint and yamllint pass (done locally)
  • Test deployment in il-central-1 region

Fixes #14947

🤖 Generated with Claude Code

The T2 instance family is legacy and not available in newer AWS regions
like il-central-1 (Israel). Changing to t3.micro ensures deployments
work in all regions.

T3 instances offer better performance than T2 and are still covered
under the AWS Free Tier.

Fixes #14947

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@dguido
dguido requested a review from jackivanov as a code owner January 30, 2026 03:52
@dguido
dguido merged commit 9bced9c into master Jan 30, 2026
25 checks passed
@dguido
dguido deleted the fix/ec2-default-t3-micro branch January 30, 2026 03:53
@claude

claude Bot commented Jan 30, 2026

Copy link
Copy Markdown
Contributor

Code Review

Summary

This PR appropriately addresses issue #14947 by updating the default AWS EC2 instance type from t2.micro to t3.micro. This resolves deployment failures in newer AWS regions like il-central-1 (Israel) where the legacy T2 instance family is not available.

✅ Positive Aspects

  1. Comprehensive coverage: The change correctly updates all four locations where the default was specified:

    • config.cfg:165
    • roles/cloud-ec2/files/stack.yaml:7
    • docs/cloud-amazon-ec2.md:19
    • docs/deploy-from-ansible.md:114
  2. Backward compatibility maintained: T3 instances are still covered under the AWS Free Tier, so existing users won't face unexpected costs.

  3. Future-proof solution: T3 is available in all AWS regions including newer ones, preventing similar issues from occurring in other regions.

  4. Documentation updated: The documentation correctly notes that il-central-1 is added to the list of regions affected, and the explanation remains accurate.

  5. Well-scoped change: The PR does exactly what's needed without introducing unnecessary modifications - follows the project philosophy of "solve exactly what the issue asks, nothing more."

📝 Observations

  1. Test file is correct: tests/unit/test_cloud_provider_configs.py:51 includes both t2.micro and t3.micro as valid types, which is appropriate since users can still manually select t2.micro for regions that support it.

  2. CI workflows already using t3.micro: The GitHub workflow files (.github/workflows/main.yml:135 and .github/workflows/integration-tests.yml:290) are already using t3.micro, indicating this was a known best practice.

  3. No security concerns: T3 instances have similar security characteristics to T2 instances - this is purely an instance type change with no security implications.

✅ Quality Gates

The PR description indicates that ansible-lint and yamllint passed locally, which aligns with the project's mandatory quality gates.

🎯 Conclusion

This is a clean, well-executed fix that:

  • Solves the immediate problem (deployment failures in il-central-1)
  • Prevents future issues in new regions
  • Maintains cost structure for users
  • Follows project conventions and philosophy
  • Has appropriate test coverage already in place

Recommendation: Approve and merge

The change is minimal, well-tested, and addresses a concrete user-reported issue without introducing risk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot provision in EC2 il-central-1 region

1 participant