New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connect triggerOnUploadVideoStackery to the Docker ECSTask #1

Merged
merged 1 commit into from Oct 11, 2018
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.
+26 −1
Diff settings

Always

Just for now

Connect triggerOnUploadVideoStackery to the Docker ECSTask

  • Loading branch information...
rupakg committed Oct 11, 2018
commit 0212df39fb566fcab4af304d593421d63352c42e
Copy path View file
@@ -106,6 +106,22 @@ Resources:
Tracing: Active
Policies:
- AWSXrayWriteOnlyAccess
- Statement:
- Effect: Allow
Action:
- ecs:RunTask
- ecs:DescribeTasks
- ecs:StopTask
Resource:
- !Ref dockerTask4259BAF6
- !Sub arn:aws:ecs:${AWS::Region}:${AWS::AccountId}:task/*
- Statement:
- Effect: Allow
Action:
- iam:PassRole
Resource:
- !GetAtt dockerTask4259BAF6ExecutionRole.Arn
- !GetAtt dockerTask4259BAF6TaskRole.Arn
Events:
objectStore6A12D98C:
Type: S3
@@ -114,6 +130,12 @@ Resources:
Events:
- s3:ObjectCreated:*
- s3:ObjectRemoved:*
Environment:
Variables:
DOCKER_TASK_ARN: !Ref dockerTask4259BAF6
DOCKER_TASK_SUBNETS: !Join
- ','
- !Ref DefaultVPCSubnets
Metadata:
StackeryName: triggerOnUploadVideoStackery
functionF9A32476:
@@ -147,4 +169,7 @@ Parameters:
Description: Stack Name (injected by Stackery at deployment time)
StackeryEnvironmentTagName:
Type: String
Description: Environment Name (injected by Stackery at deployment time)
Description: Environment Name (injected by Stackery at deployment time)
DefaultVPCSubnets:
Type: List<AWS::EC2::Subnet::Id>
Description: AWS account-specific default VPC subnets (injected by Stackery at deployment time)
ProTip! Use n and p to navigate between commits in a pull request.