Skip to content
Advertisement

Tag: aws-fargate

‘Profile file contained no credentials for profile’ error when doing PutItem using AWS Java SDK

I’m trying to put an item into a DynamoDB table using the AWS SDK for Java. I am using the EnhancedPutItem.java example from the docs: When running locally I can put the item successfully, but when I run my application as a task on Fargate, it throws this error: software.amazon.awssdk.core.exception.SdkClientException: Profile file contained no credentials for profile ‘default’: ProfileFile(profilesAndSectionsMap=[]). Answer

Advertisement