HashiCorp Packer Tutorial: Building Custom Images for AWS, Azure, and Docker

Ойын-сауық

In this video, we'll be diving into HashiCorp Packer, a powerful tool for creating machine images for multiple platforms in a repeatable and automated way. You'll learn how to get started with Packer, including installation and setup, building images for different platforms, and using Packer with other HashiCorp tools. We'll also cover best practices and tips for using Packer effectively.
🆓Join our Slack Community for FREE: kode.wiki/JoinOurSlackCommunity
These are the topics covered in this video:
00:00 - Introduction
00:42 - What is Packer?
05:40 - Mutable Infrastructure
08:35 - Mutable vs Immutable Infrastructure
09:11 - Custom Images
09:52 - Workflow in Immutable Infrastructure using Packer
12:05 - Demo
28:31 - Conclusion
✅Start your HashiCorp journey by getting your foundations right: kode.wiki/HashiCorp_LearningP...
We have various Learning Paths to help you choose your next step and shape your DevOps & Cloud Career.
Check out our learning paths at KodeKloud to get started:
▶️HashiCorp: kode.wiki/HashiCorp_LearningP...
▶️ Kubernetes: bit.ly/KubernetesLearningPath
▶️ Cloud:kode.wiki/CloudLearningPath
▶️ Linux: bit.ly/LinuxLearningPath
▶️ DevOps Learning Path: bit.ly/DevOpsLearningPath-YT
▶️ Docker: bit.ly/DockerLearningPath
▶️ Infrastructure as Code(IAC): bit.ly/IACLearningPath
▶️ Programming: bit.ly/ProgrammingLearningPath
#Hashicorp #hashicorppacker #kodekloud
Those new to the Programming and DevOps world often find it challenging to start their journey due to the missing basic prerequisites. For example, issues with setting up a basic lab environment using VirtualBox, problems with networking, or trouble with working with the Linux CLI or text editors like vi editor. Sometimes there are issues with applications - like getting a sample application to work, problems with getting the dependencies to install correctly or trouble with getting a web server to communicate with a database server. Or, at other times, it's working with data formats like JSON or YAML.
So we have identified a gap, and we believe that this is due to missing some of the basic prerequisites, such as knowing the basics of Linux, the basics of tools like VirtualBox, or knowing the basics of the most commonly used applications like Java, Python or NodeJS or web servers like Apache, NGINX etc. As a DevOps or Cloud Engineer, it is crucial to have these basics cleared. And that’s why we are helping you to bridge that gap!
For more updates on courses and tips, follow us on:
➡️ Website: kodekloud.com/
➡️ LinkedIn: / kode. .
➡️ Twitter: / kodekloud1
➡️ Facebook: / kodekloudtra. .
➡️ Instagram: / kodekloud
➡️ Blog: kodekloud.com/blog/

