@@ -7,7 +7,6 @@ exports[`The LiveActivities stack matches the snapshot for CODE 1`] = `
77 " GuDistributionBucketParameter" ,
88 " GuLambdaFunction" ,
99 " GuLambdaFunction" ,
10- " GuLambdaFunction" ,
1110 ],
1211 " gu:cdk:version" : " TEST" ,
1312 },
@@ -46,13 +45,16 @@ exports[`The LiveActivities stack matches the snapshot for CODE 1`] = `
4645 },
4746 " liveGameEventsTargetingA85C7B8B" : {
4847 " Properties" : {
49- " Description" : " Deliver live game events from PA polling lambda CODE to liveGameTestingQueue" ,
48+ " Description" : " Deliver live match events in CODE to liveGameTestingQueue" ,
5049 " EventBusName" : {
5150 " Ref" : " EventsD32975C2" ,
5251 },
5352 " EventPattern" : {
53+ " detail-type" : [
54+ " football-match-events-with-articleId" ,
55+ ],
5456 " source" : [
55- " pa-live-game-updates " ,
57+ " football-lambda " ,
5658 ],
5759 },
5860 " State" : " DISABLED" ,
@@ -700,231 +702,6 @@ exports[`The LiveActivities stack matches the snapshot for CODE 1`] = `
700702 },
701703 " Type" : " AWS::SQS::QueuePolicy" ,
702704 },
703- " liveactivitieslivegamespapollinglambda16BDC7D1" : {
704- " DependsOn" : [
705- " liveactivitieslivegamespapollinglambdaServiceRoleDefaultPolicy24985231" ,
706- " liveactivitieslivegamespapollinglambdaServiceRoleA3EF1A84" ,
707- ],
708- " Properties" : {
709- " Code" : {
710- " S3Bucket" : {
711- " Ref" : " DistributionBucketName" ,
712- },
713- " S3Key" : " mobile-notifications/CODE/liveactivities/liveactivities.jar" ,
714- },
715- " Description" : " Polls PA for live game updates and routes to event bus" ,
716- " Environment" : {
717- " Variables" : {
718- " APP" : " liveactivities" ,
719- " App" : " liveactivities" ,
720- " STACK" : " mobile-notifications" ,
721- " STAGE" : " CODE" ,
722- " Stack" : " mobile-notifications" ,
723- " Stage" : " CODE" ,
724- },
725- },
726- " FunctionName" : " liveactivities-live-games-pa-polling-CODE" ,
727- " Handler" : " com.gu.liveactivities.PollingLiveGamesDataLambda::handleRequest" ,
728- " LoggingConfig" : {
729- " LogFormat" : " JSON" ,
730- },
731- " MemorySize" : 1024 ,
732- " Role" : {
733- " Fn::GetAtt" : [
734- " liveactivitieslivegamespapollinglambdaServiceRoleA3EF1A84" ,
735- " Arn" ,
736- ],
737- },
738- " Runtime" : " java11" ,
739- " Tags" : [
740- {
741- " Key" : " App" ,
742- " Value" : " liveactivities" ,
743- },
744- {
745- " Key" : " gu:cdk:version" ,
746- " Value" : " TEST" ,
747- },
748- {
749- " Key" : " gu:repo" ,
750- " Value" : " guardian/mobile-n10n" ,
751- },
752- {
753- " Key" : " Stack" ,
754- " Value" : " mobile-notifications" ,
755- },
756- {
757- " Key" : " Stage" ,
758- " Value" : " CODE" ,
759- },
760- ],
761- " Timeout" : 120 ,
762- },
763- " Type" : " AWS::Lambda::Function" ,
764- },
765- " liveactivitieslivegamespapollinglambdaServiceRoleA3EF1A84" : {
766- " Properties" : {
767- " AssumeRolePolicyDocument" : {
768- " Statement" : [
769- {
770- " Action" : " sts:AssumeRole" ,
771- " Effect" : " Allow" ,
772- " Principal" : {
773- " Service" : " lambda.amazonaws.com" ,
774- },
775- },
776- ],
777- " Version" : " 2012-10-17" ,
778- },
779- " ManagedPolicyArns" : [
780- {
781- " Fn::Join" : [
782- " " ,
783- [
784- " arn:" ,
785- {
786- " Ref" : " AWS::Partition" ,
787- },
788- " :iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" ,
789- ],
790- ],
791- },
792- ],
793- " Tags" : [
794- {
795- " Key" : " App" ,
796- " Value" : " liveactivities" ,
797- },
798- {
799- " Key" : " gu:cdk:version" ,
800- " Value" : " TEST" ,
801- },
802- {
803- " Key" : " gu:repo" ,
804- " Value" : " guardian/mobile-n10n" ,
805- },
806- {
807- " Key" : " Stack" ,
808- " Value" : " mobile-notifications" ,
809- },
810- {
811- " Key" : " Stage" ,
812- " Value" : " CODE" ,
813- },
814- ],
815- },
816- " Type" : " AWS::IAM::Role" ,
817- },
818- " liveactivitieslivegamespapollinglambdaServiceRoleDefaultPolicy24985231" : {
819- " Properties" : {
820- " PolicyDocument" : {
821- " Statement" : [
822- {
823- " Action" : [
824- " s3:GetObject*" ,
825- " s3:GetBucket*" ,
826- " s3:List*" ,
827- ],
828- " Effect" : " Allow" ,
829- " Resource" : [
830- {
831- " Fn::Join" : [
832- " " ,
833- [
834- " arn:" ,
835- {
836- " Ref" : " AWS::Partition" ,
837- },
838- " :s3:::" ,
839- {
840- " Ref" : " DistributionBucketName" ,
841- },
842- ],
843- ],
844- },
845- {
846- " Fn::Join" : [
847- " " ,
848- [
849- " arn:" ,
850- {
851- " Ref" : " AWS::Partition" ,
852- },
853- " :s3:::" ,
854- {
855- " Ref" : " DistributionBucketName" ,
856- },
857- " /mobile-notifications/CODE/liveactivities/liveactivities.jar" ,
858- ],
859- ],
860- },
861- ],
862- },
863- {
864- " Action" : " ssm:GetParametersByPath" ,
865- " Effect" : " Allow" ,
866- " Resource" : {
867- " Fn::Join" : [
868- " " ,
869- [
870- " arn:aws:ssm:" ,
871- {
872- " Ref" : " AWS::Region" ,
873- },
874- " :" ,
875- {
876- " Ref" : " AWS::AccountId" ,
877- },
878- " :parameter/CODE/mobile-notifications/liveactivities" ,
879- ],
880- ],
881- },
882- },
883- {
884- " Action" : [
885- " ssm:GetParameters" ,
886- " ssm:GetParameter" ,
887- ],
888- " Effect" : " Allow" ,
889- " Resource" : {
890- " Fn::Join" : [
891- " " ,
892- [
893- " arn:aws:ssm:" ,
894- {
895- " Ref" : " AWS::Region" ,
896- },
897- " :" ,
898- {
899- " Ref" : " AWS::AccountId" ,
900- },
901- " :parameter/CODE/mobile-notifications/liveactivities/*" ,
902- ],
903- ],
904- },
905- },
906- {
907- " Action" : " events:PutEvents" ,
908- " Effect" : " Allow" ,
909- " Resource" : {
910- " Fn::GetAtt" : [
911- " EventsD32975C2" ,
912- " Arn" ,
913- ],
914- },
915- },
916- ],
917- " Version" : " 2012-10-17" ,
918- },
919- " PolicyName" : " liveactivitieslivegamespapollinglambdaServiceRoleDefaultPolicy24985231" ,
920- " Roles" : [
921- {
922- " Ref" : " liveactivitieslivegamespapollinglambdaServiceRoleA3EF1A84" ,
923- },
924- ],
925- },
926- " Type" : " AWS::IAM::Policy" ,
927- },
928705 },
929706}
930707` ;
0 commit comments