Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

- name: Start LocalStack
env:
LOCALSTACK_AUTH_TOKEN: ${{ secrets.LOCALSTACK_AUTH_TOKEN }}
LOCALSTACK_AUTH_TOKEN: ${{ secrets.LOCALSTACK_AUTH_TOKEN || secrets.LOCALSTACK_API_KEY }}
DNS_ADDRESS: 0
run: |
pip install localstack awscli-local[ver1]
Expand Down
11 changes: 9 additions & 2 deletions backend/product-mock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ Globals:
AllowOrigin: !Sub "'${AllowedOrigin}'"

Resources:
ProductServiceApi:
Type: AWS::Serverless::Api
Properties:
StageName: Prod

GetProductFunction:
Type: AWS::Serverless::Function
Properties:
Expand All @@ -40,6 +45,7 @@ Resources:
ListCart:
Type: Api
Properties:
RestApiId: !Ref ProductServiceApi
Path: /product/{product_id}
Method: get

Expand All @@ -52,6 +58,7 @@ Resources:
ListCart:
Type: Api
Properties:
RestApiId: !Ref ProductServiceApi
Path: /product
Method: get

Expand All @@ -60,10 +67,10 @@ Resources:
Properties:
Type: String
Name: /serverless-shopping-cart-demo/products/products-api-url
Value: !Sub "https://${ServerlessRestApi}.execute-api.${AWS::Region}.localhost.localstack.cloud/Prod"
Value: !Sub "https://${ProductServiceApi}.execute-api.${AWS::Region}.localhost.localstack.cloud/Prod"


Outputs:
ProductApi:
Description: "API Gateway endpoint URL for Prod stage for Product Mock Service"
Value: !Sub "https://${ServerlessRestApi}.execute-api.${AWS::Region}.localhost.localstack.cloud/Prod"
Value: !Sub "https://${ProductServiceApi}.execute-api.${AWS::Region}.localhost.localstack.cloud/Prod"
Loading