Skip to content

Commit

Permalink
Merge pull request #8 from SCT-Engineering/mcmCluster
Browse files Browse the repository at this point in the history
DNS and more
  • Loading branch information
nangu001 committed Jul 30, 2024
2 parents 28939a6 + 7631f11 commit 28e5cc1
Show file tree
Hide file tree
Showing 7 changed files with 517 additions and 33 deletions.
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,16 @@ coredns
kube-proxy

# CHANGELOG
- created content in the README

<!-- BEGIN_TF_DOCS -->
## Requirements
* 0.0.3 -- 2024-07-30
- updated to use karpenter
- misc cleanup
- add hack dns for today until modules work
* 0.0.2 -- 2024-07-22
- updated version.tf to 0.0.2
- add kube.config update after cluster create
- update ami_type to AL2023
- update upstream cluster module to 20.20.0
- created changelog

| Name | Version |
|------|---------|
Expand Down Expand Up @@ -131,4 +137,4 @@ kube-proxy
| <a name="output_vpc_cidr_block"></a> [vpc\_cidr\_block](#output\_vpc\_cidr\_block) | The CIDR block associated with the VPC. |
| <a name="output_vpc_cni_irsa_role"></a> [vpc\_cni\_irsa\_role](#output\_vpc\_cni\_irsa\_role) | The arn/name/unique\_id of the irsa role for the vpc-cni addon |
| <a name="output_vpc_id"></a> [vpc\_id](#output\_vpc\_id) | The VPC id where the EKS cluster was deployed. |
<!-- END_TF_DOCS -->
<!-- END_TF_DOCS -->
27 changes: 24 additions & 3 deletions aws_data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,31 @@ data "aws_region" "current" {}
data "aws_arn" "current" {
arn = data.aws_caller_identity.current.arn
}

data "aws_subnets" "container-subnets" {
filter {
name = "tag:Name"
values = [local.container_subnets_name]
}
filter {
name = "vpc-id"
values = [data.aws_vpc.eks_vpc.id]
}
}
data "aws_subnets" "lb-subnets" {
filter {
name = "tag:Name"
values = [local.lb_subnets_name]
}
filter {
name = "vpc-id"
values = [data.aws_vpc.eks_vpc.id]
}
}
locals {
base_arn = format("arn:%v:%%v:%v:%v:%%v:%%v", data.aws_arn.current.partition, data.aws_region.current.name, data.aws_caller_identity.current.account_id)
iam_arn = format("arn:%v:iam::%v:%%v", data.aws_arn.current.partition, data.aws_caller_identity.current.account_id)
container_subnets_name = var.subnets_name
lb_subnets_name = var.lb_subnets_name
base_arn = format("arn:%v:%%v:%v:%v:%%v:%%v", data.aws_arn.current.partition, data.aws_region.current.name, data.aws_caller_identity.current.account_id)
iam_arn = format("arn:%v:iam::%v:%%v", data.aws_arn.current.partition, data.aws_caller_identity.current.account_id)
common_arn = format("arn:%v:%%v:%v:%v:%%v",
data.aws_arn.current.partition,
data.aws_region.current.name,
Expand Down
Loading

0 comments on commit 28e5cc1

Please sign in to comment.