MCPcopy Index your code
hub / github.com/zappa/Zappa / settings

Method settings

zappa/cli.py:2307–2329  ·  view source on GitHub ↗

Create zappa_settings.json configuration with optional command-line arguments and environment variables.

(self)

Source from the content-addressed store, hash-verified

2305 return settings
2306
2307 def settings(self):
2308 """
2309 Create zappa_settings.json configuration with optional command-line arguments and environment variables.
2310 """
2311 import json
2312
2313 # Use the shared settings generation method
2314 try:
2315 config_args = self.vargs.get("config")
2316 settings = self._generate_settings_dict(config_args=config_args)
2317 except ValueError as e:
2318 click.echo(f"Error: {e}", err=True)
2319 return 1
2320
2321 # Output JSON to stdout with sorted keys
2322 try:
2323 json_output = json.dumps(settings, indent=4, sort_keys=True)
2324 click.echo(json_output)
2325 except Exception as e:
2326 click.echo(f"Error: Failed to generate JSON output: {e}", err=True)
2327 return 1
2328
2329 return 0
2330
2331 def certify(self, no_confirm=True, manual=False):
2332 """

Callers 1

handleMethod · 0.95

Calls 1

Tested by

no test coverage detected