Skip to content

Commit 4bddf27

Browse files
nicklitkeetonian
authored andcommitted
chore: use cfn pseudo parameters for aws partition in docs (#814)
1 parent 651550c commit 4bddf27

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

docs/safe_lambda_deployments.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ resource:
156156
Action:
157157
- "codedeploy:PutLifecycleEventHookExecutionStatus"
158158
Resource:
159-
!Sub 'arn:aws:codedeploy:${AWS::Region}:${AWS::AccountId}:deploymentgroup:${ServerlessDeploymentApplication}/*'
159+
!Sub 'arn:${AWS::Partition}:codedeploy:${AWS::Region}:${AWS::AccountId}:deploymentgroup:${ServerlessDeploymentApplication}/*'
160160
- Version: "2012-10-17"
161161
Statement:
162162
- Effect: "Allow"

examples/2016-10-31/api_cognito_auth/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ Resources:
131131
Action: lambda:InvokeFunction
132132
FunctionName: !GetAtt PreSignupLambdaFunction.Arn
133133
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}'
135135
# TODO: Add a CognitoUserPool Event Source to SAM to create this permission for you.
136136
# Events:
137137
# CognitoUserPoolPreSignup:

examples/2016-10-31/inline_swagger/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Resources:
1818
httpMethod: POST
1919
type: aws_proxy
2020
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
2222
responses: {}
2323

2424

examples/2016-10-31/lambda_safe_deployments/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Resources:
2828
Action:
2929
- "codedeploy:PutLifecycleEventHookExecutionStatus"
3030
Resource:
31-
!Sub 'arn:aws:codedeploy:${AWS::Region}:${AWS::AccountId}:deploymentgroup:${ServerlessDeploymentApplication}/*'
31+
!Sub 'arn:${AWS::Partition}:codedeploy:${AWS::Region}:${AWS::AccountId}:deploymentgroup:${ServerlessDeploymentApplication}/*'
3232
- Version: "2012-10-17"
3333
Statement:
3434
- Effect: "Allow"

versions/2016-10-31.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ Tags:
200200
AppNameTag: ThumbnailApp
201201
DepartmentNameTag: ThumbnailDepartment
202202
Layers:
203-
- !Sub arn:aws:lambda:${AWS::Region}:123456789012:layer:MyLayer:1
203+
- !Sub arn:${AWS::Partition}:lambda:${AWS::Region}:123456789012:layer:MyLayer:1
204204
```
205205

206206
#### AWS::Serverless::Api

0 commit comments

Comments
 (0)