1.7 Make a change to the infrastructure scripts

Learning Objectives

By the end of this lesson you will be able to:

Make a change to an infrastructure script

Slide1

Make a change to an infrastructure script and commit to GitHub.

  1. From the root directory of your EC2 instance change directory to devopsinthecloud.
  2. $ cd /home/ec2-user/devopsinthecloud/infrastructure/templates
    				
  3. Open the test file as shown below.
    $ sudo vim target.template
    			
  4. Make a modification to the contents of the file and save it.
  5. From the root directory of your EC2 instance change directory to devopsinthecloud.
  6. $ cd /home/ec2-user/devopsinthecloud/
    						
  7. Add the file in Git
    $ git add .
    					
  8. Commit the file to Git
    $ git commit -m "Modified infrastructure script"
    					
  9. Push it to the Git master.
    $ git push