#office-hours (2024-01)

“Office Hours” are every Wednesday at 11:30 PST via Zoom. It’s open to everyone. Ask questions related to DevOps & Cloud and get answers! https://cloudposse.com/office-hours

Public “Office Hours” are held every Wednesday at 11:30 PST via Zoom. It’s open to everyone. Ask questions related to DevOps & Cloud and get answers!

https://cpco.io/slack-office-hours

Meeting password: sweetops

2024-01-08

Tyrone Meijn avatar
Tyrone Meijn

Came across this tool when looking for ECS tooling. It tries to bring an k9s experience to ECS. Definitely not yet has parity, but also maintained by just a single person. https://github.com/keidarcy/e1s

keidarcy/e1s

E1S - Easily Manage AWS ECS Resources in Terminal

2
1
2
1
Tyrone Meijn avatar
Tyrone Meijn

Hey @Erik Osterman (Cloud Posse) I’m just totally curious why this one didn’t make the list of announcements? Is it because it’s ECS related?

keidarcy/e1s

E1S - Easily Manage AWS ECS Resources in Terminal

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

Sorry! I just missed it :-)

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

Looks cool

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

Will bring it up next week

managedkaos avatar
managedkaos
12:42:53 AM
Major IT, Crypto Firms Exposed to Supply Chain Compromise via New Class of CI/CD Attack attachment image

Self-hosted GitHub Actions runners could allow attackers to inject malicious code into repositories, leading to supply chain attacks.

2024-01-10

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)
07:02:21 PM

@here office hours is starting in 30 minutes! Remember to post your questions here.

Nenna avatar

Links from today’s office hours:

https://atmos.tools/integrations/github-actions/atmos-terraform-plan https://atmos.tools/integrations/github-actions/atmos-terraform-apply/ https://atmos.tools/integrations/github-actions/atmos-terraform-drift-detection https://atmos.tools/design-patterns/ https://www.infoq.com/news/2024/01/aurora-serverless-v1-retirement/ https://anvaka.github.io/map-of-github/#2.44/-25.68/-53.29 https://www.bleepingcomputer.com/news/security/everything-blocks-devs-from-removing-their-own-npm-packages/ https://github.com/opentofu/opentofu/releases/tag/v1.6.0 https://github.com/gaia-app/gaia https://github.com/hcavarsan/kftray https://aws.amazon.com/blogs/networking-and-content-delivery/monitor-hybrid-connectivity-with-amazon-cloudwatch-network-monitor/ https://aws.amazon.com/blogs/mt/how-to-record-resource-configuration-changes-periodically-with-aws-config/ https://aws.amazon.com/about-aws/whats-new/2023/12/amazon-eks-surfaces-cluster-health-status-details/ https://www.securityweek.com/major-it-crypto-firms-exposed-to-supply-chain-compromise-via-new-class-of-ci-cd-attack/ https://www.forbes.com/sites/daveywinder/2023/12/11/android-warning-1password-dashlane-lastpass-and-others-can-leak-passwords/?sh=329436b497db https://bambulab.com/en-us/a1 https://mafiaguy.medium.com/a-comprehensive-guide-to-iam-authentication-for-amazon-rds-instances-b1ac96c52233 https://github.com/KnifeMaster007/pgAuthProxy https://docs.aws.amazon.com/glue/latest/dg/set-up-vpc-dns.html https://docs.aws.amazon.com/vpc/latest/userguide/vpc-dns.html

1

2024-01-11

2024-01-13

SlackBot avatar
SlackBot
03:03:20 PM
SlackBot avatar
SlackBot
03:03:21 PM

2024-01-16

Michael avatar
Michael
Terraform provider code generation now in tech previewattachment image

Terraform provider code generation is an extensible solution that lets developers automate portions of their provider development workflow — now in tech preview.

2
Tim Gourley avatar
Tim Gourley

Follow-up on the topic - resolving ALB internal (/private) IPs inside VPC - Based on our last discussion I ran tests and was still never able to get anything other than public IP addresses from inside my VPC… I verified I was using the VPCs .2 resolver and that the DNS options were enabled for my VPC. (I did not re-test in a “default” VPC) I also did a bunch of googling, and searching thru forums. I did discover AWS provides some DNS prefixes for ALBs - the all.** prefix returns all IPs for a loadbalancer (perhaps more than what are currently active) and *<regionalzoneid>.** prefix (like us-east-1c.abc.com) which resolves the ALBs IPs only for the given zone. I then filed a support request to try to get an answer on the ALB private address resolution and the AWS response was - “Unfortunately, there are currently no DNS method you can use to get the private ip’s of a public load balancer. The dns of ALB will resolve to public ips only.* In order to get the private IP’s, you can find them in the “network interfaces” tab from the ENI’s of the ALB” Based on the discussion in office hours I’m expecting the private/public resolution feature may only apply to EC2 instance DNS, and not to ALB DNS. Providing this info here with the hope it helps someone in the future. Thanks for the suggestions on trying to get this to work. Regards, Tim

