MCPcopy Create free account
hub / github.com/dan-v/lambda-nat-proxy / runDeployDryRun

Function runDeployDryRun

cmd/lambda-nat-proxy/cmd_deploy.go:164–184  ·  view source on GitHub ↗
(cfg *config.CLIConfig)

Source from the content-addressed store, hash-verified

162}
163
164func runDeployDryRun(cfg *config.CLIConfig) error {
165 fmt.Println("🔍 Dry run - showing what would be deployed:")
166 fmt.Printf("Stack Name: %s\n", cfg.Deployment.StackName)
167 fmt.Printf("AWS Region: %s\n", cfg.AWS.Region)
168 fmt.Printf("Performance Mode: %s\n", cfg.Deployment.Mode)
169
170 modeConfig := config.GetModeConfigs()[cfg.Deployment.Mode]
171 fmt.Printf("Lambda Memory: %d MB\n", modeConfig.LambdaMemory)
172 fmt.Printf("Lambda Timeout: %d seconds\n", modeConfig.LambdaTimeout)
173 fmt.Printf("Session TTL: %v\n", modeConfig.SessionTTL)
174
175 fmt.Println("\nDeployment steps that would be performed:")
176 fmt.Println("1. Deploy CloudFormation stack with S3 bucket and IAM roles")
177 fmt.Println("2. Build Lambda deployment package")
178 fmt.Println("3. Deploy Lambda function with performance mode settings")
179 fmt.Println("4. Configure S3 bucket notifications to trigger Lambda")
180
181 fmt.Println("\nTo perform actual deployment, run without --dry-run flag")
182
183 return nil
184}
185
186func init() {
187 // Add deploy-specific flags

Callers 1

runDeployFunction · 0.85

Calls 1

GetModeConfigsFunction · 0.92

Tested by

no test coverage detected