Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ on:
push:
branches:
- main

paths:
- 'terraform/**'

env:
TF_CLOUD_ORGANIZATION: "${{ secrets.TF_CLOUD_ORGANIZATION }}"
TF_API_TOKEN: "${{ secrets.TF_API_TOKEN }}"
Expand Down
8 changes: 4 additions & 4 deletions resume/resume/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ const { CosmosClient } = require("@azure/cosmos");
const { render } = require("jsonresume-theme-elegant"); // Import the theme

module.exports = async function (context, req) {
const endpoint = process.env.COSMOS_DB_ENDPOINT;
const key = process.env.COSMOS_DB_KEY;
const databaseName = process.env.COSMOS_DB_DATABASE;
const containerName = process.env.COSMOS_DB_CONTAINER;
const endpoint = process.env.COSMOS_DB_ENDPOINT; //COSMOS DB endpoint url
const key = process.env.COSMOS_DB_KEY; //COSMOS DB primary key
const databaseName = process.env.COSMOS_DB_DATABASE; //COSMOS DB database name
const containerName = process.env.COSMOS_DB_CONTAINER; //COSMOS DB container name

if (!endpoint || !key || !databaseName || !containerName) {
context.res = {
Expand Down
2 changes: 1 addition & 1 deletion terraform/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# # Output from Azure Functions module
# # Outputs from Azure Functions module
output "function_app_name" {
value = module.azure_functions.function_app_name
description = "Name of the Azure Function App"
Expand Down
Loading