Andriy Knysh (Cloud Posse) avatar
Andriy Knysh (Cloud Posse)
# Find the NLB by tag
data "aws_lb" "nlb" {
  tags = {
    "kubernetes.io/service-name" = ".........."
  }
}

# Find the NLB private IPs by searching/filtering the ENIs
locals {
  nlb_name = data.aws_lb.nlb.name
  nlb_arn  = data.aws_lb.nlb.arn
  nlb_id   = element(reverse(split("/", local.nlb_arn)), 0)
}

data "aws_network_interfaces" "nlb" {
  filter {
    name   = "description"
    values = [format("ELB net/%s/%s", local.nlb_name, local.nlb_id)]
  }
}

locals {
  nlb_network_interface_ids = sort(data.aws_network_interfaces.nlb.ids)
}

# Lookup a network interface in each AZ to find its private IP
data "aws_network_interface" "nlb" {
  count = length(var.availability_zones)

  id = local.nlb_network_interface_ids[count.index]
}

locals {
  nlb_network_interface_private_ips = data.aws_network_interface.nlb[*].private_ip
}

# Attach the NLB private IPs to the public ALB Target Group
resource "aws_lb_target_group_attachment" "nlb" {
  count = length(local.nlb_network_interface_private_ips)

  target_group_arn  = var.alb_target_group_arn
  target_id         = local.nlb_network_interface_private_ips[count.index]
  availability_zone = "all"
  port              = var.kubernetes_service_port
}
Andriy Knysh (Cloud Posse) avatar
Andriy Knysh (Cloud Posse)

something like this works to find the private IPs of an internal NLB (can be used for ALB as well)

Tim Gourley avatar
Tim Gourley

Nice example! I guess a risk is that if it scaled out we would need to re-run the terraform to collect new IPs? (99.9% of the cases that TF would be fine… and if my ALBs are scaling out I may have other problems ;))

2024-01-17

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)
07:02:05 PM

@here office hours is starting in 30 minutes! Remember to post your questions here.

elvis lim avatar
elvis lim

Anyone played with cilium CNI in AWS? planning to test the waters soon!

Hao Wang avatar
Hao Wang

Ha you may want to use other channels, I played with it and Cilium has many advanced products based on eBPF

venkata.mutyala avatar
venkata.mutyala
GitHub-hosted runners: Double the power for open sourceattachment image

GitHub Actions continues its industry-leading support for the OSS community by doubling the Windows/Linux machine size to 4-vCPU runners at no cost for public repositories.

2024-01-18

SlackBot avatar
SlackBot
12:13:35 AM
SlackBot avatar
SlackBot
12:13:36 AM

2024-01-22

SlackBot avatar
SlackBot
12:48:19 PM
SlackBot avatar
SlackBot
12:48:19 PM

2024-01-24

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)
07:02:08 PM

@here office hours is starting in 30 minutes! Remember to post your questions here.

2024-01-27

venkata.mutyala avatar
venkata.mutyala
Introducing Docker Build Cloud: A new solution to speed up build times and improve developer productivity | Dockerattachment image

Docker Build Cloud is now generally available. Learn more about the benefits of Docker Build Cloud and see how to get started.

2024-01-29

2024-01-30

SlackBot avatar
SlackBot
02:03:24 AM
SlackBot avatar
SlackBot
02:03:24 AM

2024-01-31

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)
07:01:39 PM

@here office hours is starting in 30 minutes! Remember to post your questions here.

Vlad Ionescu (he/him) avatar
Vlad Ionescu (he/him)

I’ll actually get to join y’all today

Hans D avatar

wondering how much opentofu is now actually used in the wild, production or testing ?

Hans D avatar

and terraform test (the 1.6+ functionality): experiences, pros/cons/limitations

SlackBot avatar
SlackBot
08:38:18 PM
SlackBot avatar
SlackBot
08:38:19 PM
    keyboard_arrow_up