簡體   English   中英

由LaunchConfig創建的實例的CloudFormation標記

[英]CloudFormation tags for instances created by LaunchConfig

如何為CloudFormation的LaunchConfig創建的實例添加Name標簽? 我認為這將在本節中,但它不是一個選項。

{
   "Type" : "AWS::AutoScaling::LaunchConfiguration",
   "Properties" : {
      "AssociatePublicIpAddress" : Boolean,
      "BlockDeviceMappings" : [ BlockDeviceMapping, ... ],
      "ClassicLinkVPCId" : String,
      "ClassicLinkVPCSecurityGroups" : [ String, ... ],
      "EbsOptimized" : Boolean,
      "IamInstanceProfile" : String,
      "ImageId" : String,
      "InstanceId" : String,
      "InstanceMonitoring" : Boolean,
      "InstanceType" : String,
      "KernelId" : String,
      "KeyName" : String,
      "PlacementTenancy" : String,
      "RamDiskId" : String,
      "SecurityGroups" : [ SecurityGroup, ... ],
      "SpotPrice" : String,
      "UserData" : String
   }
}

我想知道我是否應該創建一個實例資源並在其中放置設置,然后將其鏈接到launchconfig,但我找不到任何支持該想法的文檔。

AWS :: AutoScaling :: LaunchConfiguration旨在與AWS :: AutoScaling :: AutoScalingGroup結合使用。 AutoScalingGroup本身具有Tags屬性,可用於在其他標記中設置實例名稱。 關於這些標記的一個注釋,它們與大多數其他CloudFormation資源中使用的標記略有不同,因為它們具有PropagateAtLaunch屬性,該屬性表示標記應該應用於AutoScalingGroup的實例,還是僅應用於AutoScalingGroup本身。 有關詳細信息,請參閱Auto Scaling標簽屬性類型

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM