MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / assertAwsCliAvailable

Function assertAwsCliAvailable

packages/cli/src/commands/lambda/sam.ts:37–45  ·  view source on GitHub ↗

Throws with a clear hint when the `aws` CLI is not on PATH.

()

Source from the content-addressed store, hash-verified

35
36/** Throws with a clear hint when the `aws` CLI is not on PATH. */
37function assertAwsCliAvailable(): void {
38 try {
39 execFileSync("aws", ["--version"], { stdio: "ignore" });
40 } catch {
41 throw new Error(
42 "`aws` CLI not found on PATH. Install from https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html and configure credentials before retrying.",
43 );
44 }
45}
46
47export interface DeployOptions {
48 /** Repository root — the SAM template lives at `examples/aws-lambda/template.yaml` underneath. */

Callers 1

fetchStackOutputsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected