Skip to content
This repository was archived by the owner on Jan 3, 2024. It is now read-only.

Master #10

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
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: 2 additions & 2 deletions iac/backend.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
terraform {
backend "azurerm" {
# modify the values for the storage account
storage_account_name = "sagaorchestratorstorage"
container_name = "testingterraform"
storage_account_name = "generalusage"
container_name = "terraform"
key = "terraform.tfstate"
}
}
4 changes: 2 additions & 2 deletions iac/terraform.tfvars
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#this is a file with recommended variable names
prefix = "test"
prefix = "testnjb775"
environment = "dev"
location = "eastus"
partition_count = "2"
#failover location MUST be different than location, if same Terraform won't be able to create a Cosmos DB instance
failover_location = "westus"
storage_account_name = "aminesstorage"
azure_function_app = "aminazure-functions"
azure_function_app = "aminazure-function"
2 changes: 2 additions & 0 deletions src/Saga.Functions/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ public class Startup : FunctionsStartup
public override void Configure(IFunctionsHostBuilder builder)
{
builder.Services.AddHttpClient();

//adding some changes 1
}
}
}
36 changes: 36 additions & 0 deletions src/Saga.Functions/local.settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"IsEncrypted": false,
"Values": {
"CosmosDbConnectionString": "AccountEndpoint=https://testnjb775-cosmos-sagalogic-db-70493.documents.azure.com:443/;AccountKey=cNfNr4vXTiSfacwxEX3fty3UCGoRxLAVUEUYWBpiRrClJ9q2PPDQyUaw0AQvYIgRw6shehJmlwZBYUT2HytgMQ==;",
"CosmosDbDatabaseName": "testnjb775-cosmos-sql-db",
"CosmosDbOrchestratorCollectionName": "orchestrator",
"CosmosDbValidatorCollectionName": "validator",
"CosmosDbTransferCollectionName": "transfer",
"CosmosDbReceiptCollectionName": "receipt",
"CosmosDbSagaCollectionName": "saga",

"EventHubsNamespaceConnection": "Endpoint=sb://testnjb775-ehnamespace.servicebus.windows.net/;SharedAccessKeyName=testnjb775-nsauth-rule;SharedAccessKey=qdaNZ4SdXiIIQGl6eFPU/yOfZ9ERzJ3Cadnj11qD+9o=",
"ValidatorEventHubName": "validator",
"TransferEventHubName": "transfer",
"ReceiptEventHubName": "receipt",
"ReplyEventHubName": "saga-reply",

"EventHubsProducerMaxRetryAttempts": 3,
"ActivityMaxRetryAttempts": 3,
"ActivityRetryInterval": 5,

"EventHubsProducerExceptionsAllowedBeforeBreaking": 5,
"EventHubsProducerBreakDuration": 10,

"OrchestratorActivityTimeoutSeconds": 60,
"ValidatorTimeoutSeconds": 60,
"TransferTimeoutSeconds": 60,
"ReceiptTimeoutSeconds": 60,

"CreateRandomReceiptResult": true,
"ReceiptSuccessProbability": 100,

"AzureWebJobsStorage": "DefaultEndpointsProtocol=https;AccountName=testnjb775aminesstorage;AccountKey=eM9de8h7zEymoAmqj2ZXu45DWuu5t/kn+m1+1ogh+PB7ZSctLXB9S4zpa+EvgfQdNZeVSJxO6r7R87pRr9lz/A==;EndpointSuffix=core.windows.net",
"FUNCTIONS_WORKER_RUNTIME": "dotnet"
}
}