Undoing Git Commits: Revert and Reset Changes

You’ve just committed something. Now what? When you’re working on a project in Git, you may run into situations where you have to revert back to an earlier version of a file or even the entire branch. Learn how to revert commits with Git. In this tutorial, we’ll cover how to revert changes using Git. To revert a single change, you can simply type ‘revert’ followed by the commit number. Let us explain in detail.

Packer Sample Script

In this tutorial, we will explain about a sample script to create an instance, deploy software and create an image from it. Before you run the script, make sure to install aws cli and add your AWS access key and secret key in ~/.aws/credentials file or checkout the Packer Variables tutorial to know different ways to use your AWS credentials with Packer. Simple Packer script to create an instance 1 2 3 4 5 6 7 8 9 { "builders": [{ "type":"amazon-ebs", "source_ami": "ami-12345", "instance_type": "t2.

Packer Definitions

If you’re looking for Packer definitions, then you are looking at the correct article. In this article, we will discuss some basic Packer components and definitions. Let’s jump right in. Packer Components Packer templates consist of 3 components: Builders: [Builders](Builders | Packer by HashiCorp) are used to create machine images as part of image creation process. Builders connect to your cloud/on-prem environment using the access keys, secret keys etc…, connect to your infrastructure and create the template.
Buy Me A Coffee
If you've found my content valuable, please consider buying me a coffee. Thank you!