Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a79d035

Browse files
committed
fix: updated lab-4 sam template so it creates
unique resources. Removed unused dependencies
1 parent 89b3450 commit a79d035

File tree

9 files changed

+1
-865
lines changed

9 files changed

+1
-865
lines changed

‎code/lab-4/Pipfile

Lines changed: 0 additions & 32 deletions
This file was deleted.

‎code/lab-4/Pipfile.lock

Lines changed: 0 additions & 798 deletions
This file was deleted.

‎code/lab-4/account_credit/credit.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
1-
import boto3
21
import json
32
import os
4-
from aws_xray_sdk.core import xray_recorder
5-
from aws_xray_sdk.core import patch_all # Patch all supported libraries for X-Ray - More info: https://docs.aws.amazon.com/xray/latest/devguide/xray-sdk-python-patching.html
6-
7-
# Only instrument libraries if not running locally
8-
if 'AWS_SAM_LOCAL' not in os.environ:
9-
patch_all()
10-
113

124
class AccountCreditException(Exception):
135
def __init__(self, message=None, info=None):
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
boto3==1.9.252
2-
botocore==1.12.252
3-
aws-xray-sdk==2.4.2

‎code/lab-4/payment_charge/charge.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
1-
import boto3
21
import random
32
import os
43
import string
5-
from aws_xray_sdk.core import xray_recorder
6-
from aws_xray_sdk.core import patch_all # Patch all supported libraries for X-Ray - More info: https://docs.aws.amazon.com/xray/latest/devguide/xray-sdk-python-patching.html
7-
8-
9-
if "AWS_SAM_LOCAL" not in os.environ:
10-
patch_all()
11-
124

135
class PaymentAuthException(Exception):
146
def __init__(self, message, info):
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
boto3==1.9.252
2-
botocore==1.12.252
3-
aws-xray-sdk==2.4.2

‎code/lab-4/payment_refund/refund.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
1-
import boto3
2-
import json
31
import os
42
import random
53
import string
6-
from aws_xray_sdk.core import xray_recorder
7-
from aws_xray_sdk.core import patch_all # Patch all supported libraries for X-Ray - More info: https://docs.aws.amazon.com/xray/latest/devguide/xray-sdk-python-patching.html
8-
9-
# Only instrument libraries if not running locally
10-
if "AWS_SAM_LOCAL" not in os.environ:
11-
patch_all()
12-
134

145
class RefundException(Exception):
156
def __init__(self, message=None, info=None):
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
boto3==1.9.252
2-
botocore==1.12.252
3-
aws-xray-sdk==2.4.2

‎code/lab-4/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ Globals:
99
Timeout: 3
1010
Runtime: python3.7
1111
MemorySize: 512
12-
Tracing: Active
1312
Tags:
1413
project: wild-rydes
1514
workshop: asynchronous-messaging-workshop
@@ -37,6 +36,7 @@ Resources:
3736
FaresTable:
3837
Type: AWS::Serverless::SimpleTable
3938
Properties:
39+
TableName: !Sub "FaresTable-${AWS::StackName}"
4040
PrimaryKey:
4141
Name: fareId
4242
Type: String

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /