diff --git a/libs/nx-terraform/CHANGELOG.md b/libs/nx-terraform/CHANGELOG.md index c80f946..ce61544 100644 --- a/libs/nx-terraform/CHANGELOG.md +++ b/libs/nx-terraform/CHANGELOG.md @@ -1,5 +1,11 @@ # @arkahna/nx-terraform +## 0.34.5 + +### Patch Changes + +- Removed output from cli commands adding / removing firewall rules, it's noisy + ## 0.34.4 ### Patch Changes diff --git a/libs/nx-terraform/package.json b/libs/nx-terraform/package.json index aa796a9..5e6002a 100644 --- a/libs/nx-terraform/package.json +++ b/libs/nx-terraform/package.json @@ -1,6 +1,6 @@ { "name": "@arkahna/nx-terraform", - "version": "0.34.4", + "version": "0.34.5", "main": "src/index.js", "generators": "./generators.json", "executors": "./executors.json", diff --git a/libs/nx-terraform/src/common/addFirewallRules.ts b/libs/nx-terraform/src/common/addFirewallRules.ts index bba67a0..332d36c 100644 --- a/libs/nx-terraform/src/common/addFirewallRules.ts +++ b/libs/nx-terraform/src/common/addFirewallRules.ts @@ -42,22 +42,18 @@ export async function addFirewallRules({ try { console.log(`Adding firewall rule to ${storageAccountName}`) storageAccountsToRemoveFirewallRules.push(storageAccountName) - await execa( - 'az', - [ - 'storage', - 'account', - 'network-rule', - 'add', - '-g', - resourceGroupName, - '--account-name', - storageAccountName, - '--ip-address', - publicIpv4, - ], - { stdio: 'inherit' }, - ) + await execa('az', [ + 'storage', + 'account', + 'network-rule', + 'add', + '-g', + resourceGroupName, + '--account-name', + storageAccountName, + '--ip-address', + publicIpv4, + ]) // eslint-disable-next-line @typescript-eslint/no-explicit-any } catch (err: any) { console.error('Failed to add network rule to storage', err) @@ -78,19 +74,15 @@ export async function addFirewallRules({ try { console.log(`Adding firewall rule to ${keyVaultName}`) keyVaultsToRemoveFirewallRules.push(keyVaultName) - await execa( - 'az', - [ - 'keyvault', - 'network-rule', - 'add', - '--name', - keyVaultName, - '--ip-address', - publicIpv4, - ], - { stdio: 'inherit' }, - ) + await execa('az', [ + 'keyvault', + 'network-rule', + 'add', + '--name', + keyVaultName, + '--ip-address', + publicIpv4, + ]) // eslint-disable-next-line @typescript-eslint/no-explicit-any } catch (err: any) { console.error('Failed to add network rule to keyvault', err) diff --git a/libs/nx-terraform/src/common/removeFirewallRules.ts b/libs/nx-terraform/src/common/removeFirewallRules.ts index 6bed432..805f7cd 100644 --- a/libs/nx-terraform/src/common/removeFirewallRules.ts +++ b/libs/nx-terraform/src/common/removeFirewallRules.ts @@ -15,19 +15,15 @@ export async function removeFirewallRules({ const ipWithCdir = `${publicIpv4}/32` for (const keyVaultName of removeIpFromKeyVaults) { try { - await execa( - 'az', - [ - 'keyvault', - 'network-rule', - 'remove', - '--name', - keyVaultName, - '--ip-address', - ipWithCdir, - ], - { stdio: 'inherit' }, - ) + await execa('az', [ + 'keyvault', + 'network-rule', + 'remove', + '--name', + keyVaultName, + '--ip-address', + ipWithCdir, + ]) } catch (err) { console.error('Failed to remove network rule from keyvault', err) } @@ -35,22 +31,18 @@ export async function removeFirewallRules({ for (const storageAccount of removeIpFromStorageAccounts) { try { - await execa( - 'az', - [ - 'storage', - 'account', - 'network-rule', - 'remove', - '-g', - resourceGroupName, - '--account-name', - storageAccount, - '--ip-address', - publicIpv4, - ], - { stdio: 'inherit' }, - ) + await execa('az', [ + 'storage', + 'account', + 'network-rule', + 'remove', + '-g', + resourceGroupName, + '--account-name', + storageAccount, + '--ip-address', + publicIpv4, + ]) } catch (err) { console.error( `Failed to remove network rule from storage account ${storageAccount}`,