fix: bind S3 credentials to correct environment variables to fix 403 Access Denied

This commit is contained in:
vithobaa 2026-06-30 11:27:04 +05:30
parent 67a3d46138
commit c1410a126e
1 changed files with 4 additions and 4 deletions

View File

@ -14,16 +14,16 @@ import jakarta.annotation.PostConstruct;
@Service
public class S3Service {
@Value("${aws.s3.bucket:autopilot}")
@Value("${S3_BUCKET_NAME:autopilot-screenshots}")
private String bucketName;
@Value("${aws.region:ap-south-1}")
@Value("${AWS_REGION:ap-south-1}")
private String region;
@Value("${aws.access-key:}")
@Value("${AWS_ACCESS_KEY_ID:}")
private String accessKey;
@Value("${aws.secret-key:}")
@Value("${AWS_SECRET_ACCESS_KEY:}")
private String secretKey;
private S3Client s3Client;