amazon-web-services - 删除 CloudFormation 堆栈后未取消的 Spot 请求
问题描述
我有一个创建点实例的云形成模板。它具有以下基本结构:
AWSTemplateFormatVersion: 2010-09-09
Resources:
launchTemplate:
Type: AWS::EC2::LaunchTemplate
Properties:
LaunchTemplateData:
IamInstanceProfile:
Arn: <my-role>
InstanceType: t2.micro
ImageId: <my-ami-image>
NetworkInterfaces:
- AssociatePublicIpAddress: false
DeviceIndex: 0
SubnetId: <my-subnet-id>
Groups:
- <my-security-group>
KeyName: <my-key>
spotInstance:
DependsOn:
- launchTemplate
Properties:
LaunchTemplate:
LaunchTemplateId:
Ref: launchTemplate
Version: 1
Type: AWS::EC2::Instance
当我创建堆栈时,创建现场请求没有问题,并且现场实例被创建。但是,当我删除堆栈时,它会删除现场实例而不取消现场请求。因此,很快就会创建一个新的 Spot 实例。
我想知道现场请求没有被取消的原因可能是什么?
解决方案
推荐阅读
- ray - 在 ray-rllib 中基于梯度的算法中获取梯度的熵和范数
- augmented-reality - 为什么我们在 ARCore 中使用定焦进行 AR 跟踪?
- llvm - LLVM 检查函数结果
- sql - 使用带有语法错误的枢轴执行动态查询时出现问题“+”附近的语法不正确
- prettier - lint-staged 不添加 prettier 修改的文件
- javascript - 是否可以使用 ace.js 或 ace.c9.io 添加多个编辑器
- javascript - 运行基本的three.js
- tensorflow - AttributeError:模块'tensorflow'在anaconda中没有属性'get_default_graph'
- javascript - 如何分享@focus="focus('')" 和@blur="blur('')"?
- javascript - javascript中的Ajax返回未定义