© The Chancellor, Masters and Scholars of The University of Oxford. All rights reserved.
This course is available for multiple cloud providers. Choose your preferred platform:
- Hello Google Cloud
- Hello Microsoft Azure
- Hello Amazon Web Services (⭐ Most popular)
- Hello Oracle Cloud (Coming Soon)
Note: Entries marked with "Coming Soon" are planned versions that are currently under development.
Step 7. Choose a name for your service and deploy it. Default settings like 1 CPU and 2 GB RAM are enough.
Voilà! Access the URL.
You can commit some changes to your repository and watch how the service is updated automatically.
Step 2. If you are using Route 53, then AWS should create the record for you. You don't need to do this step but you might need to delete the records manually when you remove the service.
Don't forget to delete your service when you are no longer using it. You can always redeploy later.
Add the following code in app.py
@app.route("/hello_api")
def hello_api():
return {
"name": "Wrinkle Five Star",
"species": "Duck",
"breed": "American Pekin",
"hatching_date": "2020-09-09",
"sex": "Male"
}
Then test your endpoint
Go to the AWS Console and type "S3" in the search bar
Missing contentAfter a while, it's not fun anymore to wait for deployment. You want to test your changes before.
Step 1. Install git and clone the repository on your local machine
git clone {repository_link}
Step 2. Install Python
https://www.python.org/downloads/
Step 3. Install dependencies
py -m pip install flask
Step 4. Run flask
py -m flask run
Open localhost:5000 in your browser.