In this lab, you'll set up a new GitHub repository and upload the application code that will later be deployed to AWS Lambda.
Using Git-based source control is an essential step in the deployment workflow because it ensures your code is versioned and accessible to Jenkins.
This lab should take 5 to 10 minutes to complete.
- Download the exercise files
- Create a GitHub repository
- Upload the code into the repo
- Copy the repo URL
Note
If you've already downloaded the exercise files, you can skip this step!
- Navigate to the home page of the course repository.
- Select Code and choose Download ZIP.
- Extract the contents of the ZIP file to your local system.
- Locate the folder for this lesson:
ch4_deploy_code_to_aws_lambda/04_02_create_a_github_repository_for_the_application_code.
- Log into your GitHub account.
- Go to github.com/new to create a new repository.
- In the Repository name field, enter:
python-api - In the Description field, enter:
Python API - Leave the repository as Public.
- Check the box to Add a README file.
- Check the box to Add .gitignore and select Python from the dropdown.
- Select Create repository to finalize the setup.
- From the new repository page, select Add file and select Upload files.
- Select Choose your files.
- Browse to the extracted exercise files and open the folder:
04_02_create_a_github_repository_for_the_application_code. - Select all files in this folder and select Open.
- Select Commit changes to upload the files to your GitHub repository.
- On the repo homepage, select Code and then select HTTPS.
- Select the stacked squares icon to copy the URL to your system clipboard.
You're now ready to move on to creating the deployment job in Jenkins.
← 04_01 Initialize the deployment target in AWS Lambda | 04_03 Create a freestyle job to deploy code from GitHub, part 1 →