This is an intermittent issue. Is there any way to increase default timeout while creating aws_api_gateway_vpc_link resource?
I use the below terraform code:
provider “aws” {
region = “us-east-1”
version = “2.43.0”
}
resource “aws_lb” “nlb” {
name = “test-shared-nlb”
internal = true
load_balancer_type = “network”
enable_cross_zone_load_balancing = “true”
subnets = ["${data.terraform_remote_state.environment.vpc_private_subnet_ids}"]
timeouts {
create = “15m”
delete = “15m”
}
}
resource “aws_api_gateway_vpc_link” “main” {
name = “test-shared-gateway”
target_arns = ["${aws_lb.nlb.id}"]
}
output:
1 error(s) occurred:
- aws_api_gateway_vpc_link.main: 1 error(s) occurred:
- aws_api_gateway_vpc_link.main: Error waiting for APIGateway Vpc Link status to be “AVAILABLE”: timeout while waiting