• AWS EKS: reduce the number of reserved IPs

    4 min read

    EKS AWS ENI available IPs subnet

    If you are trying to run a EKS cluster on a small subnet you might run out of IPs sooner that you might think. Every time it has to attach or detach IPs an API call needs to be made, so to avoid getting API calls throttled it pre-reserves some

    16/05/2022

    Read more...
  • Install AWS cloud provider on a k3s cluster

    2 min read

    k3s aws cloud provider load balancer

    One of the drawbacks of installing k3s on a EC2 instance versus using EKS is that we loose the AWS integration, so we cannot use AWS load balancers by default. Thanks to the AWS cloud provider we can overcome this limitation

    10/05/2022

    Read more...
  • Deploy a lambda function using terraform

    4 min read

    AWS Lambda terraform aws_lambda_function archive_file

    To be able to deploy a lambda function there are several pieces that need to be deployed:

    • IAM roles: It might need to access to the AWS API, so we need to create an IAM role to control it's privileges
    • Triggering: We might want the function to get triggered with some event (that's what we are going to do on this post) or a load balancer
    • Code: What we want to execute
    • Lambda function itself

    05/05/2022

    Read more...
  • Configure an AWS Load Balancer to target an Autoscaling Group using terraform

    3 min read

    Terraform AWS load balancer target auto scaling group

    It's quite convenient to be able to configure a AWS Load Balancer to target an Auto Scaling Group so we don't have to handle how instances are getting in and out of this load balancer. This can be done easily using terraform as follows

    04/05/2022

    Read more...
  • How to use aws s3 sync command

    2 min read

    Similarly on how we use the rsync command to copy content across the filesystem and even across servers, we can use aws s3 sync to not only sync files between the computer we are running it and an S3 bucket but also between S3 buckets

    03/05/2022

    Read more...

More recent...

Older content...