In this section, you will add the API endpoint you have created to the frontend configuration. This allows the frontend application to get the list of rides and attractions via the APIGateway URL which pulls the information from DynamoDB.
After the update, you will commit the changes to the git repo, which will automatically redeploy and republish the application.
This file contains a JSON configuration for the frontend. The file is separated into modules that correspond with the modules in this workshop.
In the MODULE 1 section at the beginning of the file, update the initStateAPI attribute of the API by pasting the API Endpoint URL from the previous section between the two '.
Save the file.

cd ~/environment/theme-park-frontend/
git commit -am "Module 1"
git push
After the commit is completed, go to the Amplify Console. Make sure you are in the correct region.
In the All apps section, click theme-park-frontend. If you are going back to a previously open browser tab, you may need to refresh.
You will see a new build has automatically started as a result of the new commit in the underlying code repo. This build will take a few minutes. Once complete:
The browser may cache an older version of the site - press CTRL+F5 (Windows) or hold down ⌘ Cmd and ⇧ Shift key and then press R (Mac) to perform a hard refresh. This forces the browser to load the latest version.
You can now see the map contains the theme park’s points of interest such as rides and attractions. You can select any of them and find out more.