How do I add tags to an `AutoScalingLaunchConfigur...
# general
e
How do I add tags to an
AutoScalingLaunchConfigurationArgs
?
Copy code
const launchConfiguration = new awsx.autoscaling.AutoScalingLaunchConfiguration("server", vpc, {
  imageId: config.require("imageId"),
  instanceType: aws.ec2.InstanceTypes.T2_XLarge,
  namePrefix: "server-",
  tags: defaultTags
});
Copy code
index.ts(24,3): error TS2345: Argument of type '{ tags: { Description: string; Application: string; Creator: string; Group: string; DeptCode: string; Project: string; Environment: string; Name: string; }; imageId: string; instanceType: InstanceType; namePrefix: string; }' is not assignable to parameter of type 'AutoScalingLaunchConfigurationArgs'.
      Object literal may only specify known properties, and 'tags' does not exist in type 'AutoScalingLaunchConfigurationArgs'.
Or, more generally, how are tags added to resources when using the
awsx
module?
f
I don't believe you can add tags to a launch configuration in AWS
e
I had the same result with autoscaling groups, can I add tags to an AutoscalingGroup created with
awsx
? Actually, the autoscaling group resource created an S3 bucket, and that bucket didn't have any tags. I'd really like the tags on all the downstream resources created