You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-2Lines changed: 16 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -315,8 +315,6 @@ stepFunctions:
315
315
definition:
316
316
```
317
317
318
-
#### HTTP Endpoint with Extended Options
319
-
320
318
Here You can define an POST endpoint for the path posts/create.
321
319
322
320
```yml
@@ -330,6 +328,22 @@ stepFunctions:
330
328
definition:
331
329
```
332
330
331
+
#### HTTP Endpoint with custom IAM Role
332
+
333
+
The plugin would generate an IAM Role for you by default. However, if you wish to use an IAM role that you have provisioned separately, then you can override the IAM Role like this:
334
+
335
+
```yml
336
+
stepFunctions:
337
+
stateMachines:
338
+
hello:
339
+
events:
340
+
- http:
341
+
path: posts/create
342
+
method: POST
343
+
iamRole: arn:aws:iam::<accountId>:role/<roleName>
344
+
definition:
345
+
```
346
+
333
347
#### Share API Gateway and API Resources
334
348
335
349
You can [share the same API Gateway](https://serverless.com/framework/docs/providers/aws/events/apigateway/#share-api-gateway-and-api-resources) between multiple projects by referencing its REST API ID and Root Resource ID in serverless.yml as follows:
0 commit comments