# aws


01/22/2020, 7:28 PM
Hey. Is there any good example of setting up
elastic beanstalk
on a VPC and multi az env (not default) ? I have setup my code but i am facing multiple issue with it . 1. Whenever i am doing
pulumi destroy
some of the IAM roles are not getting deleted. (Image attached) 2. Whenever i am changing the subnets from public to private , i am not able to access the default app. 3. I have
2 public subnets
2 private subnets
. How to configure that my ec2's are created in private subnet and ELB in public subnet Also find the code attached. Any help would be highly appreciated.