All Questions
Tagged with sdk amazon-web-services
368
questions
1
vote
1
answer
19
views
Getting 'Could not load credentials from any providers' error while using AWS-SDK in node.js
I am writing a code to copy a file from one to another and here is the code
Here i am using the code to first find if a file exists and if doesnt it makes one by copying files from one to the other
...
0
votes
1
answer
24
views
invoking getUser from CognitoIdentityProviderClient using PHP SDK gives: Error retrieving credentials from the instance profile metadata service
I am working on an AWS Cognito Authentication solution for my website. I have had the initial code working for some time and now I want to add the ability for a user to see their email and other user ...
1
vote
1
answer
31
views
aws sdk go secretsmanager list with filters V1 and V2
How can I properly apply the filters in the function ListSecrets
v1 example
func GetSecretManagerList(svc secretsmanageriface.SecretsManagerAPI) (*secretsmanager.ListSecretsOutput, error) {
var ...
0
votes
1
answer
26
views
ProjectionExpression in AWS queryCommand gives ValidationException using AWS javascript SDK v3
I am writing some test code that accesses DynamoDB through the AWS javascript SDK v3.
I have a simple table called Projects with UserId as the Partition key and Name as the Sort Key.
The only other ...
0
votes
1
answer
62
views
Which Authentication Mode for Programmatically Uploading Files to S3 Bucket
I have never done this before. What I am trying to do is allow customers, who have already authenticated themselves on my own website, to upload files to an S3 bucket via a dashboard on my own website....
0
votes
0
answers
41
views
Test if pointer to AWS Golang SDK struct is null/exits
Using this code:
for _, region := range availableRegions.Regions {
fmt.Println("Region Name :", *region.RegionName)
ec2Client := ec2.NewFromConfig(cfg, func(o *ec2.Options) ...
1
vote
1
answer
39
views
Parsing/comparing values from paginator in AWS Golang SDK
I am trying to do what is shown here but for DescribeNetworkInterfaces for all regions in the account using a paginator. The following code doesn't compile:
import (
"context"
"...
0
votes
0
answers
199
views
Uncaught InvalidArgumentException: Found 1 error while validating the input provided for the PutObject operation: got this error while uploading image
Fatal error: Uncaught InvalidArgumentException: Found 1 error while validating the input provided for the PutObject operation:
[Body] must be an fopen resource, a GuzzleHttp\Stream\StreamInterface ...
1
vote
1
answer
128
views
AWS S3 SelectObjectContent not returning results in AWS SDK v2 for Go
I'm having difficulty getting SelectObjectContent to return any details. The frustrating part is that the query works in the console.
My test object is a simple JSON file stored in a test bucket:
{
&...
0
votes
0
answers
29
views
Analyzing Variances between AWS Dashboard Display and Cost Explorer SDK Calculations
There is a slight difference between the cost shown in the AWS dashboard and the cost obtained when calculating the monthly cost through the AWS cost explorer SDK. What could be the reason for that?
...
0
votes
0
answers
59
views
this.connect error from microsoft pronunciation assessment sdk
I am using Azure's pronunciation assessment sdk for a service I am developing. I am currently saving audio files in lambda's tmp folder for ephemeral access. My code works fine on my local environment ...
0
votes
0
answers
17
views
Databricks SDK Cannot Get Run_Job Information (13.3 Spark Version)
I have python code that runs from a Notebook and clones our Databricks workflows. It works correctly when using Spark Version 12.2. But when we try to clone our workflows on Spark Version 13.3, it ...
0
votes
1
answer
41
views
AWS API Create instance in non default VPC with Java SDK
I am using Java SDK for AWS and and trying to create a service that can create/mange instances. As part of this I want to create an EC2 instance in a specific VPC (non-default). There may have more ...
0
votes
1
answer
67
views
Error when execute code for Boto3 with AWS
I'm working on a python code to use the Boto3SDK to speak with AWS but i have some error, i'm a newbie in python.
This is the code :
import logging
from botocore.exceptions import ClientError
logger = ...
1
vote
2
answers
3k
views
Can AWS SSO tokens be refreshed (by doing a browser login) automatically?
I have a Ruby application using the AWS SDK Ruby v3, and recent I've added support for using SSO profiles instead of static "key ID + secret" configuration.
The new setup works well for a ...