diff --git a/plugins/processors/aws/ec2/ec2.go b/plugins/processors/aws/ec2/ec2.go index b77c6425e4dd7..0efe012544c58 100644 --- a/plugins/processors/aws/ec2/ec2.go +++ b/plugins/processors/aws/ec2/ec2.go @@ -117,7 +117,7 @@ func (r *AwsEc2Processor) Start(acc telegraf.Accumulator) error { // Chceck if instance is allowed to call DescribeTags. _, err = r.ec2Client.DescribeTags(ctx, &ec2.DescribeTagsInput{ - DryRun: true, + DryRun: aws.Bool(true), }) var ae smithy.APIError if errors.As(err, &ae) {