Category : amazon-s3

I have been using the Aws-sdk-cpp for s3 and had a quick question as to how I could edit the provided CMakeLists.txt file that is provided by aws (https://github.com/awsdocs/aws-doc-sdk-examples/blob/master/cpp/example_code/s3/CMakeLists.txt) to be able to include other headers as I keep running into undefined reference errors. Based off of the provided CMakeLists.txt file it will build any ..

Read more

I have the code below that saves a file locally, uploads it to my s3 bucket, and deletes it after. filename = os.path.join(directory, ‘{}.mp3’.format(name_of_file)) wf = wave.open(filename, ‘wb’) wf.setnchannels(CHANNELS) wf.setsampwidth(self.p.get_sample_size(FORMAT)) wf.setframerate(RATE) wf.writeframes(recording) #this will be wher lambda function will go self.upload_file(filename, bucketName, name_of_file) delete_name = name_of_file name_of_file = file_name wf.close() os.remove(filename) def upload_file(self, file_name, bucket, ..

Read more

I have the code below that saves a file locally, uploads it to my Amazon S3 bucket, and deletes it after. filename = os.path.join(directory, ‘{}.mp3’.format(name_of_file)) wf = wave.open(filename, ‘wb’) wf.setnchannels(CHANNELS) wf.setsampwidth(self.p.get_sample_size(FORMAT)) wf.setframerate(RATE) wf.writeframes(recording) #this will be wher lambda function will go self.upload_file(filename, bucketName, name_of_file) delete_name = name_of_file name_of_file = file_name wf.close() os.remove(filename) def upload_file(self, file_name, ..

Read more

I have the following code snippet. #include <aws/core/Aws.h> #include <aws/core/utils/logging/LogLevel.h> #include <aws/s3/S3Client.h> #include <aws/s3/S3Errors.h> #include <aws/s3/model/SelectObjectContentRequest.h> #include <aws/s3/model/InputSerialization.h> #include <aws/s3/model/ExpressionType.h> #include <aws/s3/model/ParquetInput.h> #include <iostream> using namespace Aws; int main() { //The Aws::SDKOptions struct contains SDK configuration options. //An instance of Aws::SDKOptions is passed to the Aws::InitAPI and //Aws::ShutdownAPI methods. The same instance should be sent ..

Read more