Balaji Vajjala's Blog

A DevOps Blog from Trenches

01.09

  • 1.9 Make a change to the infrastructure scripts
    • Learning Objectives
    • Infrastructure
    • EXERCISE: Make a change to an infrastructure script and commit to GitHub.
    • EXERCISE: Make a change to an infrastructure script and commit to GitHub (OPTIONAL).

1.9 Make a change to the infrastructure scripts

Learning Objectives

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

  • Change an existing infrastructure script and commit it to GitHub.

Infrastructure

Slide1

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

  1. From the AWSCLI instance, go to the infrastructure directory of the continuous_integration_example project.
  2. Open the CloudFormation template as shown below.

    “` $ sudo vim target.template

    “`

  3. Make a modification to the contents of the file and save it.

  4. Add the file in Git

    “` $ git add target.template

    “`

  5. Commit the file to Git

    “` $ git commit -m “Modified infrastructure script”

    “`

  6. Push it to the Git master.

    “` $ git push

    “`

EXERCISE: Make a change to an infrastructure script and commit to GitHub (OPTIONAL).

  1. From the AWSCLI instance, go to the templates directory of the devopsinthecloud project.
  2. Open the test file as shown below.

    “` $ sudo vim target.template

    “`

  3. Make a modification to the contents of the file and save it.

  4. Add the file in Git

    “` $ git add target.template

    “`

  5. Commit the file to Git

    “` $ git commit -m “Modified infrastructure script”

    “`

  6. Push it to the Git master.

    “` $ git push

    “`