File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ resource:
156
156
Action :
157
157
- " codedeploy:PutLifecycleEventHookExecutionStatus"
158
158
Resource :
159
- !Sub 'arn:aws :codedeploy:${AWS::Region}:${AWS::AccountId}:deploymentgroup:${ServerlessDeploymentApplication}/*'
159
+ !Sub 'arn:${AWS::Partition} :codedeploy:${AWS::Region}:${AWS::AccountId}:deploymentgroup:${ServerlessDeploymentApplication}/*'
160
160
- Version : " 2012-10-17"
161
161
Statement :
162
162
- Effect : " Allow"
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ Resources:
131
131
Action : lambda:InvokeFunction
132
132
FunctionName : !GetAtt PreSignupLambdaFunction.Arn
133
133
Principal : cognito-idp.amazonaws.com
134
- SourceArn : !Sub 'arn:aws :cognito-idp:${AWS::Region}:${AWS::AccountId}:userpool/${MyCognitoUserPool}'
134
+ SourceArn : !Sub 'arn:${AWS::Partition} :cognito-idp:${AWS::Region}:${AWS::AccountId}:userpool/${MyCognitoUserPool}'
135
135
# TODO: Add a CognitoUserPool Event Source to SAM to create this permission for you.
136
136
# Events:
137
137
# CognitoUserPoolPreSignup:
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ Resources:
18
18
httpMethod : POST
19
19
type : aws_proxy
20
20
uri :
21
- Fn::Sub : arn:aws :apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${MyLambdaFunction.Arn}/invocations
21
+ Fn::Sub : arn:${AWS::Partition} :apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${MyLambdaFunction.Arn}/invocations
22
22
responses : {}
23
23
24
24
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ Resources:
28
28
Action :
29
29
- " codedeploy:PutLifecycleEventHookExecutionStatus"
30
30
Resource :
31
- !Sub 'arn:aws :codedeploy:${AWS::Region}:${AWS::AccountId}:deploymentgroup:${ServerlessDeploymentApplication}/*'
31
+ !Sub 'arn:${AWS::Partition} :codedeploy:${AWS::Region}:${AWS::AccountId}:deploymentgroup:${ServerlessDeploymentApplication}/*'
32
32
- Version : " 2012-10-17"
33
33
Statement :
34
34
- Effect : " Allow"
Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ Tags:
200
200
AppNameTag: ThumbnailApp
201
201
DepartmentNameTag: ThumbnailDepartment
202
202
Layers:
203
- - !Sub arn:aws :lambda:${AWS::Region}:123456789012:layer:MyLayer:1
203
+ - !Sub arn:${AWS::Partition} :lambda:${AWS::Region}:123456789012:layer:MyLayer:1
204
204
` ` `
205
205
206
206
# ### AWS::Serverless::Api
You can’t perform that action at this time.
0 commit comments