amazon-web-services - 我可以在使用 aws ec2 run-instances 创建实例时标记接口吗?
问题描述
当我使用 AWS-CLI 创建具有多个接口的实例时,我想标记一个接口。
例如
aws ec2 run-instances --image-id {$byolimageid} --count 1 --instance-type c5.18xlarge --key-name thomaskeypair --network-interfaces '[ { "DeviceIndex": 0, "Groups": ["sg-06ec2ed1714b4b548"], "SubnetId": "subnet-0c36ed5c120 21bbb3", "DeleteOnTermination": true}, {"DeviceIndex": 1, "Groups": ["sg-06ec2ed1714b4b548"], "SubnetId": "subnet-011f43adb412986e0", "DeleteOnTermination": true}]
在这种情况下,我想用 key,value 标记带有 deviceindex 0 的接口。
我可以在 aws ec2 run-instances 命令中执行此操作吗?
找不到有关文档的信息。
解决方案
推荐阅读
- http2 - How resource requests maps into streams in HTTP/2
- r - R中的Purr的斜率/截距比
- c# - IHostedService Asp.Net Core WebAPI 托管到 IIS 服务器后无法访问共享驱动器文件和文件夹
- string - How to split a String from a list in dart
- react-native - useEffect 挂钩正在循环运行并挂起应用程序
- mysql - 尝试从主机连接到 mysql docker 容器时出现“读取初始通信数据包”错误
- asp.net - 如何在 ASP.NET Core 3.0 API 中获取客户端 API
- regex - 正则表达式查找具有某个范围前词的匹配词
- java - 在java 8流中的过滤器方法中做另一个过程是否可以
- java - 当服务器被杀死时,如何将变量列表转储到文件中?