Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit 3068ec4

Browse files
committed
Updated API Gateway Gateway Reponse to return default CORS headers
1 parent 4a9a0fa commit 3068ec4

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

Auth/2_ServerlessAPI/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,8 @@ Now that you've deployed the new authorizer configuration to production, all API
248248
249249
If the API now invokes correctly and application funcions as expected summoning unicorns, you may **proceed to complete either**:
250250
251-
- **Optional module extension** with [Fine-grained IAM-based authorization with API Gateway](./Optional-APIGateway-IAMAuth.md)
251+
- **Optional module 2 extension** with [Fine-grained IAM-based authorization with API Gateway](./Optional-APIGateway-IAMAuth.md)
252252
253253
OR
254254
255-
- To proceed to he next module, *without completing the optional module extension*, choose [client-side IAM-based Authorization](../3_IAMAuthorization).
255+
- To proceed to the module 3 *without completing the optional module extension*, choose [client-side IAM-based Authorization](../3_IAMAuthorization).

Auth/2_ServerlessAPI/ServerlessBackend.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,9 @@ Resources:
176176
Type: AWS::ApiGateway::RestApi
177177
Properties:
178178
Name: WildRydes
179+
EndpointConfiguration:
180+
Types:
181+
- REGIONAL
179182
Body:
180183
swagger: 2.0
181184
info:
@@ -241,7 +244,7 @@ Resources:
241244
passthroughBehavior: "when_no_match"
242245
type: "mock"
243246

244-
GatewayResponse:
247+
Default4XXGatewayResponse:
245248
Type: AWS::ApiGateway::GatewayResponse
246249
Properties:
247250
ResponseParameters:
@@ -250,7 +253,7 @@ Resources:
250253
ResponseType: DEFAULT_4XX
251254
RestApiId: !Ref WildRydesApi
252255

253-
GatewayResponse:
256+
Default5XXGatewayResponse:
254257
Type: AWS::ApiGateway::GatewayResponse
255258
Properties:
256259
ResponseParameters:

Auth/9_CleanUp/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050

5151
#### Remove WildRydes Backend
5252

53-
1. Next, we will need to remove the *CloudFormation stack* for the API. This stack should be named **WildRydesBackend**. Once again, from the your terminal window, run:
53+
1. Next, you will need to remove the *CloudFormation stack* for the API. This stack should be named **WildRydesBackend**. Once again, from the your terminal window, run:
5454

5555
```
5656
aws cloudformation delete-stack --stack-name WildRydesBackend
@@ -59,9 +59,11 @@
5959

6060
#### Remove Cloud9 and VPC Stack
6161

62-
1. Lastly, we will need to remove the *CloudFormation Stack* for the **Cloud9 instance** and the its VPC. This stack should be named **WildRydes-Cloud9**
62+
1. Lastly, you will need to remove the *CloudFormation Stack* for the **Cloud9 instance** and the its VPC. This stack should be named **WildRydes-Cloud9**. Deleting this stack will **shut down and permanently delete your Cloud9 environment** and all code or projects within so be sure you want to proceed before executing this command.
6363

6464
```
6565
aws cloudformation delete-stack --stack-name WildRydes-Cloud9
6666
```
67+
68+
6769
> If you changed the name of your stack from the default, you will need to update the stack name to what you changed it to. If you clicked the quick link in the instructions, no adjustment to the command above is needed. You can run `aws cloudformation describe-stacks` to find your stack name.

0 commit comments

Comments
 (0)