Open abezzub opened 3 months ago
Voting for Prioritization
Volunteering to Work on This Issue
This issue also affects the aws_guardduty_organization_configuration_feature
resource.
I'm getting similar error when using aws_guardduty_organization_configuration_feature
│ Error: expected additional_configuration.2.name to be one of ["EKS_ADDON_MANAGEMENT" "ECS_FARGATE_AGENT_MANAGEMENT"], got EC2_AGENT_MANAGEMENT
I'm also getting this error with resource aws_guardduty_detector_feature
. Terraform v1.7.4 and OpenTofu v1.6.2.
It impacts the resource as it detects a change every time I plan:
Error: expected additional_configuration.2.name to be one of ["EKS_ADDON_MANAGEMENT" "ECS_FARGATE_AGENT_MANAGEMENT"], got EC2_AGENT_MANAGEMENT
[...]
RUNTIME_MONITORING = {
status = "ENABLED"
additional_configuration = [
{ "name" : "EKS_ADDON_MANAGEMENT", "status" : "ENABLED" },
{ "name" : "ECS_FARGATE_AGENT_MANAGEMENT", "status" : "ENABLED" },
{ "name" : "EC2_AGENT_MANAGEMENT", "status" : "ENABLED" }
]
}
[...]
The documentation clearly states that the value is correct:
Terraform Core Version
1.7.4
AWS Provider Version
5.43.0
Affected Resource(s)
Expected Behavior
When I generate terraform plan on workspace with no changes it should show that no changes are to be made.
Actual Behavior
Terraform produces following plan to remove
EC2_AGENT_MANAGEMENT
feature:This is current configuration I use:
Adding following block to the resource causes an
EC2_AGENT_MANAGEMENT
value not supported error.Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
Run
terraform plan
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None