3

is it possible to enable Inspector new version by Terraform? as in https://registry.terraform.io/, I only found inspector classic resources

John Rotenstein
  • 241,921
  • 22
  • 380
  • 470
Tien Dung Tran
  • 1,127
  • 4
  • 16
  • 32
  • How did it go? Still unclear why you can't do that? – Marcin Jan 19 '22 at 04:06
  • @Marcin: enable Inspector 2 in a multiple-account with local-exec is complicated since Terraform not supported. If I want to update delegated administrator account or disable inspector2 for all account, I have to implement script to do that. – Tien Dung Tran Jan 20 '22 at 03:12
  • Yes, you have to design everything from zero as TF does not support inspector 2. – Marcin Jan 20 '22 at 10:20

1 Answers1

5

Its not supported, but there is already github issue for that. In the meantime you can use local-exec with AWS CLI or external data source to work with inspector2.

Marcin
  • 215,873
  • 14
  • 235
  • 294