Where's the rest of your code? You're creating your security group in a different vpc
b
better-umbrella-26052
07/11/2022, 1:19 PM
Right. It is really an AWS error. Security groups belong to particular VPCs. If you want to attach a SG to an EKS cluster, they must both be in the same VPC.
j
jolly-plumber-1488
07/11/2022, 9:23 PM
Yeah, @mammoth-electrician-64525 has answered this question, but it turned out to be in incorrect attribute ref of VPC, should be