Skip to content

Commit

Permalink
fix(azure): Update defaults for cosmosdb and keyvault (#763)
Browse files Browse the repository at this point in the history
  • Loading branch information
hemalshah-gradientedge authored Mar 10, 2025
1 parent 9c05367 commit 7cd2cd7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/lib/azure/services/cosmosdb/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ export class AzureCosmosDbManager {
tags: props.tags ?? {
environment: scope.props.stage,
},
defaultIdentityType: props.defaultIdentityType || 'SystemAssignedIdentity',
identity: props.identity || {
type: 'SystemAssigned',
},
})

createAzureTfOutput(`${id}-cosmosdbAccountName`, scope, cosmosdbAccount.name)
Expand Down
4 changes: 3 additions & 1 deletion src/lib/azure/services/key-vault/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ export class AzureKeyVaultManager {
name: scope.resourceNameFormatter.format(props.name, scope.props.resourceNameOptions?.keyVault),
location: resourceGroup.location,
resourceGroupName: resourceGroup.name,
skuName: props.skuName ?? 'standard',
skuName: props.skuName || 'standard',
enableRbacAuthorization: props.enableRbacAuthorization || true,
softDeleteRetentionDays: props.softDeleteRetentionDays || 90,
tags: props.tags ?? {
environment: scope.props.stage,
},
Expand Down

0 comments on commit 7cd2cd7

Please sign in to comment.