草庐IT

amazon-ec

全部标签

amazon-web-services - golang in goland kinesis.GetRecordsInput is not found while 方法是?

为什么找不到GetRecordsInput?编译不通过的可能原因是什么?谢谢 最佳答案 Ohhhhhhhh,如果你有这样的变量kinesis:={whatever}好吧,你只是把自己搞砸了!!!但当然会增加困惑kinesis.GetRecords工作得很好。在我尝试一些古怪的东西并跳出框框思考之前,这花了我一个小时的时间来研究。咕噜咕噜。 关于amazon-web-services-golangingolandkinesis.GetRecordsInputisnotfoundwhile方

amazon-web-services - 我无法读取环境变量(Go 中的 aws-lambda)

我想使用DynamoDBLocal和SAMCLI在本地环境中测试AWSLambda。我创建了一个简单的用户数据库表(id,名称),我正在尝试获取数据。我运行“samlocalstart-api--env-varstest/env.json”。当我访问“http://localhost:3000/users/1”时,发生错误。错误信息如下。我无法理解此错误消息的含义。如何修复此错误?{"errorMessage":"InvalidParameter:1validationerror(s)found.\n-minimumfieldsizeof3,GetItemInput.TableName

amazon-web-services - 尝试调用 Go AWS Lambda 函数时权限被拒绝

我创建了一个AWSLambda函数,我正在使用Webhook调用APIGateway以下是我使用gobuild-omain.go构建的代码,因为我一直在阅读您必须指定扩展名。packagemainimport("context""fmt""github.com/aws/aws-lambda-go/lambda")funcHandleRequest(ctxcontext.Context)(string,error){returnfmt.Sprintf("Hello!"),nil}funcmain(){lambda.Start(HandleRequest)}问题是即使我有publicper

amazon-web-services - 尝试在本地访问 DynamoDB 时超时

这个问题在这里已经有了答案:DynamoDBLocal-ConnectionRefused(5个答案)关闭3年前。我可以使用我的代码访问AWS上的DynamoDB。我可以使用CLI访问本地DynamoDB。但我无法让两者相互交谈。#deployingdynamodbdockerrun\--detach\--tty\--interactive\--publish8000:8000\--namelokal_dynamodbamazon/dynamodb-local#deployingGowithSAMsamlocalstart-api\--templatesam/template.yaml

amazon-web-services - "MissingRegion": could not find region configuration, 但我在 ~/.aws.config 中有它

我的代码:sess=session.Must(session.NewSessionWithOptions(session.Options{Profile:"gms-ai",}))我的~/.aws/config:[default]output=jsonregion=us-east-1[profilegms-ai]output=jsonregion=us-east-2但是例如,这是我的部署脚本中的工作片段:AWS_PROFILE=gms-ai\awslambdaupdate-function-code...看起来awscli确实读取了region但AWSSDK忽略了它?

STM32+EC20实现4G无线通信

EC20是一款集成度非常高的4G无线通信模块,支持多种常见通信频段,能满足几乎所有的M2M(MachinetoMachine)应用需求。模块支持TCP/UDP/FTP等一众网络协议,内置多星座高精度定位GNSS接收机,快速提供准确的经纬度信息,UART接口提供AT命令控制和数据传输。物联网很多的网关设备因需要会安装在有线网络不易布到线的地方,而有些网关则需要跟着运输工具一起移动,那么就需要产品实现与上位机服务器进行无线通信,而4G的无线通信模块就提供了一种非常便利的实现。本例使用了FreeRTOS作为实时操作系统,嵌入式代码运行在FreeRTOS之上,使用提供系统调用完成了多任务编程。目录概念

amazon-web-services - goamz/sqs/md5.go :57: undefined: md5. 求和问题

我正在尝试在http://www.nitrous.io上操纵awssqs带有golang版本go1.1.1linux/amd64的盒子。当我从这个github存储库导入sqs模块时https://github.com/crowdmob/goamz/tree/master/sqs我用运行我的代码gorunmyCode.go我遇到这个问题:#github.com/crowdmob/goamz/sqs../src/github.com/crowdmob/goamz/sqs/md5.go:57:undefined:md5.Sum我对该模块的调用是这样的:import"github.com/cr

amazon-web-services - 让 Beego 在 AWS 上工作

我目前正在寻找一个可以阅读有关在AWS上运行Beego(或类似的Golang)框架的地方。有谁知道一个地方吗? 最佳答案 你有一个(Japanese-googletranslated)tutorial将Beego安装到AWS。除了安装git、go和beego外,没有什么特别的sudoyuminstallgitmercurialyuminstallld-linux.so.2#Runcurl-L-Ohttps://go.googlecode.com/files/go1.2.1.linux-386.tar.gzasroottarzxvfg

amazon-web-services - 使用非默认 VPC (aws-sdk-go) 时无法调用 ec2.AuthorizeSecurityGroupIngressInput

运行下面的代码时,出现错误信息InvalidGroup.NotFoundThesecuritygroup'OddName'doesnotexistindefaultVPC'vpc-2468'这是正确的VPC名称,但不是查看sg-1357时会看到的VPCID。这是一个请求错误,而不是aws错误,所以它至少走到了这一步。从命令行这有效:awsec2authorize-security-group-ingress--group-idsg-1357--cidr127.0.0.1/32--protocoltcp--port443我可以确认ip已添加。修改sdkongithub中的示例代码,以下会

amazon-web-services - 无法使用 Golang 生成亚马逊产品 API 签名

帮助。使用Amazon和Go提供的测试参数无法得到正确的签名。我的签名哈希函数如下。我根据Amazon文档使用SHA-256和base64编码。funcHashSignature(strstring,secretstring)string{mac:=hmac.New(sha256.New,[]byte(secret))_,err:=mac.Write([]byte(str))iferr!=nil{return""}hash:=base64.StdEncoding.EncodeToString(mac.Sum(nil))hash=url.QueryEscape(hash)returnha