Error: error collecting instance settings: InvalidAMIID.NotFound: The image id ‘[ami-0202869bdd0fc8c75]’ does not exist
│ status code: 400, request id: cfb2e241-1ed5-45e2-b0ce-5353135efa14
│
│ with module.Ireland-ec2-1.aws_instance.LSFMASTER_M[0],
│ on modules\ec2\ec2-UR.tf line 1, in resource “aws_instance” “LSFMASTER_M”:
│ 1: resource “aws_instance” “LSFMASTER_M” {
│
╵
╷
│ Error: error collecting instance settings: InvalidAMIID.NotFound: The image id ‘[ami-0202869bdd0fc8c75]’ does not exist
│ status code: 400, request id: 333b0bac-6dba-44ff-a066-6a1762e6d9c8
│
│ with module.Ireland-ec2-2.aws_instance.LSFMASTER_M[0],
│ on modules\ec2\ec2-UR.tf line 1, in resource “aws_instance” “LSFMASTER_M”:
│ 1: resource “aws_instance” “LSFMASTER_M” {
│
╵
╷
│ Error: error creating Security Group (ec2_security): InvalidVpcID.NotFound: The vpc ID ‘vpc-07cd5a105544d08cc’ does not exist
│ status code: 400, request id: 8e434891-3db1-42dc-8182-9392c59ffe99
│
│ with module.dev_sg.aws_security_group.allow_all,
│ on modules\sg\sg-UR.tf line 1, in resource “aws_security_group” “allow_all”:
│ 1: resource “aws_security_group” “allow_all” {
But actually VPC and AMI’s are availble , why terraform modules not picking up those??, pls help ASAP its urgent.
Thanks,
Jagadeesh.