Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Inspectorv2 enabler takes too long to enable inspector in an account. #30144

Closed
saad1998 opened this issue Mar 21, 2023 · 4 comments · Fixed by #31038
Closed

[Bug]: Inspectorv2 enabler takes too long to enable inspector in an account. #30144

saad1998 opened this issue Mar 21, 2023 · 4 comments · Fixed by #31038
Assignees
Labels
bug Addresses a defect in current functionality. service/inspector2 Issues and PRs that pertain to the inspector2 service.
Milestone

Comments

@saad1998
Copy link

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

  1. Just do terraform apply on the script above, and then you will see that it times out after 15 minutes.
  2. Then open the console, and check whether inspector is enabled or not.

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

No

@saad1998 saad1998 added bug Addresses a defect in current functionality. needs-triage Waiting for first response or review from a maintainer. labels Mar 21, 2023
@github-actions github-actions bot added service/inspector2 Issues and PRs that pertain to the inspector2 service. service/sts Issues and PRs that pertain to the sts service. labels Mar 21, 2023
@github-actions
Copy link

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@gdavison gdavison self-assigned this Apr 17, 2023
@gdavison
Copy link
Contributor

Related to #27644

@ewbankkit ewbankkit removed service/sts Issues and PRs that pertain to the sts service. needs-triage Waiting for first response or review from a maintainer. labels Apr 28, 2023
@github-actions github-actions bot added this to the v4.66.0 milestone Apr 28, 2023
@github-actions
Copy link

github-actions bot commented May 5, 2023

This functionality has been released in v4.66.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions
Copy link

github-actions bot commented Jun 5, 2023

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/inspector2 Issues and PRs that pertain to the inspector2 service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants