FEAT: Provisioned MediaConvert Queue
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"encoding/json"
|
||||
|
||||
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/cloudfront"
|
||||
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/mediaconvert"
|
||||
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/s3"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
@@ -109,6 +110,16 @@ func main() {
|
||||
return err
|
||||
}
|
||||
|
||||
_, err = mediaconvert.NewQueue(ctx, "awsQueueResource", &mediaconvert.QueueArgs{
|
||||
ConcurrentJobs: pulumi.Int(3),
|
||||
Name: pulumi.String("main-transcoding-queue"),
|
||||
PricingPlan: pulumi.String("ON-DEMAND"),
|
||||
Status: pulumi.String("ACTIVE"),
|
||||
})
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// Export the name of the bucket
|
||||
ctx.Export("bucketName", bucket.ID())
|
||||
ctx.Export("cdnDomainName", distribution.DomainName)
|
||||
|
||||
Reference in New Issue
Block a user