AWS NIC云计算和标记

AWS中的embedded式网卡是否可以使用云端标记? 如果没有,是否可以禁用embedded式网卡并创build一个新的资源,并将网卡连接到实例作为ID 0或唯一的networking接口?

可以在CloudFormation中标记networking接口:

这是来自键/值对foo / bar 的文档的一个例子:

AWSTemplateFormatVersion: '2010-09-09' Description: Simple Standalone ENI Resources: myENI: Type: AWS::EC2::NetworkInterface Properties: Tags: - Key: foo Value: bar Description: A nice description. SourceDestCheck: 'false' GroupSet: - sg-75zzz219 SubnetId: subnet-3z648z53 PrivateIpAddress: 10.0.0.16 

但是,根据文档 ,无法标记embedded式networking接口。 但是,您应该可以使用Property DeviceIndex来实现您的订购。 这是来自文档的一个改编的例子:

 AWSTemplateFormatVersion: '2010-09-09' Description: Simple Standalone ENI Resources: Ec2Instance: Type: "AWS::EC2::Instance" Properties: ImageId: Fn::FindInMap: - "RegionMap" - Ref: "AWS::Region" - "AMI" KeyName: Ref: "KeyName" NetworkInterfaces: - AssociatePublicIpAddress: "true" DeviceIndex: "0" GroupSet: - Ref: "myVPCEC2SecurityGroup" SubnetId: Ref: "PublicSubnet"