Skip to content

Commit

Permalink
Private endpoint should actually be in the cluster RG
Browse files Browse the repository at this point in the history
  • Loading branch information
janboll committed Nov 5, 2024
1 parent 033878e commit 6322ba2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
1 change: 0 additions & 1 deletion dev-infrastructure/templates/mgmt-cluster.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ resource eventGridNamespace 'Microsoft.EventGrid/namespaces@2024-06-01-preview'

module eventGrindPrivateEndpoint '../modules/private-endpoint.bicep' = {
name: 'eventGridPrivateEndpoint'
scope: resourceGroup(regionalResourceGroup)
params: {
location: location
serviceType: 'eventgrid'
Expand Down
22 changes: 22 additions & 0 deletions dev-infrastructure/templates/svc-cluster.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -394,3 +394,25 @@ module oidc '../modules/oidc/main.bicep' = {
svcCluster
]
}

//
// E V E N T G R I D P R I V A T E E N D P O I N T C O N N E C T I O N
//

resource eventGridNamespace 'Microsoft.EventGrid/namespaces@2024-06-01-preview' existing = {
name: maestroEventGridNamespacesName
scope: resourceGroup(regionalResourceGroup)
}

module eventGrindPrivateEndpoint '../modules/private-endpoint.bicep' = {
name: 'eventGridPrivateEndpoint'
params: {
location: location
serviceType: 'eventgrid'
subnetIds: [svcCluster.outputs.aksNodeSubnetId]
privateLinkServiceId: eventGridNamespace.id
groupIds: ['topicspace']
privateEndpointDnsZoneName: 'privatelink.ts.eventgrid.azure.net'
vnetId: svcCluster.outputs.aksVnetId
}
}

0 comments on commit 6322ba2

Please sign in to comment.