Skip to content

Commit

Permalink
Config Cron
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Oct 29, 2024
1 parent 19903ea commit 86dd4ca
Show file tree
Hide file tree
Showing 6 changed files with 539 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM bluenviron/mediamtx:1.9.0-ffmpeg

ENV MEDIA_VERSION=1.9.1

RUN apk add bash vim yq
RUN apk add bash vim yq nodejs npm

COPY mediamtx.yml /mediamtx.base.yml

Expand Down
16 changes: 16 additions & 0 deletions cloudformation/lib/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,15 @@ const Resources = {
PolicyName: cf.join('-', [cf.stackName, 'api-policy']),
PolicyDocument: {
Statement: [{
Effect: 'Allow',
Action: [
'ssmmessages:CreateControlChannel',
'ssmmessages:CreateDataChannel',
'ssmmessages:OpenControlChannel',
'ssmmessages:OpenDataChannel'
],
Resource: '*'
},{
Effect: 'Allow',
Action: [
'logs:CreateLogGroup',
Expand All @@ -289,6 +298,7 @@ const Resources = {
TaskDefinition: cf.ref('ServiceTaskDefinition'),
LaunchType: 'FARGATE',
PropagateTags: 'SERVICE',
EnableExecuteCommand: cf.ref('EnableExecute'),
DesiredCount: 1,
NetworkConfiguration: {
AwsvpcConfiguration: {
Expand Down Expand Up @@ -368,6 +378,12 @@ for (const p of PORTS) {

export default cf.merge({
Parameters: {
EnableExecute: {
Description: 'Allow SSH into docker container - should only be enabled for limited debugging',
Type: 'String',
AllowedValues: ['true', 'false'],
Default: 'false'
},
SSLCertificateIdentifier: {
Description: 'ACM SSL Certificate for HTTP Protocol',
Type: 'String'
Expand Down
Loading

0 comments on commit 86dd4ca

Please sign in to comment.