-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Max Glotov
committed
Feb 9, 2024
1 parent
e505071
commit 154dc44
Showing
35 changed files
with
821 additions
and
505 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,5 +19,5 @@ module "acm" { | |
subject_alternative_names = [ | ||
"*.${local.domain_name}"] | ||
|
||
tags = local.tags | ||
tags = var.tags | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,118 +1,21 @@ | ||
# Common outputs | ||
output "name" { | ||
description = "Project name, required to form unique resource names" | ||
value = local.name | ||
} | ||
|
||
output "name_wo_region" { | ||
description = "Project name, required to form unique resource names without short region" | ||
value = local.name_wo_region | ||
} | ||
|
||
output "domain_name" { | ||
description = "Domain name" | ||
value = var.domain_name | ||
} | ||
|
||
output "env" { | ||
description = "Suffix for the hostname depending on workspace" | ||
value = local.env | ||
} | ||
|
||
output "route53_zone_id" { | ||
description = "ID of domain zone" | ||
value = local.zone_id | ||
} | ||
|
||
output "region" { | ||
description = "Target region for all infrastructure resources" | ||
value = var.region | ||
} | ||
|
||
output "short_region" { | ||
description = "The abbreviated name of the region, required to form unique resource names" | ||
value = local.short_region | ||
} | ||
|
||
output "az_count" { | ||
description = "Count of avaiablity zones, min 2" | ||
value = var.az_count | ||
} | ||
|
||
output "allowed_ips" { | ||
description = "List of allowed ip's, used for direct ssh access to instances." | ||
value = var.allowed_ips | ||
} | ||
|
||
output "vpc_name" { | ||
description = "Name of infra VPC" | ||
value = module.vpc.name | ||
} | ||
|
||
output "vpc_id" { | ||
description = "ID of infra VPC" | ||
value = module.vpc.vpc_id | ||
} | ||
|
||
output "vpc_cidr" { | ||
description = "CIDR block of infra VPC" | ||
value = var.cidr | ||
} | ||
|
||
output "vpc_public_subnets" { | ||
description = "Public subnets of infra VPC" | ||
value = module.vpc.public_subnets | ||
} | ||
|
||
output "vpc_private_subnets" { | ||
description = "Private subnets of infra VPC" | ||
value = module.vpc.private_subnets | ||
} | ||
|
||
output "vpc_database_subnets" { | ||
description = "Database subnets of infra VPC" | ||
value = module.vpc.database_subnets | ||
} | ||
|
||
output "vpc_intra_subnets" { | ||
description = "Private intra subnets " | ||
value = module.vpc.intra_subnets | ||
} | ||
|
||
output "eks_cluster_endpoint" { | ||
description = "Endpoint for EKS control plane." | ||
value = module.eks.cluster_endpoint | ||
} | ||
|
||
output "eks_cluster_security_group_id" { | ||
description = "Security group ids attached to the cluster control plane." | ||
value = module.eks.cluster_security_group_id | ||
} | ||
|
||
output "eks_kubectl_console_config" { | ||
value = "aws eks update-kubeconfig --name ${module.eks.cluster_name} --region ${var.region}" | ||
description = "description" | ||
depends_on = [] | ||
} | ||
|
||
output "eks_cluster_id" { | ||
value = module.eks.cluster_name | ||
} | ||
|
||
output "eks_oidc_provider_arn" { | ||
description = "ARN of EKS oidc provider" | ||
value = module.eks.oidc_provider_arn | ||
} | ||
|
||
output "ssl_certificate_arn" { | ||
description = "ARN of SSL certificate" | ||
value = local.ssl_certificate_arn | ||
} | ||
|
||
output "node_group_default_iam_role_arn" { | ||
value = module.eks.self_managed_node_groups["default"].iam_role_arn | ||
} | ||
|
||
output "node_group_default_iam_role_name" { | ||
value = module.eks.self_managed_node_groups["default"].iam_role_name | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.