Open ehlaumarc opened 3 years ago
Hey @ehlaumarc ๐ Thank you for taking the time to raise this! Can you confirm what version of the AWS Provider you experienced this issue with? Looking at the documentation for aws_autoscaling_policy
, it looks like target_value
is only used in target_tracking_configuration
blocks, which doesn't seem to be something you're defining here, so I'm scratching my head a bit on why this error would be thrown.
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
The argument "target_value" is required, but no definition was found.
Panic Output
Expected Behavior
The message "Success! The configuration is valid." should appear
Actual Behavior
Error message: โ Error: Missing required argument โ โ on autoscaling.tf line 145, in resource "aws_autoscaling_policy" "asg_policy": โ 145: content { โ โ The argument "target_value" is required, but no definition was found.
Steps to Reproduce
terraform validate
Important Factoids
References