ibm-cloud-architecture / terraform-openshift4-aws

OpenShift 4 installation automation asset
Apache License 2.0
82 stars 113 forks source link

error running 6_bootstrap #18

Closed rohiddev closed 4 years ago

rohiddev commented 4 years ago

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.

Error: Error getting instance profiles: InvalidParameter: 1 validation error(s) found.

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" {

Praveenmail2him commented 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.

vbudi000 commented 4 years ago

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