# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
cluster.add_auto_scaling_group_capacity("spot",
spot_price="0.1094",
instance_type=ec2.InstanceType("t3.large"),
max_capacity=10
)
https://docs.aws.amazon.com/cdk/api/latest/python/aws_cdk.aws_eks/README.html#spot-instances
Amazon EKS Construct Library — AWS Cloud Development Kit 1.105.0 documentation
Creating a new cluster is done using the Cluster or FargateCluster constructs. The only required property is the kubernetes version. You can also use FargateCluster to provision a cluster that uses only fargate workers. Below you’ll find a few important
docs.aws.amazon.com
'AWS' 카테고리의 다른 글
Amazon SageMaker와 Apache Airflow을 통한 기계학습 워크플로 구축 (0) | 2021.05.22 |
---|---|
AWS EKS on Fargate Logging (0) | 2021.05.22 |
EKS with GPU (0) | 2021.05.20 |
AWS EMR Studio (0) | 2021.05.18 |
Enabling Two Factor Authentication for EC2 SSH – AWS MFA Setup (0) | 2021.04.29 |