Closed rohiddev closed 4 years ago
Please do terraform destroy or delete the terraform.tfstate file and rerun. I would recommend to run from the parent directory in one stretch which will give you the correct results.
Thank you @Praveenmail2him - that errors are typically a result of multiple invocation that is not cleaned up - @rohiddev - you may need to clean up manually as you have multiple errors there
Error: Search returned 4 results, please revise so only one is returned
on elb.tf line 1, in data "aws_lb_target_group" "ocp_control_plane_int_6443": 1: data "aws_lb_target_group" "ocp_control_plane_int_6443" {
Error: Search returned 4 results, please revise so only one is returned
on elb.tf line 5, in data "aws_lb_target_group" "ocp_control_plane_int_22623": 5: data "aws_lb_target_group" "ocp_control_plane_int_22623" {
Error: Search returned 3 results, please revise so only one is returned
on elb.tf line 9, in data "aws_lb" "ocp_control_plane_int": 9: data "aws_lb" "ocp_control_plane_int" {
Error: Error getting instance profiles: InvalidParameter: 1 validation error(s) found.
minimum field size of 1, GetInstanceProfileInput.InstanceProfileName.
on iam.tf line 50, in data "aws_iam_instance_profile" "ocp_ec2_master_instance_profile": 50: data "aws_iam_instance_profile" "ocp_ec2_master_instance_profile" {
Error: Error getting instance profiles: InvalidParameter: 1 validation error(s) found.
minimum field size of 1, GetInstanceProfileInput.InstanceProfileName.
on iam.tf line 54, in data "aws_iam_instance_profile" "ocp_ec2_worker_instance_profile": 54: data "aws_iam_instance_profile" "ocp_ec2_worker_instance_profile" {
Error: Your query returned no results. Please change your search criteria and try again.
on rhcos.tf line 1, in data "aws_ami" "rhcos": 1: data "aws_ami" "rhcos" {
Error: Either name or zone_id must be set
on route53.tf line 1, in data "aws_route53_zone" "ocp_private": 1: data "aws_route53_zone" "ocp_private" {
Error: multiple Security Groups matched; use additional constraints to reduce matches to a single Security Group
on security_group.tf line 1, in data "aws_security_group" "master": 1: data "aws_security_group" "master" {
Error: multiple Security Groups matched; use additional constraints to reduce matches to a single Security Group
on security_group.tf line 5, in data "aws_security_group" "worker": 5: data "aws_security_group" "worker" {
Error: multiple VPCs matched; use additional constraints to reduce matches to a single VPC
on vpc.tf line 1, in data "aws_vpc" "ocp_vpc": 1: data "aws_vpc" "ocp_vpc" {