Linux, DevOps, Kubernetes, AWS
I'm a cloud-native enthusiast and tech blogger, sharing insights on Kubernetes, AWS, CI/CD, and Linux across my blog and Facebook page. Passionate about modern infrastructure and microservices, I aim to help others understand and leverage cloud-native technologies for scalable, efficient solutions.
Markdown supported · ⌘↵ to post
Thu Kha Kyawe
Thank you! I see there is minor error.
Add the following EIP resource to your main.tf file, preferably before the NAT Gateway resource:
Elastic IPs for NAT Gateways (conditional)
resource "aws_eip" "nat" { count = local.create_nat_gateway ? local.az_count : 0 domain = "vpc"
tags = { Name = "${var.project_name}-${var.environment}-nat-eip-${count.index + 1}" } }