diff --git a/iac/backend.tf b/iac/backend.tf index bc4f08f..7af4972 100644 --- a/iac/backend.tf +++ b/iac/backend.tf @@ -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" } } \ No newline at end of file diff --git a/iac/terraform.tfvars b/iac/terraform.tfvars index 227b718..9c341a1 100644 --- a/iac/terraform.tfvars +++ b/iac/terraform.tfvars @@ -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" diff --git a/src/Saga.Functions/Startup.cs b/src/Saga.Functions/Startup.cs index f012bab..8320768 100644 --- a/src/Saga.Functions/Startup.cs +++ b/src/Saga.Functions/Startup.cs @@ -10,6 +10,8 @@ public class Startup : FunctionsStartup public override void Configure(IFunctionsHostBuilder builder) { builder.Services.AddHttpClient(); + + //adding some changes 1 } } } diff --git a/src/Saga.Functions/local.settings.json b/src/Saga.Functions/local.settings.json new file mode 100644 index 0000000..1eec6ee --- /dev/null +++ b/src/Saga.Functions/local.settings.json @@ -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" + } +} \ No newline at end of file