Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/js-kyle/bicep-flex
This is an example project which deploys infrastucture using Azure Bicep.
https://github.com/js-kyle/bicep-flex
Last synced: about 1 month ago
JSON representation
This is an example project which deploys infrastucture using Azure Bicep.
- Host: GitHub
- URL: https://github.com/js-kyle/bicep-flex
- Owner: js-kyle
- Created: 2023-08-16T22:52:05.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-22T07:25:11.000Z (over 1 year ago)
- Last Synced: 2024-10-14T09:16:15.679Z (3 months ago)
- Language: Bicep
- Homepage:
- Size: 285 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bicep Flex 💪
This is an example project which deploys infrastucture using Azure Bicep.
This is a simple starter project which will deploy the following resources to Azure:
- Azure API Gateway (Consumption tier)
This publishes the API to the internet and upholds the API contract defined in `bicep-flex/orders-openapi.yaml`.
- Azure CosmosDB (MongoDB API)
This is a minimal SKU Cosmos which is used to demonstrate functionality within the Orders API
- Azure Function (Consumption tier)
A basic JavaScript Azure Function which connects to the Azure CosmosDB data source for CRUD operations
- Azure Blob Storage
A blob storage account, required as a dependency of Azure Functions.
## Azure Bicep
As the focus of this repository is to demonstrate Azure Bicep, the Infrastructure as code templates can be reviewed in `infrastucture` directory. The below images demonstrates the Bicep modules structure which has been defined.
![Infrastructure diagram](assets/infra.png "Infrastructure")
Once deployed, the resources will be available in Azure, and ready to consume over HTTP.
![Infrastructure diagram](assets/infra2.png "Infrastructure2")
## Installation
Install project dependencies using Yarn
```bash
yarn
```## Prerequisites
You will need to install the Azure CLI, and dependencies of [Azure Bicep.](https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/install)
## Deploying
To deploy the infrastucture to Azure.
```bash
./deploy.sh
```To deploy the Azure Functions code, run
```bash
./release.sh
```