fix: bind S3 credentials to correct environment variables to fix 403 Access Denied
This commit is contained in:
parent
67a3d46138
commit
c1410a126e
|
|
@ -14,16 +14,16 @@ import jakarta.annotation.PostConstruct;
|
||||||
@Service
|
@Service
|
||||||
public class S3Service {
|
public class S3Service {
|
||||||
|
|
||||||
@Value("${aws.s3.bucket:autopilot}")
|
@Value("${S3_BUCKET_NAME:autopilot-screenshots}")
|
||||||
private String bucketName;
|
private String bucketName;
|
||||||
|
|
||||||
@Value("${aws.region:ap-south-1}")
|
@Value("${AWS_REGION:ap-south-1}")
|
||||||
private String region;
|
private String region;
|
||||||
|
|
||||||
@Value("${aws.access-key:}")
|
@Value("${AWS_ACCESS_KEY_ID:}")
|
||||||
private String accessKey;
|
private String accessKey;
|
||||||
|
|
||||||
@Value("${aws.secret-key:}")
|
@Value("${AWS_SECRET_ACCESS_KEY:}")
|
||||||
private String secretKey;
|
private String secretKey;
|
||||||
|
|
||||||
private S3Client s3Client;
|
private S3Client s3Client;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue