UNPKG

skeet

Version:

Full-stack TypeScript Serverless Framework

24 lines (22 loc) 526 B
import { execSyncCmd } from '@/lib/execSyncCmd' import { getNetworkConfig } from '@/lib/getNetworkConfig' export const deleteSecurityPolicyRule = async ( projectId: string, appName: string, priority: string = '1000' ) => { const appConf = await getNetworkConfig(projectId, appName) const shCmd = [ 'gcloud', 'compute', 'security-policies', 'rules', 'delete', priority, '--security-policy', appConf.securityPolicyName, '--project', projectId, ] await execSyncCmd(shCmd) }