Questions tagged [aws-credentials]
68 questions
29
votes
5 answers
How to make Terraform to read AWS Credentials file?
I am trying to create an AWS S3 bucket using terraform and this is my code:
provider "aws" {
profile = "default"
region = "ap-south-1"
}
resource "aws_s3_bucket" "first_tf" {
bucket = "svk-pl-2909202022"
acl = "private"
}
I have…

Souvik paul
- 403
- 1
- 6
- 10
12
votes
3 answers
Ways to find out how soon the AWS session expires?
Prerequisites
I have a script that works with AWS but does not deal with credentials explicitly. It just calls AWS API, expecting the credentials to be there according to default credentials provider chain. In fact, the wrapper that calls this…

Vlad Nikiforov
- 6,052
- 1
- 12
- 18
6
votes
2 answers
Jib: how to use amazon-ecr-credential-helper without installing it?
When using jib-gradle-plugin to build and push to AWS ECR, it requires me to install aws ecr credential helper otherwise the build complains "The system does not have docker-credential-ecr-login CLI".
I am wondering if there is a way to push to AWS…

Xinchao
- 2,929
- 1
- 24
- 39
3
votes
3 answers
Access AWS session token from profile with DefaultCredentialsProvider
My AWS profile in ~/.aws/credentials contains session credentials created by STS.
[default]
aws_session_token=XXX
aws_access_key_id=XXX
aws_secret_access_key=XXX
I am trying to access these credentials using the AWS SDK Java v2
Using the…

user5633550
- 95
- 2
- 6
2
votes
2 answers
How to reset AWS CLI credentials
I created a user in IAM service. and then I entered AWS configure command and entered user access key and secret key and region correctly. but the default account is not changing according to entered details. after that, I deleted .aws/credentials…

amila upendra
- 29
- 4
2
votes
0 answers
Failing to recognize AWS credentials when using a IAM Identity Center SSO enabled named profile
I am attempting to configure AWS credentials using IAM Identity Center SSO token provider, but I am getting this error Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1
This is my current ~/.aws/config setup
[profile…

trynaLearn
- 21
- 3
2
votes
1 answer
Jenkins AWS Credentials plugin does not work
I have faced issue with a Jenkins.
Some details:
I am using AWS Credentials 1.33 plugin
Role was created in AWS IAM. (Action : "sts:AssumeRole")
Policy was applied to that role. (Action : "ec2:Describe*")
Credentials storing in Jenkins
Stage…

leotim
- 61
- 1
- 1
- 7
2
votes
1 answer
How do I obtain an Access Token from an Unauthenticated Cognito Identity
I am dealing with a unauthenticated identity, via Cognito and the identity pool.
Here is what I am doing (via Rest API calls):
AWSCognitoIdentityService.GetId -- to register the identity
AWSCognitoIdentityService.GetCredentialsForIdentity -- return…

Colin Schofield
- 139
- 1
- 13
2
votes
1 answer
Getting “ Unable to get IAM security credentials from EC2 Instance Metadata Service.” after installing AWS CLI v2
I’m running Visual Studio 2019 with the AWS Explorer installed with a profile on an Amazon Workspace. Until today, I’ve been able to debug Lambda projects locally using the AWS .NET Core 3.1 Mock Lambda Test Tool. Today, I needed to do some CLI work…

Jay
- 624
- 1
- 6
- 19
2
votes
1 answer
botocore.exceptions.ProfileNotFound - Pass AWS credentials to docker image
This seems to be an issue many people have faced but the solutions I tried haven't solved it:
I have a python app that I dockerized and that I want to push to an EC2 container, however, once dockerized, the app has issues (locally) to access my AWS…

Santeau
- 839
- 3
- 13
- 23
2
votes
3 answers
Providing AWS_PROFILE when reading S3 files with Spark
I want my Spark app (Scala) to be able to read S3 files
spark.read.parquet("s3://my-bucket-name/my-object-key")
On my dev machine, I could access S3 files using awscli a pre-configured profile in ~/.aws/config or ~/.aws/credentials, like:
aws…

Averell
- 793
- 2
- 10
- 21
2
votes
0 answers
How to authenticate to AWS using Java SDK and SSO
I am trying to find sample code to authenticate to AWS using the Java SDK (auth via SSO).
If anyone has done this and could please share, that would help.

user10664542
- 1,106
- 1
- 23
- 43
2
votes
1 answer
How to use aws credentials using cypress
I'm currently having difficulty finding a way to integrate my AWS credentials into my cypress tests when running cypress tests. The static approach works in hardcording your credentials into config.update . However I wish to opt for a more dynamic…

Qaleem Hussain
- 64
- 7
2
votes
2 answers
How to use AWS cli to get access keys in an MFA context?
I'm developing a simple app that will run on an existing EC2 instance. The AWS account is secured with MFA. We use a main account and assume a role into our target account for personal access.
The app only deals with the MFA when I'm developing…

Josh Russo
- 3,080
- 2
- 41
- 62
1
vote
1 answer
Spring Boot AWS credentials Unauthorized
I m working on a spring boot application and connecting it with Amazon S3 bucket. It is a simple application for uploading videos on aws.
VideoService Class
@Service
@RequiredArgsConstructor
public class VideoService {
private final S3Service…

Jack
- 13
- 3