Пікірлер: 44

  • @DanushkaStanley-Dan
    @DanushkaStanley-Dan16 күн бұрын

    Straight to the point love it!

  • @mejiger
    @mejiger3 ай бұрын

    Best tutorial on packer; thank you!

  • @ShahinHemmati2020
    @ShahinHemmati2020 Жыл бұрын

    Short and to the point. thank you 👍

  • @KodeKloud

    @KodeKloud

    Жыл бұрын

    Thanks for appreciating our work. Cheers!

  • @yasithawijethunga5742
    @yasithawijethunga5742 Жыл бұрын

    Short and clear. Thank You 👌

  • @KodeKloud

    @KodeKloud

    Жыл бұрын

    Glad it was helpful!

  • @ramya.balu18
    @ramya.balu187 ай бұрын

    Wonderful explaination!!

  • @KodeKloud

    @KodeKloud

    4 ай бұрын

    Hope you enjoyed our video! We have a ton more videos like this on our channel. We hope you will join our community!

  • @LinuxForLife
    @LinuxForLife11 ай бұрын

    Very interesting! No useless comments ... Nice! May be another one with Docker? 👍

  • @KodeKloud

    @KodeKloud

    11 ай бұрын

    Great suggestion! We will look into it. Do subscribe to our channel and stay tuned for more.

  • @Michael-bc8nu
    @Michael-bc8nu4 ай бұрын

    I love this. Nice tutorial

  • @KodeKloud

    @KodeKloud

    4 ай бұрын

    Thank you! Cheers!

  • @ravisenevirathne
    @ravisenevirathne Жыл бұрын

    Clearly explained🙂

  • @KodeKloud

    @KodeKloud

    Жыл бұрын

    Thanks for watching our video and sharing your thoughts. Do subscribe to our channel and stay tuned for more. Cheers!

  • @laminsamba4809
    @laminsamba4809 Жыл бұрын

    Very interesting indeed

  • @KodeKloud

    @KodeKloud

    Жыл бұрын

    Thanks for watching our video and sharing your feedback. Do subscribe to our channel and stay tuned for more. Cheers!

  • @sruthireddy1979
    @sruthireddy19799 ай бұрын

    Very useful... Thank you 🙏

  • @KodeKloud

    @KodeKloud

    9 ай бұрын

    Welcome 😊

  • @sksafikuddinkhan5935
    @sksafikuddinkhan59352 ай бұрын

    What is the post-procrssor in azure/aws to push the Image to blob/s3 storage?

  • @enemarius
    @enemarius9 ай бұрын

    But the new instance name will be the same as the template? I mean the internal os hostname not the cloud vm name.

  • @adithyashetty004
    @adithyashetty004 Жыл бұрын

    We can build custom AMI from an instance through the AWS console, so why use Packer to build images?

  • @KodeKloud

    @KodeKloud

    Жыл бұрын

    There are a lot of advantages, you can read it here: developer.hashicorp.com/packer/docs/intro/why

  • @bernardesk2

    @bernardesk2

    4 ай бұрын

    versioned infrastructure with all changes to the infrastructure mapped, solving the problem of snowflake servers in which no one knows what changed in it, thus making trobleshotting difficult

  • @zaheerkhan8726
    @zaheerkhan8726 Жыл бұрын

    Thanks for the video. Can you also make a video on windows image using ssh communicator to upload files and folders in to the image with file provisioner. I tried it by using winrm but that is damn slow. Tried with ssh communicator but that doesn't work for windows.

  • @KodeKloud

    @KodeKloud

    Жыл бұрын

    Hey Zaheer, thank you for watching our video. We will definitely look into your suggestions. Do subscribe and stay tuned for updates on our channel. Cheers :)

  • @user-qr1hc9wq4b
    @user-qr1hc9wq4b Жыл бұрын

    Hi. Can you help me please? At stage " Waiting for SSH to became available..." i have an error: Error waiting for SSH: Packer experienced an authentication error when trying to connect via SSH. This can happen if your username/password are wrong. You may want to double-check your credentials as part of your debugging process. original error: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain

  • @KodeKloud

    @KodeKloud

    Жыл бұрын

    Hey, give it a try by following this link: stackoverflow.com/questions/70454523/error-waiting-for-ssh-packer-experienced-an-authentication-error-when-trying-to

  • @user-sq6fy1hu6t
    @user-sq6fy1hu6t Жыл бұрын

    Can we expect a full course on packer in kodekloud?

  • @KodeKloud

    @KodeKloud

    Жыл бұрын

    Hey Balamurugan, thank you for watching our video. We will definitely look into your suggestions. Do subscribe and stay tuned for updates on our channel. Cheers :)

  • @sksafikuddinkhan5935
    @sksafikuddinkhan5935 Жыл бұрын

    How provisioner connect to instance

  • @KodeKloud

    @KodeKloud

    Жыл бұрын

    When you configure your Packer template (usually in JSON or HCL format), you specify the SSH key pair that Packer should use to connect to the EC2 instance. The key pair consists of a public key, which is installed on the EC2 instance, and a corresponding private key, which Packer uses to authenticate and establish a secure connection.

  • @sksafikuddinkhan5935
    @sksafikuddinkhan5935 Жыл бұрын

    How ssh connection happens and ansible connect

  • @KodeKloud

    @KodeKloud

    Жыл бұрын

    Once the instance is running, Packer connects to it through SSH (or other communication methods, depending on the provisioner) and runs the defined provisioner scripts or commands.

  • @evrydaylearner
    @evrydaylearner Жыл бұрын

    What is the point of using Packer to create Docker images? Docker can do that seamlessly.

  • @KodeKloud

    @KodeKloud

    Жыл бұрын

    Thanks for watching our video and sharing your thoughts. Do subscribe to our channel and stay tuned for more. Cheers!

  • @akashan6811
    @akashan6811 Жыл бұрын

    Packer is an alternative to Docker??

  • @shahzadansari9728

    @shahzadansari9728

    Жыл бұрын

    Nope , packer is usd to build golden images for VMS

  • @KodeKloud

    @KodeKloud

    Жыл бұрын

    No, Packer is an automated build system to manage the creation of images for containers and virtual machines. It outputs an image that you can then take and run on the platform you require.

  • @farzadmf
    @farzadmf Жыл бұрын

    So, what's the difference between Packer and Terraform? When should we use which?

  • @VirtualizeStuff

    @VirtualizeStuff

    Жыл бұрын

    Hello, You use Packer create your custom AMI then utilize Terraform to deploy an EC2 instance with that custom AMI.

  • @farzadmf

    @farzadmf

    Жыл бұрын

    Nice, thank you for your answer

  • @KodeKloud

    @KodeKloud

    Жыл бұрын

    Hey, you can read it here: stackshare.io/stackups/packer-vs-terraform

  • @NajeebKhan-he1pw
    @NajeebKhan-he1pw Жыл бұрын

    Need packer full fledged course on kodekloud

  • @principe.borodin
    @principe.borodin Жыл бұрын

    How to create lambda images with packer? I tried using ${LAMBDA_TASK_ROOT} like aws docs, but packet not accept...=/ You are my last hope

Келесі