Skip to content

Commit

Permalink
fix(tagging): Added resource-level tagging in accordance with pr awsl…
Browse files Browse the repository at this point in the history
  • Loading branch information
armenr committed May 6, 2021
1 parent c054bca commit f08c60e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,5 @@ Resources:
ServiceToken: !Ref pFunctionArn
name: !Ref pProjectName
type: !Ref pQuality
latencyMode: !Ref pLatencyMode
latencyMode: !Ref pLatencyMode
tags: {"amplify-video" : "amplify-video"}
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@
"rDistribution" : {
"Type": "AWS::CloudFront::Distribution",
"Properties": {
"Tags" : [{
"Key" : "amplify-video",
"Value" : "amplify-video"
}],
"DistributionConfig": {
"Origins": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ Resources:
rCloudFrontDist:
Type: AWS::CloudFront::Distribution
Properties:
Tags:
- Key: amplify-video
Value: amplify-video
DistributionConfig:
DefaultCacheBehavior:
ForwardedValues:
Expand All @@ -40,8 +43,8 @@ Resources:
TrustedKeyGroups:
- !Ref rCloudFrontKeyGroup
<% } %>
Origins:
-
Origins:
-
DomainName: !Ref pBucketUrl
Id: vodS3Origin
S3OriginConfig:
Expand Down Expand Up @@ -72,4 +75,4 @@ Outputs:
<% } %>
oCFDomain:
Value: !GetAtt rCloudFrontDist.DomainName
Description: Domain for our videos
Description: Domain for our videos
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ async function createJob(eventObject) {
UserMetadata: {},
Role: process.env.MC_ROLE,
Settings: jobSettings,
Tags: { 'amplify-video': 'amplify-video' },
};
await mcClient.createJob(jobParams).promise();
}

0 comments on commit f08c60e

Please sign in to comment.