EricYang
EricYang
var AWS = require('aws-sdk'); try{ var csd = new AWS.CloudSearchDomain({endpoint: 'my.host.tld'}); }catch(error){ console.log('error:',error.stack) } TypeError: undefined is not a function at Object. (/home/ec2-user/ericyang/dev/rest/test.js:3:11) at Module._compile (module.js:449:26) at Object.Module._extensions..js (module.js:467:10) at...
I tried to print property of AWS below and I can't found any function about 'CloudSearchDomain'. AWS's property: util,VERSION,ServiceInterface,Signers,XML,Service,Credentials,CredentialProviderChain,TemporaryCredentials,WebIdentityCredentials,SAMLCredentials,Config,config,Endpoint,HttpRequest,HttpResponse,HttpClient,SequentialExecutor,JSON,QueryParamSerializer,EventListeners,Request,Response,ResourceWaiter,ParamValidator,events,NodeHttpClient,SES,IAM,SimpleDB,CloudTrail,ElastiCache,Route53,Support,CloudWatch,ELB,OpsWorks,SWF,EC2,DataPipeline,SQS,RDS,DynamoDB,Glacier,CloudSearch,StorageGateway,AutoScaling,Redshift,STS,CloudFront,SNS,EMR,CloudFormation,ElasticBeanstalk,S3,DirectConnect,ImportExport,ElasticTranscoder,Kinesis,MetadataService,EC2MetadataCredentials,EnvironmentCredentials,FileSystemCredentials
"name": "aws-sdk", "description": "AWS SDK for JavaScript", "version": "2.0.15"
Info as below AWS.VERSION: 2.0.0-rc.14 node: v0.8.1 os:Linux xxxxxx.amzn1.x86_64 #1 SMP Wed Apr 2 09:36:59 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
its weird, I tried to update sdk sudo npm install [email protected] but I found the AWS.VERSION is still 2.0.0-rc.14
Oh I'm sorry that I update the sdk from wrong path!! orz....sorry Thank you very much.
got it! thanks.^^