InvalidGroup.NotFound: The security group ‘sg-something’ does not exist error

Hi, I’m getting the error below, from command AWS_PROFILE=myprofile AWS_REGION=sa-east-1 terraform apply -target=module.saopaulo_service_dev_kubernetes.

Error authorizing security group rule type ingress: InvalidGroup.NotFound: The security group ‘sg-something’ does not exist

I have security group named sg-something in sa-east-1 region, and have also checked that I’m running terraform apply on correct region by checking

data "aws_region" "current" {}
output my_region {
  value = data.aws_region.current.name
}

This seems to be a bug …

Could you share the plan output?