AWS Mobile Blog

Deploy to AWS Mobile Hub from your GitHub repository

by Bharath Kumar | on | Permalink | Comments |  Share

AWS Mobile Hub now helps you share your Mobile Hub project configuration template with other developers. With one click, you can import the project configuration from a GitHub repository into the AWS Mobile Hub console and deploy an identical mobile backend. In addition to one-click import, you can export your project configuration, commit to GitHub, and provide your project configuration as a one-click from your GitHub repository.

Importing a shared project configuration from a GitHub repository

Importing a shared project configuration from a GitHub repository

  1. Click the Deploy to AWS Mobile Hub button in the AWS Mobile community discussion GitHub repository. This button imports the shared project configuration to the AWS Mobile Hub console.
  2. You are prompted to sign in if you have not already done so.

Importing a shared project configuration from a GitHub repository

  1. After you sign in, you are prompted to name your imported project. You can accept the default or create your own name.
  2. Click Import project to deploy the backend configuration specified in the imported project configuration file.

Importing a shared project configuration from a GitHub repository

  1. After importing the project, click integrate with my app for the integration instructions. Either download the sample app, which demonstrates each feature, or integrate the AWS Mobile SDK into your own app.

Create a project configuration that can be shared from a GitHub repository

Create a project configuration that can be shared from a GitHub repository

  1. In the AWS Mobile Hub console, hover over the dots in the upper right of the card for the project you want to share.
  2. Select Export(file).
  3. Download the .zip file to your local computer. The .zip file contains a YAML file that has the backend configuration of your exported project.
  4. Check in the .zip file or the YAML file to your GitHub repository.
  5. Add a button to your GitHub repository’s README file with the following information:
<p>
<a target="_blank" href="https://console.aws.amazon.com/mobilehub/home?#/?config=<GITHUB_URL_TO_ZIP_OR_YAML_FILE>">
<span>
    <img height="100%" src="https://s3.amazonaws.com/deploytomh/button-deploy-aws-mh.png"/>
</span>
</a>
</p>
  1. Replace GITHUB_URL_TO_ZIP_OR_YAML_FILE with the actual GitHub URL to the checked-in .zip or YAML file.

Now any developer can import the backend configuration of your exported project from your GitHub repository into the AWS Mobile Hub console and build a mobile application.

For more information, see Cloning, Exporting, and Importing AWS Mobile Hub Projects in the AWS Mobile Hub Developer Guide. As always, feel free to contact us on the AWS Forums if you have questions or issues.