aws-sdk

Accessing Oracle from AWS Lambda in Python

為{幸葍}努か 提交于 2020-02-23 07:51:10
问题 I am writing (hopefully) a simply AWS Lambda that will do an RDS Oracle SQL SELECT and email the results. So far I have been using the Lambda Management Console, but all the examples I've run across talk about making a Lambda Deployment Package. So my first question is can I do this from the Lambda Management Console? Next question I have is what to import for the Oracle DB API? In all the examples I have seen, they download and build a package with pip, but that would then seem to imply

accessing s3 from lambda within VPC in aws-go-sdk

我的未来我决定 提交于 2020-02-06 04:34:14
问题 I'm just started on using aws-sdk-go and notice that the s3 requests are using http/https rather than s3 protocol. How can I read the object in s3 from my lambda within vpc using aws-sdk-go? And I don't want to use NAT Gateway. I can do this in NodeJS but is there any way for aws-go-sdk to do the same? Thanks! 回答1: To access S3 within a VPC without an internet gateway you need to use a S3 Endpoint 回答2: This code snippet shows how to use aws-go-sdk to list S3 buckets for region us-east-1

accessing s3 from lambda within VPC in aws-go-sdk

最后都变了- 提交于 2020-02-06 04:33:28
问题 I'm just started on using aws-sdk-go and notice that the s3 requests are using http/https rather than s3 protocol. How can I read the object in s3 from my lambda within vpc using aws-sdk-go? And I don't want to use NAT Gateway. I can do this in NodeJS but is there any way for aws-go-sdk to do the same? Thanks! 回答1: To access S3 within a VPC without an internet gateway you need to use a S3 Endpoint 回答2: This code snippet shows how to use aws-go-sdk to list S3 buckets for region us-east-1

Not able to sign in with AWSMobileClient iOS. Getting AWSMobileClientError error 13

两盒软妹~` 提交于 2020-01-25 08:14:06
问题 I'm using the AWSMobileClient on iOS for authentication and I'm not able to sign in. I'm calling the signin method and all I'm getting is the following error: The operation couldn’t be completed. (AWSMobileClient.AWSMobileClientError error 13.) This error is useless to me and I can't find any decent documentation on what this error means. Has anyone seen this? Appreciate your help. 回答1: Please take a look at this https://github.com/aws-amplify/aws-sdk-ios/issues/1538#issuecomment-491905913

Amazon DynamoDB DocumentClient().get() use values outside of function

放肆的年华 提交于 2020-01-25 03:05:27
问题 How can I get data.Item.Name outside of docClient.get() to further use it in other functions. const docClient = new awsSDK.DynamoDB.DocumentClient(); docClient.get(dynamoParams, function (err, data) { if (err) { console.error("failed", JSON.stringify(err, null, 2)); } else { console.log("Successfully read data", JSON.stringify(data, null, 2)); console.log("data.Item.Name: " + data.Item.Name); } }); // how can i use "data.Item.Name" here: console.log(data.Item.Name); return handlerInput

Delete AWS S3 Object using Nodejs Lambda function

寵の児 提交于 2020-01-24 19:44:26
问题 I want to delete AWS S3 Object according to the time of creation using Nodejs Lambda function. I want to delete all objects in a particular folder which are created before 24 hour Now I have tried to delete multiple object which is success but I dnt know how to do it with time var params = { Bucket: s3bucket, Delete: { Objects: [ { Key: 'scheduled_lambda_test/1.png' }, { Key: 'scheduled_lambda_test/2.png' } ] } }; s3.deleteObjects(params, function(err, data) { if (err) console.log(err, err

photos not uploading to s3 bucket using php

二次信任 提交于 2020-01-24 00:32:14
问题 I am trying to upload images to s3 bucket via ec2 instance. But the images are not being uploaded to s3. I could verify that they are getting uploaded to ec2 instance. there is some problem in uploading to s3. I realised that upload function is not working, but I am not sure. I have been trying to solve this since two days. Any help would be really appreciated. EC2 instance is a linux machine. it has cURL and PHP-cURL installed. images are getting saved in the folder "uploads". Amazon SDK are

Retrieve/List objects using metadata in s3 - aws sdk

社会主义新天地 提交于 2020-01-23 10:04:31
问题 I have used User-Defined Metadata data to store the file in S3 bucket. Lets say my meta data would be like metaData = { "title": "some random user title", "description": "some random user description" } I understand that i can download file using the object key and the bucket name. I am looking whether there any way/options to get/retrieve/list the file by passing only the bucket name and User-Defined Metadata used for the object to upload in S3. And also to know the actual usage of User

Retrieve/List objects using metadata in s3 - aws sdk

耗尽温柔 提交于 2020-01-23 10:03:42
问题 I have used User-Defined Metadata data to store the file in S3 bucket. Lets say my meta data would be like metaData = { "title": "some random user title", "description": "some random user description" } I understand that i can download file using the object key and the bucket name. I am looking whether there any way/options to get/retrieve/list the file by passing only the bucket name and User-Defined Metadata used for the object to upload in S3. And also to know the actual usage of User

How to get data from aws Dynamodb with using partition key only?

女生的网名这么多〃 提交于 2020-01-22 14:40:04
问题 I am using aws-sdk-go library for DynamoDb connectivity in Golang. My DynamoDb table have a Partition key DeviceId (String) and a Sort Key Time (Number). How can I write GetItemInput to get all data with a specific DeviceId? params := &dynamodb.GetItemInput{ Key: map[string]*dynamodb.AttributeValue { "DeviceId": { S: aws.String("item_1"), }, }, ExpressionAttributeNames: map[string]*string{ "DeviceId": "DeviceId", }, TableName: aws.String("DbName"), } list, err := svc.GetItem(params) 回答1: You