{"record":{"id":"0a5d9861576312dd","repo":"anomalyco/sst","slug":"aws-provider-not-found","errorCode":null,"errorMessage":"aws provider not found","messagePattern":"aws provider not found","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/server/aws/aws.go","lineNumber":25,"sourceCode":"\t\"sync\"\n\n\t\"github.com/sst/sst/v3/pkg/project\"\n\t\"github.com/sst/sst/v3/pkg/project/provider\"\n)\n\ntype aws struct {\n\tsync.Mutex\n\tproject *project.Project\n}\n\ntype BootstrapInput struct {\n\tRegion string `json:\"region\"`\n}\n\nfunc (a *aws) Bootstrap(input *BootstrapInput, output *provider.AwsBootstrapData) error {\n\tunknown, ok := a.project.Provider(\"aws\")\n\tif !ok {\n\t\treturn fmt.Errorf(\"aws provider not found\")\n\t}\n\texisting := unknown.(*provider.AwsProvider)\n\tdata, err := existing.Bootstrap(input.Region)\n\tif err != nil {\n\t\treturn err\n\t}\n\t*output = *data\n\treturn nil\n}\n\ntype AppsyncInput struct {\n}\ntype AppsyncOutput struct {\n\tHttp     string `json:\"http\"`\n\tRealtime string `json:\"realtime\"`\n}\n\nfunc (a *aws) Appsync(input *AppsyncInput, output *AppsyncOutput) error {","sourceCodeStart":7,"sourceCodeEnd":43,"githubUrl":"https://github.com/anomalyco/sst/blob/a0bd20f762883e72a35caccb4896c42ce5b3f707/pkg/server/aws/aws.go#L7-L43","documentation":"The aws RPC server's `Bootstrap` method looks up the project's Pulumi provider named \"aws\" to fetch bootstrap data (account IDs, endpoints, etc.). If no AWS provider is registered in the current Pulumi project/stack, it returns this error and the RPC call fails.","triggerScenarios":"An `sst.aws.*` component (or custom resource calling Bootstrap RPC) runs in a project/stack where the AWS Pulumi provider was never added — e.g. no AWS resource in the app yet, or the app is configured for a different cloud provider.","commonSituations":"Referencing `sst.aws` helpers in a Cloudflare-only or non-AWS app; provider registration failed earlier so the stack has no `aws` provider; typos in provider configuration preventing registration.","solutions":["Add at least one AWS resource (e.g. `sst.aws.Bucket`) to your app so the AWS provider is registered","Verify AWS credentials/config (`aws configure`, `AWS_PROFILE`) so the provider can initialize","Check the stack state (`pulumi stack`) to confirm the aws provider exists; refresh/redeploy if it was removed","Ensure you're operating on the correct stage/app — not one configured for another provider"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":"// before using sst.aws helpers, verify the stack has an AWS provider\n// e.g. run: pulumi stack export | grep '\"aws\"'\n// or in the app, ensure at least one sst.aws.* resource is defined\nconst hasAwsResource = resources.some(r => r.type.startsWith(\"sst.aws.\"));\nif (!hasAwsResource) throw new Error(\"no AWS resources; aws provider won't be registered\");","typeGuard":null,"tryCatchPattern":"try {\n  await run(\"sst\", [\"deploy\"]);\n} catch (e) {\n  if (/aws provider not found/.test(String(e))) {\n    throw new Error(\"Add an sst.aws.* resource or correct provider config so the AWS Pulumi provider registers\", { cause: e });\n  }\n  throw e;\n}","preventionTips":["Always include at least one AWS resource in apps that call sst.aws RPC helpers","Validate AWS credentials before deploy (`aws sts get-caller-identity`)","Don't mix providers' helpers across apps (e.g. sst.aws helpers in a Cloudflare-only app)"],"tags":["aws","pulumi","provider","rpc","bootstrap"],"backgroundTag":"provider-not-found","analyzedSha":"a0bd20f762883e72a35caccb4896c42ce5b3f707","analyzedAt":"2026-08-30T11:26:00.383Z","schemaVersion":2},"datasetVersion":"2026-08-30T13:17:10.514Z"}