@@ -3193,6 +3193,96 @@ sudo service iptables save",
31933193 " Type" : " AWS::ECR::Repository" ,
31943194 " UpdateReplacePolicy" : " Delete" ,
31953195 } ,
3196+ "WebappCloudFrontInvalidation588CF152": Object {
3197+ " DeletionPolicy" : " Delete" ,
3198+ " DependsOn" : Array [
3199+ " WebappCloudFrontInvalidationCustomResourcePolicy18C215D6" ,
3200+ ],
3201+ " Properties" : Object {
3202+ " Create" : Object {
3203+ " Fn::Join" : Array [
3204+ " " ,
3205+ Array [
3206+ " {" service " :" cloudfront " ," action " :" createInvalidation " ," parameters " :{" DistributionId " :" " ,
3207+ Object {
3208+ " Ref" : " Webapp107041BD" ,
3209+ },
3210+ " " ," InvalidationBatch" :{" CallerReference" :" " ,
3211+ Object {
3212+ " Fn::GetAtt" : Array [
3213+ " WebappHandlerCurrentVersionREDACTED" ,
3214+ " Version" ,
3215+ ],
3216+ },
3217+ " " ," Paths" :{" Quantity" :1 ," Items" :[" /*" ]}}}," physicalResourceId" :{" id" :" invalidation" }}" ,
3218+ ],
3219+ ],
3220+ },
3221+ " InstallLatestAwsSdk" : true ,
3222+ " ServiceToken" : Object {
3223+ " Fn::GetAtt" : Array [
3224+ " AWS679f53fac002430cb0da5b7982bd22872D164C4C" ,
3225+ " Arn" ,
3226+ ],
3227+ },
3228+ " Update" : Object {
3229+ " Fn::Join" : Array [
3230+ " " ,
3231+ Array [
3232+ " {" service " :" cloudfront " ," action " :" createInvalidation " ," parameters " :{" DistributionId " :" " ,
3233+ Object {
3234+ " Ref" : " Webapp107041BD" ,
3235+ },
3236+ " " ," InvalidationBatch" :{" CallerReference" :" " ,
3237+ Object {
3238+ " Fn::GetAtt" : Array [
3239+ " WebappHandlerCurrentVersionREDACTED" ,
3240+ " Version" ,
3241+ ],
3242+ },
3243+ " " ," Paths" :{" Quantity" :1 ," Items" :[" /*" ]}}}," physicalResourceId" :{" id" :" invalidation" }}" ,
3244+ ],
3245+ ],
3246+ },
3247+ },
3248+ " Type" : " Custom::AWS" ,
3249+ " UpdateReplacePolicy" : " Delete" ,
3250+ } ,
3251+ "WebappCloudFrontInvalidationCustomResourcePolicy18C215D6": Object {
3252+ " Properties" : Object {
3253+ " PolicyDocument" : Object {
3254+ " Statement" : Array [
3255+ Object {
3256+ " Action" : " cloudfront:CreateInvalidation" ,
3257+ " Effect" : " Allow" ,
3258+ " Resource" : Object {
3259+ " Fn::Join" : Array [
3260+ " " ,
3261+ Array [
3262+ " arn:" ,
3263+ Object {
3264+ " Ref" : " AWS::Partition" ,
3265+ },
3266+ " :cloudfront::123456789012:distribution/" ,
3267+ Object {
3268+ " Ref" : " Webapp107041BD" ,
3269+ },
3270+ ],
3271+ ],
3272+ },
3273+ },
3274+ ],
3275+ " Version" : " 2012-10-17" ,
3276+ },
3277+ " PolicyName" : " WebappCloudFrontInvalidationCustomResourcePolicy18C215D6" ,
3278+ " Roles" : Array [
3279+ Object {
3280+ " Ref" : " AWS679f53fac002430cb0da5b7982bd2287ServiceRoleC1EA0FF2" ,
3281+ },
3282+ ],
3283+ },
3284+ " Type" : " AWS::IAM::Policy" ,
3285+ } ,
31963286 "WebappHandler8DD158A3": Object {
31973287 " DependsOn" : Array [
31983288 " VpcPrivateSubnet1DefaultRouteBE02A9ED" ,
@@ -3415,6 +3505,22 @@ sudo service iptables save",
34153505 },
34163506 " Type" : " AWS::Lambda::Function" ,
34173507 } ,
3508+ "WebappHandlerCurrentVersionREDACTED": Object {
3509+ " DependsOn" : Array [
3510+ " VpcPrivateSubnet1DefaultRouteBE02A9ED" ,
3511+ " VpcPrivateSubnet1RouteTableAssociation70C59FA6" ,
3512+ " VpcPrivateSubnet2DefaultRoute060D2087" ,
3513+ " VpcPrivateSubnet2RouteTableAssociationA89CAD56" ,
3514+ " VpcPrivateSubnet3DefaultRoute94B74F0D" ,
3515+ " VpcPrivateSubnet3RouteTableAssociation16BDDC43" ,
3516+ ],
3517+ " Properties" : Object {
3518+ " FunctionName" : Object {
3519+ " Ref" : " WebappHandler8DD158A3" ,
3520+ },
3521+ },
3522+ " Type" : " AWS::Lambda::Version" ,
3523+ } ,
34183524 "WebappHandlerFunctionUrl7AEF8DEE": Object {
34193525 " DependsOn" : Array [
34203526 " VpcPrivateSubnet1DefaultRouteBE02A9ED" ,
0 commit comments