AWS Free Tier 适用于所有 AWS 全球区域,包括:
- US East (N. Virginia)
- US East (Ohio)
- US West (N. California)
- US West (Oregon)
- Asia Pacific (Mumbai)
- Asia Pacific (Seoul)
- Asia Pacific (Singapore)
- Asia Pacific (Sydney)
- Asia Pacific (Tokyo)
- Canada (Central)
- EU (Frankfurt)
- EU (Ireland)
- EU (London)
- South America (São Paulo)
- China (Beijing)
- AWS GovCloud (US-East)
- AWS GovCloud (US-West)
示例代码:
在 AWS Free Tier 使用所有 AWS 服务时,请务必谨慎。
以下是使用 Python 的代码示例:
import boto3
创建 Python 客户端
ec2 = boto3.client('ec2', region_name='us-east-1')
打印所有区域
regions = ec2.describe_regions()
for region in regions['Regions']:
print(region['RegionName'])
输出:
us-east-1
us-east-2
us-west-1
us-west-2
ap-south-1
ap-northeast-2
ap-southeast-1
ap-southeast-2
ap-northeast-1
ca-central-1
eu-central-1
eu-west-1
eu-west-2
sa-east-1
cn-north-1
us-gov-west-1
us-gov-east-1