Questions tagged [aws-credentials]

68 questions
1
vote
0 answers

The security token included in the request is expired when using ProfileCredentialsProvider

I am connecting to SQS through my Java code, and the connection is required to be alive for more than 60 minutes, as I keep polling a queue for a long time. However the credentials I use seem to expire. How can I keep the credentials alive? Below is…
AnOldSoul
  • 4,017
  • 12
  • 57
  • 118
1
vote
1 answer

Unable to locate credentials when running airflow in docker

I run airflow in docker and has volumes setting as - ~/.aws:/usr/local/airflow/.aws:rw I can see my local ~/.aws/credentials has: [some_profile] aws_access_key_id = xxxxx aws_secret_access_key = xxxxx and I can see the same content in airflow…
processadd
  • 101
  • 3
  • 5
1
vote
0 answers

Github Actions aws-actions/configure-aws-credentials with multiple accounts for deploy and state backend

I'm trying to setup a CI pipeline on Github Actions that could support multiple aws accounts. I have a "dev" account for deploying all the dev infrastructure and an "admin" account in which we manage terraform state (in an S3 bucket) for multiple…
1
vote
2 answers

Error while generating AWS session token using java

I am trying to use session token using AWS sts_client AWSSecurityTokenService sts_client = AWSSecurityTokenServiceClientBuilder.standard() .withEndpointConfiguration(new…
John D
  • 113
  • 3
  • 5
  • 15
1
vote
0 answers

AWS cli: Signature does not match

I've created a new identity for AWS SES (email based) Created SMTP Credentials (following link from the account's dashboard) As a result a new SMTP user with "AmazonSesSendingAccess" permissions is created. Used AWS Access Key ID / AWS Secret…
1
vote
1 answer

Unable to load credentials from any of the providers in the chain

Trying to use S3 client in my ECS app for uploading files into S3 bucket (let's call it bucket1), S3 client is instantiated as follows: import software.amazon.awssdk.services.s3.S3Client; private S3Client getClient(){ return…
1
vote
1 answer

gimme-aws-creds throws error while registering the MFA device

I am trying to configure gimme-aws-creds with below configuration [DEFAULT] okta_org_url = https://xxxxx.okta.com okta_auth_server = client_id = gimme_creds_server = appurl aws_appname = aws_rolename = all write_aws_creds = True cred_profile =…
LP13
  • 30,567
  • 53
  • 217
  • 400
1
vote
0 answers

Assuming role in AWS is causing a credentials error

I am trying to use Glue schema registry service in AWS with scala (or java should be useful also) and I tested two ways to assume a role but it results in an error: "Unable to load credentials from any of the providers in the chain…
P3gg
  • 23
  • 4
1
vote
0 answers

How can we get environment variable into Java from AWS CodeBuild?

Check the below image as I already set the Environment Variable with ACCESS and SECRET Key into CodeBuild AWS. And I am trying to get those data into JAVA Project with the below code but unable to get value and get null output. String…
1
vote
2 answers

getting Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1 despite having credentials in config file

I have a typescript/node-based application where the following line of code is throwing an error: const res = await s3.getObject(obj).promise(); The error I'm getting in terminal output is: ❌ Missing credentials in config, if using AWS_CONFIG_FILE,…
Sabo Boz
  • 1,683
  • 4
  • 13
  • 29
1
vote
1 answer

How do I read S3 credentials from a different file name (not called credentials in .aws)?

I am able to upload an object from my local to my cloud S3 bucket when reading from the "credentials" located in .aws however there is a file that is the same format as "credentials" called "tester" for the sake of this question and I cannot get it…
1
vote
1 answer

AWS Aurora serverless DataApi access using custom http call (curl)

I am trying to use aurora serverless data API feature to reduce the db connection time in my serverless application. But building client is taking time. I would like to call rds HTTP service via lambda to get/post data. I came across some was posts…
1
vote
1 answer

botocore.utils [DEBUG] Caught retryable HTTP exception while making metadata service request, could not connect to the endpoint URL

I've read about this question, I have a similar issue, but by printing out the debug info, I got something slightly different, I'm not sure what I'm missing here: When I run the following code, I always gets this error. s3 =…
wawawa
  • 2,835
  • 6
  • 44
  • 105
1
vote
1 answer

Unable to load credentials from system settings. AWS_ACCESS_KEY_ID

I am new to AWS, And I have developed a Lambda function with to Encrypt and decrypt with the KmsClient. And this is how i am building the KmsClient with aws reagion, final KmsClient kmsClient = KmsClient.builder().region(awsRegion).build(); I am…
0
votes
1 answer

Connecting to OpenSearchService fails with the message: Request failed: [security_exception] authentication/authorization failure

I am trying to connect to OpenSearchService via Java SDK deployed on EC2 instance. I have tried setting the credentials via aws configure but I am getting the following error message: Servlet.service() for servlet [dispatcherServlet] in context with…