AWS¶
skyward.AWS
¶
Amazon Web Services cloud provider.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
region
|
str
|
AWS region. Default |
'us-east-1'
|
ami
|
str | None
|
Custom AMI ID. |
None
|
ubuntu_version
|
Literal['20.04', '22.04', '24.04'] | str
|
Ubuntu version for the default AMI. |
'24.04'
|
subnet_id
|
str | None
|
VPC subnet ID. |
None
|
security_group_id
|
str | None
|
Security group ID. |
None
|
instance_profile_arn
|
str | Literal['auto'] | None
|
IAM instance profile ARN. |
None
|
username
|
str | None
|
SSH username override. |
None
|
instance_timeout
|
int
|
Seconds to wait for instance to become running. |
300
|
request_timeout
|
int
|
HTTP request timeout in seconds. |
30
|
allocation_strategy
|
Literal['price-capacity-optimized', 'capacity-optimized', 'lowest-price']
|
Fleet allocation strategy. |
'price-capacity-optimized'
|
exclude_burstable
|
bool
|
Exclude burstable instance types (T-series). |
False
|
Examples:
>>> with sky.ComputePool(provider=sky.AWS(), accelerator="A100") as compute:
... result = train(data) >> compute