https://pulumi.com logo
#general
Title
# general
e

early-musician-41645

08/26/2019, 11:51 PM
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

future-barista-68134

08/27/2019, 12:17 AM
I don't believe you can add tags to a launch configuration in AWS
e

early-musician-41645

08/27/2019, 12:22 AM
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