Wie kann ich ein Name-Tag zu Instanzen hinzufügen, die von LaunchConfig von CloudFormation erstellt wurden? Ich dachte, es wäre in diesem Abschnitt, aber es ist keine Option.CloudFormation-Tags für von LaunchConfig erstellte Instanzen
{
"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
}
}
Ich fragte mich, ob ich eine Instanz Ressource und dort legt Einstellungen schaffen soll, und es dann zu dem launchconfig verknüpfen, aber ich kann keine Dokumentation nicht finden, diese Idee zu unterstützen.
Danke, das funktioniert! Ich habe das versucht, aber nicht bemerkt, dass PropagateAtLaunch im Tag-Feld erforderlich war, also ist es fehlgeschlagen. Mehr hier: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-tags.html#cfn-as-tags-PropagateAtLaunch – Paul