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

  Рет қаралды 21,560

KodeKloud

KodeKloud

Күн бұрын

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/

Пікірлер: 43
@mejiger
@mejiger Ай бұрын
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.balu18 6 ай бұрын
Wonderful explaination!!
@KodeKloud
@KodeKloud 3 ай бұрын
Hope you enjoyed our video! We have a ton more videos like this on our channel. We hope you will join our community!
@Michael-bc8nu
@Michael-bc8nu 3 ай бұрын
I love this. Nice tutorial
@KodeKloud
@KodeKloud 3 ай бұрын
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!
@LinuxForLife
@LinuxForLife 9 ай бұрын
Very interesting! No useless comments ... Nice! May be another one with Docker? 👍
@KodeKloud
@KodeKloud 9 ай бұрын
Great suggestion! We will look into it. Do subscribe to our channel and stay tuned for more.
@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
@sruthireddy1979 7 ай бұрын
Very useful... Thank you 🙏
@KodeKloud
@KodeKloud 7 ай бұрын
Welcome 😊
@sksafikuddinkhan5935
@sksafikuddinkhan5935 Ай бұрын
What is the post-procrssor in azure/aws to push the Image to blob/s3 storage?
@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 :)
@enemarius
@enemarius 7 ай бұрын
But the new instance name will be the same as the template? I mean the internal os hostname not the cloud vm name.
@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 :)
@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 3 ай бұрын
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
@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
@sksafikuddinkhan5935
@sksafikuddinkhan5935 11 ай бұрын
How provisioner connect to instance
@KodeKloud
@KodeKloud 10 ай бұрын
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.
@evrydaylearner
@evrydaylearner Жыл бұрын
What is the point of using Packer to create Docker images? Docker can do that seamlessly.
@KodeKloud
@KodeKloud 11 ай бұрын
Thanks for watching our video and sharing your thoughts. Do subscribe to our channel and stay tuned for more. Cheers!
@sksafikuddinkhan5935
@sksafikuddinkhan5935 11 ай бұрын
How ssh connection happens and ansible connect
@KodeKloud
@KodeKloud 10 ай бұрын
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.
@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.
@NajeebKhan-he1pw
@NajeebKhan-he1pw Жыл бұрын
Need packer full fledged course on kodekloud
@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
@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
Kubernetes Ingress networking
5:57
Project Calico
Рет қаралды 47 М.
小女孩把路人当成离世的妈妈,太感人了.#short #angel #clown
00:53
3 wheeler new bike fitting
00:19
Ruhul Shorts
Рет қаралды 31 МЛН
How to bring sweets anywhere 😋🍰🍫
00:32
TooTool
Рет қаралды 46 МЛН
Introduction to HCP Packer
13:33
HashiCorp
Рет қаралды 7 М.
Hashicorp Packer Crash Course with Digital Ocean
36:49
Joe Terlecki
Рет қаралды 13 М.
WebAssembly (WASM) vs. Docker - Our Expert Analysis
19:53
KodeKloud
Рет қаралды 89 М.
Intro to Packer with AWS
26:01
Sam Meech-Ward
Рет қаралды 14 М.
Hashicorp Packer Simplified | Build Automated AWS AMI #cloud #aws #devops
57:27
DevOps and Cloud Labs
Рет қаралды 1,8 М.
Docker Crash Course for Absolute Beginners [NEW]
1:07:39
TechWorld with Nana
Рет қаралды 1,5 МЛН
Собаке не повезло🥺 #freekino
0:25
FreeKino
Рет қаралды 2,1 МЛН
Разница в уровнях🔥
0:26
FERMACHI
Рет қаралды 1,9 МЛН
Морская пена 🤯
0:29
FATA MORGANA
Рет қаралды 4,2 МЛН
New trick 😧 did you expect that? 😁
0:10
Andrey Grechka
Рет қаралды 20 МЛН
GET DIRTY ON ONE’S CARDBOARD POTATO CHIPS!#asmr
0:28
HAYATAKU はやたく
Рет қаралды 19 МЛН
Cute 😱🐒🍭💞
0:11
Tuğkan Efe
Рет қаралды 11 МЛН