Skip to content

DNS and more #8

Merged
merged 59 commits into from
Jul 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
4334f8e
update image to AL2023
morga471 Jul 20, 2024
4bb7844
not for 1.30 apparently
morga471 Jul 22, 2024
6b879ef
comment the taint
morga471 Jul 22, 2024
091915f
add changelog and update version
morga471 Jul 23, 2024
bcbf1e3
add node_group_name as output
morga471 Jul 26, 2024
67393ac
use bottlerocket
morga471 Jul 27, 2024
071e4b1
add _module_providers
morga471 Jul 27, 2024
97735fd
add outputs
morga471 Jul 27, 2024
b4c17b5
dns stuff
morga471 Jul 29, 2024
94ee860
add region_map
morga471 Jul 29, 2024
fa4a500
rename and fix domain
morga471 Jul 29, 2024
7275463
add local.region
morga471 Jul 29, 2024
b0dabb4
tags
morga471 Jul 29, 2024
e7659c9
no parent zone needed
morga471 Jul 29, 2024
a98436a
nope
morga471 Jul 29, 2024
c9d2fa5
add route53 endpoints
morga471 Jul 29, 2024
2b8453c
domain to vpc_domain_name
morga471 Jul 29, 2024
bf19049
add region
morga471 Jul 29, 2024
4bd1980
not needed
morga471 Jul 29, 2024
de3c494
convert to example
morga471 Jul 29, 2024
9eb59cf
fix vars
morga471 Jul 29, 2024
5db3004
cleanup tags
morga471 Jul 29, 2024
4f261dd
fixes_for_vars
morga471 Jul 29, 2024
238a6a1
another fix
morga471 Jul 29, 2024
12b9ca3
fmt
morga471 Jul 29, 2024
7225a99
empty
morga471 Jul 29, 2024
159e8b4
no legacy
morga471 Jul 29, 2024
cfb29d5
comment west
morga471 Jul 29, 2024
368bdb7
zones
morga471 Jul 29, 2024
d8bcb90
no vpc7 stuff
morga471 Jul 29, 2024
999d79e
bad idea removed
morga471 Jul 29, 2024
0d67317
add dummy vpc
morga471 Jul 30, 2024
6c1764f
zone_ids
morga471 Jul 30, 2024
0f0a969
zone_ids are queried after cluster_domain is created
morga471 Jul 30, 2024
e150438
no profile?
morga471 Jul 30, 2024
b41f1ba
add var
morga471 Jul 30, 2024
d8f800f
define self
morga471 Jul 30, 2024
c0954d1
add zone list
morga471 Jul 30, 2024
c336d96
add self back
morga471 Jul 30, 2024
80ed38c
account
morga471 Jul 30, 2024
b85324f
maybe
morga471 Jul 30, 2024
af7ec5f
current identity
morga471 Jul 30, 2024
fc42c4b
without modules
morga471 Jul 30, 2024
1befc7d
delete state
morga471 Jul 30, 2024
89df119
typo
morga471 Jul 30, 2024
2ea62cf
comment correct
morga471 Jul 30, 2024
5cc4528
fix missing things
morga471 Jul 30, 2024
ec51a22
add self again
morga471 Jul 30, 2024
e8b03fd
stupidity
morga471 Jul 30, 2024
0ee5305
more stupid
morga471 Jul 30, 2024
cac77a6
ugh
morga471 Jul 30, 2024
558d586
use caller identity again
morga471 Jul 30, 2024
2c7a9e2
we already are
morga471 Jul 30, 2024
3e39778
getting warmer
morga471 Jul 30, 2024
d8fc592
add subnet tags
morga471 Jul 30, 2024
d6219b0
add some data
morga471 Jul 30, 2024
092d385
subnets
morga471 Jul 30, 2024
450b343
increment version and add notes to changelog
morga471 Jul 30, 2024
7631f11
update changelog
morga471 Jul 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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