FIX: Permissions To s3 And MediaConvert]
Build, Push and Deploy CMS / build-push-deploy (push) Successful in 2m2s
Build, Push and Deploy CMS / build-push-deploy (push) Successful in 2m2s
This commit is contained in:
+5
-4
@@ -5,6 +5,7 @@ import (
|
||||
"fmt"
|
||||
"log"
|
||||
"net/http"
|
||||
"os"
|
||||
"thamanyah/cms/v2/internal/handlers"
|
||||
"thamanyah/cms/v2/internal/services"
|
||||
|
||||
@@ -21,7 +22,7 @@ func main() {
|
||||
|
||||
concreteS3Client := &services.S3Concrete{
|
||||
S3Client: s3.NewFromConfig(config),
|
||||
Bucket: "",
|
||||
Bucket: os.Getenv("S3_BUCKET"),
|
||||
}
|
||||
|
||||
concreteS3Client.AssertSuccessfulConnection(context.Background())
|
||||
@@ -30,9 +31,9 @@ func main() {
|
||||
|
||||
services.MediaConvertClient = &services.MediaConvertConcrete{
|
||||
MediaConvertClient: mediaconvert.NewFromConfig(config),
|
||||
Role: "test",
|
||||
InputBucket: "",
|
||||
OutputBucket: "",
|
||||
Role: os.Getenv("MEDIACONVERT_ROLE_ARN"),
|
||||
InputBucket: os.Getenv("MEDIACONVERT_INPUT_BUCKET"),
|
||||
OutputBucket: os.Getenv("MEDIACONVERT_OUTPUT_BUCKET"),
|
||||
}
|
||||
|
||||
mux := http.NewServeMux()
|
||||
|
||||
Reference in New Issue
Block a user