gowgopal@GOWGOPAL-M-H0VS ~/Cisco/aws-infra/test-vpc mgm/vpc ± terraform apply -var 'region=us-west-1'
data.aws_caller_identity.current: Refreshing state...
module.mgmt_vpc.aws_cloudwatch_log_group.dcloud_vpc_log_group: Refreshing state... [id=test-vpc-dcloud-vpc-log-group]
module.mgmt_vpc.aws_iam_role.dcloud_flowlogs_role: Refreshing state... [id=test-vpc-dcloud-flowlogs-role]
data.aws_ami.latest_qualys_ami: Refreshing state...
data.aws_availability_zones.available: Refreshing state...
module.mgmt_vpc.aws_vpc.mod: Refreshing state... [id=vpc-072ca8331e75c635f]
module.mgmt_vpc.aws_iam_role_policy.vpc-flow-policy: Refreshing state... [id=test-vpc-dcloud-flowlogs-role:test-vpc-dcloud_vpc_flowlogs_policy]
module.mgmt_vpc.data.terraform_remote_state.global_vpc_metadata: Refreshing state...
module.mgmt_vpc.aws_internet_gateway.mod: Refreshing state... [id=igw-0c0c30bc7bcef3286]
module.mgmt_vpc.aws_subnet.public[0]: Refreshing state... [id=subnet-09612bdaf32ea4d4c]
module.mgmt_vpc.aws_flow_log.dcloud_flow_log: Refreshing state... [id=fl-0355ed29126830368]
module.mgmt_vpc.aws_vpc_peering_connection.requester: Refreshing state... [id=pcx-06e4ce78307dd2ba9]
module.mgmt_vpc.aws_route_table.public: Refreshing state... [id=rtb-05575e19c7b64dd73]
aws_security_group.qualys-sg: Refreshing state... [id=sg-0d813cc6cddc04acc]
module.mgmt_vpc.aws_route.public_internet_gateway: Refreshing state... [id=r-rtb-05575e19c7b64dd731080289494]
module.mgmt_vpc.aws_route_table_association.public[0]: Refreshing state... [id=rtbassoc-0cdfdab93a0c2e809]
aws_instance.qualys_instance: Refreshing state... [id=i-0fed254887f9ca251]
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# module.mgmt_vpc.aws_vpc_peering_connection.requester will be created
+ resource "aws_vpc_peering_connection" "requester" {
+ accept_status = (known after apply)
+ auto_accept = false
+ id = (known after apply)
+ peer_owner_id = (known after apply)
+ peer_region = (known after apply)
+ peer_vpc_id = "vpc-072ca8331e75c635f"
+ tags = {
+ "Side" = "Requester"
}
+ vpc_id = "vpc-0fcf8ab14c3e10471"
+ accepter {
+ allow_classic_link_to_remote_vpc = (known after apply)
+ allow_remote_vpc_dns_resolution = (known after apply)
+ allow_vpc_to_remote_classic_link = (known after apply)
}
+ requester {
+ allow_classic_link_to_remote_vpc = (known after apply)
+ allow_remote_vpc_dns_resolution = (known after apply)
+ allow_vpc_to_remote_classic_link = (known after apply)
}
}
# module.mgmt_vpc.aws_vpc_peering_connection_accepter.accepter will be created
+ resource "aws_vpc_peering_connection_accepter" "accepter" {
+ accept_status = (known after apply)
+ auto_accept = true
+ id = (known after apply)
+ peer_owner_id = (known after apply)
+ peer_region = (known after apply)
+ peer_vpc_id = (known after apply)
+ tags = {
+ "Side" = "Accepter"
}
+ vpc_id = (known after apply)
+ vpc_peering_connection_id = (known after apply)
+ accepter {
+ allow_classic_link_to_remote_vpc = (known after apply)
+ allow_remote_vpc_dns_resolution = (known after apply)
+ allow_vpc_to_remote_classic_link = (known after apply)
}
+ requester {
+ allow_classic_link_to_remote_vpc = (known after apply)
+ allow_remote_vpc_dns_resolution = (known after apply)
+ allow_vpc_to_remote_classic_link = (known after apply)
}
}
Plan: 2 to add, 0 to change, 0 to destroy.
Do you want to perform these actions in workspace "test-peering"?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
module.mgmt_vpc.aws_vpc_peering_connection.requester: Creating...
Error: Error waiting for VPC Peering Connection to become available: Error waiting for VPC Peering Connection (pcx-0751906ef0f36dff4) to become available: Failed due to incorrect VPC-ID, Account ID, or overlapping CIDR range
on .terraform/modules/mgmt_vpc/
peering.tf line 45, in resource "aws_vpc_peering_connection" "requester":
45: resource "aws_vpc_peering_connection" "requester" {