[Bug]: Inspectorv2 enabler takes too long to enable inspector in an account. #30144
Labels
bug
Addresses a defect in current functionality.
service/inspector2
Issues and PRs that pertain to the inspector2 service.
Milestone
Terraform Core Version
1.3.6
AWS Provider Version
4.59.0
Affected Resource(s)
resource "aws_inspector2_enabler" "example" {
account_ids = ["012345678901"]
resource_types = ["EC2"]
}
Expected Behavior
It should not take more than a minute to enable inspector with the above mentioned terraform resource.
Actual Behavior
It takes a minute to enable inspector from the console, and the aws cli, but this terraform resource takes more than 15 minutes, and sometimes it takes hours to enable it in an account.
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "4.59.0"
}
}
}
provider "aws" {
region = eu-central-1
}
data "aws_caller_identity" "current" {}
resource "aws_inspector2_enabler" "test" {
account_ids = [data.aws_caller_identity.current.account_id]
resource_types = ["ECR", "EC2","LAMBDA"]
}
Steps to Reproduce
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: