generated from jsburckhardt/getting-started
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
24 lines (22 loc) · 857 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
PREFIX ?= sac
deploy:
az deployment sub create --name secure-azure-connection \
--location eastus2 \
--template-file src/infra/main.bicep \
--parameters src/infra/main.bicepparam \
--parameters identifier=$(PREFIX) \
--parameters location=eastus2 \
--parameters newVpnGateway=true \
--parameters newPrivateDnsResolver=true
links:
az deployment sub show --name secure-azure-connection --query properties.outputs > vpn.output.json
@export $$(cat .env | xargs) && \
vpnVnetId=$$(jq -r '.vnetId.value' vpn.output.json); \
hubResourGroupName=$$HUB_VNET_RG; \
az deployment group create --name vpnlinks \
--resource-group $$hubResourGroupName \
--template-file src/infra/linkVpnVnet.bicep \
--parameters vnetId=$$vpnVnetId \
--parameters linkConfig=@src/infra/linkConfigs.json
configure:
./src/scripts/configure-vnet.sh