diff --git a/README.md b/README.md index 132e873..a4a564f 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ Call the module with the specific version you want using the ```ref``` query par # API Gateway # ----------------------------------------------------------------------------- module "apigateway" { - source = "github.com/rpstreef/tf-apigateway?ref=v1.0" + source = "github.com/nhammond101/tf-apigateway?ref=v1.5.3" resource_tag_name = var.resource_tag_name namespace = var.namespace region = var.region @@ -64,4 +64,4 @@ Use the resources parameter ```var.resources``` to specify which API endpoints y ### v1.0 -Initial release \ No newline at end of file +Initial release diff --git a/outputs.tf b/outputs.tf index ddae136..a98bf31 100644 --- a/outputs.tf +++ b/outputs.tf @@ -7,7 +7,7 @@ output "rest_api_id" { } output "api_url" { - value = aws_api_gateway_domain_name._[0].regional_domain_name + value = length(aws_api_gateway_domain_name._) > 0 ? aws_api_gateway_domain_name._[0].regional_domain_name : null } output "api_domain_name" {