Questions tagged [aws-sdk-net]

Anytime you've some question/problem using AWS SDK for .NET . It's the official package to work with AWS services using .NET

AWS SDK for .NET. The SDK helps take the complexity out of coding by providing .NET APIs for AWS services including Amazon S3, Amazon EC2, Amazon DynamoDB and more. The SDK can be downloaded from NuGet or installed using the MSI package, which also includes the AWS Toolkit for Microsoft Visual Studio 2013 and 2015 editions and the AWS Tools for Windows PowerShell.

NuGet is the recommended way to install AWS SDK for .NET packages. NuGet Package Manager will install the correct assemblies for your project type - .NET 3.5, 4.5, or Portable Class Library.

Official Doc

238 questions
0
votes
2 answers

AWS gets empty SSM parameter list from LocalStack

I have some SSM parameters stored in LocalStack, but when the application runs is unable of getting the parameters, although the parameters are there. The app log even says: [AWSSDK] Found AWS credentials for the profile local The parameters are…
0
votes
1 answer

Get AWS certificate name and value (ACM)

I'm trying to fetch a certificate with a status of pending in order to get CNAME value and name (to store it somewhere). AWS .NET SDK docs says that name and value return only when certificate is ISSUED. Is there a way to fetch name and value when…
Niv Navick
  • 192
  • 1
  • 4
  • 13
0
votes
1 answer

Is there API / SDK support for the credits section in AWS?

Is there API support for the credits section in AWS? I am interested in redeeming credit programmatically via a promotion code. I have looked through the .NET SDK documentation and developer’s guide and it seems that credits are not included in the…
0
votes
1 answer

What permissions would let me upload with a MultiPartUploadRequest but not with TransferUtility.Upload?

I am trying to upload a file to an S3 bucket using AWSSDK.S3. I am trying to use the TransferUtility.UploadAsync() method, as this is what we are using to upload files to other buckets, using other AWS credentials. However, when I use that here I am…
David Jacobsen
  • 454
  • 3
  • 20
0
votes
1 answer

Get current AWS profile using .Net SDK

In a C# project being executed on the development machine, I want to get the AWS region for my current AWS profile. I've seen the credential and profile resolution documentation and would rather not reimplement this if I can avoid it. In bash I…
Hand-E-Food
  • 12,368
  • 8
  • 45
  • 80
0
votes
1 answer

AWS Route53 Recovery Controller error when getting or updating the control state using .net

I am trying to get Amazon's Route53 Recovery Controller to update control states from a .net application and I keep getting an error. I see on the documentation that I need to set the region and cluster endpoint, but I can't figure out how to do…
0
votes
0 answers

Update from .NET Core 2.1 to .NET Core 3.1: Using Terraform 0.12.31 to build out the AWS Resources: AWS IoT Publish now throws SSL Error

I am doing an upgrade from .NET Core 2.1 to .NET Core 3.1. I have upgraded my projects to use .NET Core 3.1. I am using the AWS IoT package described below
0
votes
0 answers

Python Boto3 to Aws Sdk for blob storage

This code retrieves the buckets of a Amazon S3-compatible storage (not Amazon AWS but the Zadara compatible cloud storage) and IT WORKS: import boto3 from botocore.client import Config session = boto3.session.Session( ) s3_client =…
max_s
  • 83
  • 1
  • 8
0
votes
1 answer

Using VPC Endpoint for DynamoDB with Amazon.DynamoDBv2

I have a .Net core app hosted on Elastic beanstalk currently using DynamoDB with AWSSDK.DynamoDBv2 package and from what i understand, connection to dynamodb will happen over public internet unless i use the dynamodb vpc gateway endpoint. How can i…
user2650277
  • 6,289
  • 17
  • 63
  • 132
0
votes
1 answer

Using memory stream instead of filestream for AWS C# S3 SDK not writing full file to S3

I have some code that is meant to create a file on AWS S3 bucket. When I use a file stream it works fine and all the data is present. When I use a memory stream, some of the xml data in the file is missing. Here is the code im running: internal void…
zaidabuhijleh
  • 187
  • 1
  • 10
0
votes
0 answers

Using memory stream instead of filestream for AWS C# S3 SDK not returning full file

I have some code that is meant to retrieve a file from an S3 bucket and deserialize the file. When I use a file stream I get all the data no problem, but when I use a memory stream it seems like I am not getting all of the data: It doesnt get the…
zaidabuhijleh
  • 187
  • 1
  • 10
0
votes
1 answer

difference between reader.ReadToEnd and Stream.Read

When using Amazon S3 client in DotNet, we get an object of GetObjectResponse type which has .ResponseStream property and we can just use StreamReader.ReadToEnd(ResponseStream) to read the contents in one go. But there is also using MemoryStream…
Riz
  • 6,486
  • 19
  • 66
  • 106
0
votes
0 answers

AWS SDK - Get metrics for S3 and SES

My question is simple, but I haven't found much by googling myself. Is there a way to get metrics such as S3 total disk size in a Bucket? Is there a way to get metrics on amount of emails sent per month using SES? I am writing an admin tool where I…
Carlos Jimenez Bermudez
  • 1,070
  • 1
  • 14
  • 36
0
votes
1 answer

Method not found: 'Void Amazon.Runtime.Internal.IRequest.set_DisablePayloadSigning(System.Nullable`1)'

The following code: var _s3Client = new Amazon.S3.AmazonS3Client(RegionEndpoint.EUWest1); Amazon.S3.Model.PutObjectRequest request = new Amazon.S3.Model.PutObjectRequest { BucketName = _bucketName, Key = keyName }; using (FileStream stream =…
Iván Travecedo
  • 75
  • 1
  • 1
  • 8
0
votes
1 answer

What is the AWS SDK API for adding a Resource-based policy to a Lambda function in AWS?

I wasn't able to find it, Googling far and wide... I tried using Amazon.Lambda.AmazonLambdaClient, Amazon.IdentityManagement.AmazonIdentityManagementServiceClient and other APIs with no luck. I am able to read the policy using var policy = await…
Tar
  • 8,529
  • 9
  • 56
  • 127