TagArgs

data class TagArgs(val autoscalingGroupName: Output<String>? = null, val tag: Output<TagTagArgs>? = null) : ConvertibleToJava<TagArgs>

Manages an individual Autoscaling Group (ASG) tag. This resource should only be used in cases where ASGs are created outside the provider (e.g., ASGs implicitly created by EKS Node Groups).

NOTE: This tagging resource should not be combined with the resource for managing the parent resource. For example, using aws.autoscaling.Group and aws.autoscaling.Tag to manage tags of the same ASG will cause a perpetual difference where the aws.autoscaling.Group resource will try to remove the tag being added by the aws.autoscaling.Tag resource. NOTE: This tagging resource does not use the provider ignore_tags configuration.

Import

Using pulumi import, import aws_autoscaling_group_tag using the ASG name and key, separated by a comma (,). For example:

$ pulumi import aws:autoscaling/tag:Tag example asg-example,k8s.io/cluster-autoscaler/node-template/label/eks.amazonaws.com/capacityType

Constructors

Link copied to clipboard
constructor(autoscalingGroupName: Output<String>? = null, tag: Output<TagTagArgs>? = null)

Properties

Link copied to clipboard
val autoscalingGroupName: Output<String>? = null

Name of the Autoscaling Group to apply the tag to.

Link copied to clipboard
val tag: Output<TagTagArgs>? = null

Tag to create. The tag block is documented below.

Functions

Link copied to clipboard
open override fun toJava(): TagArgs