Open inspiraller opened 2 months ago
Please provide a valid AMI ID while creating instance. Click on launch instance and below you will find AMI id, use that ami id in your main.tf
@ujwalchangappa Hi thanks for reply. Yes I changed the AMI id which clears that error, but I still get the other error: error creating application Load Balancer: InvalidConfigurationRequest: A load balancer cannot be attached to multiple subnets in the same Availability Zone │ status code: 400, request id: cc1296fe-9fc3-4759-94cd-e911975f3c69 │ │ with aws_lb.load_balancer, │ on main.tf line 150, in resource "aws_lb" "load_balancer": │ 150: resource "aws_lb" "load_balancer" {
Great demo. I notice when going over the first example - there are some bugs to tidy up.
using file: https://github.com/sidpalas/devops-directive-terraform-course/blob/main/03-basics/web-app/main.tf
terraform apply