Skip to content

Commit

Permalink
move key-vault-cert module to keyvault folder
Browse files Browse the repository at this point in the history
Signed-off-by: Gerd Oberlechner <[email protected]>
  • Loading branch information
geoberle committed Nov 28, 2024
1 parent 098f4b6 commit 5c2bd49
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ param force bool = false
var boolstring = force == false ? '$false' : '$true'
param validityInMonths int = 12

module certificateOfficerAccess 'keyvault/keyvault-secret-access.bicep' = {
module certificateOfficerAccess 'keyvault-secret-access.bicep' = {
name: 'kv-cert-officer-access-${keyVaultName}-${uniqueString(keyVaultManagedIdentityId)}'
params: {
keyVaultName: keyVaultName
Expand All @@ -38,7 +38,7 @@ resource newCertwithRotationKV 'Microsoft.Resources/deploymentScripts@2023-08-01
properties: {
azPowerShellVersion: '12.0.0'
arguments: ' -VaultName ${keyVaultName} -ValidityInMonths ${validityInMonths} -IssuerName ${issuerName} -CertName ${certName} -SubjectName ${subjectName} -DnsNames ${join(dnsNames,'_')} -Force ${boolstring}'
scriptContent: loadTextContent('../scripts/key-vault-cert.ps1')
scriptContent: loadTextContent('../../scripts/key-vault-cert.ps1')
forceUpdateTag: now
cleanupPreference: 'Always'
retentionInterval: 'P1D'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ param certificateAccessManagedIdentityPrincipalId string

var clientAuthenticationName = '${clientName}.${certDomain}'

module clientCertificate '../key-vault-cert.bicep' = {
module clientCertificate '../keyvault/key-vault-cert.bicep' = {
name: '${clientName}-client-cert'
params: {
keyVaultName: keyVaultName
Expand Down
6 changes: 3 additions & 3 deletions dev-infrastructure/templates/mock-identities.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ param globalResourceGroupName string = 'global'
// F I R S T P A R T Y I D E N T I T Y
//

module firstPartyIdentity '../modules/key-vault-cert.bicep' = {
module firstPartyIdentity '../modules/keyvault/key-vault-cert.bicep' = {
name: 'first-party-identity'
params: {
location: location
Expand Down Expand Up @@ -54,7 +54,7 @@ resource customRole 'Microsoft.Authorization/roleDefinitions@2022-04-01' = {
// A R M H E L P E R I D E N T I T Y
//

module armHelperIdentity '../modules/key-vault-cert.bicep' = {
module armHelperIdentity '../modules/keyvault/key-vault-cert.bicep' = {
name: 'arm-helper-identity'
params: {
location: location
Expand All @@ -72,7 +72,7 @@ module armHelperIdentity '../modules/key-vault-cert.bicep' = {
// M S I R P M O CK I D E N T I T Y
//

module msiRPMockIdentity '../modules/key-vault-cert.bicep' = {
module msiRPMockIdentity '../modules/keyvault/key-vault-cert.bicep' = {
name: 'msi-mock-identity'
params: {
location: location
Expand Down

0 comments on commit 5c2bd49

Please sign in to comment.