Skip to content

Commit

Permalink
Merge pull request #376 from james-jory/patching-june-22
Browse files Browse the repository at this point in the history
Dependencies updates/patching
  • Loading branch information
BastLeblanc authored Jul 12, 2022
2 parents 63d14fd + 6958597 commit 279082e
Show file tree
Hide file tree
Showing 10 changed files with 3,101 additions and 1,647 deletions.
2 changes: 2 additions & 0 deletions aws/cloudformation-templates/base/_template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ Resources:
Properties:
TemplateURL: !Sub https://s3.amazonaws.com/${ResourceBucket}/${ResourceBucketRelativePath}cloudformation-templates/base/notebook.yaml
Parameters:
ResourceBucket: !Ref ResourceBucket
ResourceBucketRelativePath: !Ref ResourceBucketRelativePath
VpcId: !GetAtt VPC.Outputs.VpcId
Subnets: !GetAtt VPC.Outputs.Subnets
Subnet1: !GetAtt VPC.Outputs.Subnet1
Expand Down
19 changes: 19 additions & 0 deletions aws/cloudformation-templates/base/notebook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ Description: >
This template deploys the Retail Demo Store SageMaker Notebook Instances.
Parameters:
ResourceBucket:
Type: String
Description: S3Bucket Bucket where the Resources are stored (cloudformation, images, lambda code)

ResourceBucketRelativePath:
Type: String
Description: S3Bucket Path where the Resources are stored (cloudformation, images, lambda code) (i.e. path/path2), can be empty if resources are at the root of the bucket. MUST contain trailing /

GitHubUser:
Type: String
Description: Your GitHub username.
Expand Down Expand Up @@ -130,6 +138,11 @@ Resources:
Action:
- sagemaker:ListTags
Resource: !Sub 'arn:aws:sagemaker:${AWS::Region}:${AWS::AccountId}:notebook-instance/*'
-
Effect: "Allow"
Action:
- cloudformation:DescribeStacks
Resource: !Sub 'arn:aws:cloudformation:${AWS::Region}:${AWS::AccountId}:stack/${AWS::StackName}*'
-
PolicyName: "0-StartHere"
PolicyDocument:
Expand Down Expand Up @@ -171,6 +184,12 @@ Resources:
Resource:
- !Sub arn:aws:s3:::${StackBucketName}/*
- !Sub arn:aws:s3:::${StackBucketName}
-
Effect: "Allow"
Action:
- s3:GetObject
Resource:
- !Sub arn:aws:s3:::${ResourceBucket}/${ResourceBucketRelativePath}csvs/*
-
Effect: "Allow"
Action:
Expand Down
9 changes: 4 additions & 5 deletions generators/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
# Note that dependency versions must be compatible with SageMaker notebook python environment (3.6)
certifi==2020.4.5.1
chardet==3.0.4
Faker==4.1.0
idna==2.9
numpy==1.19.5
numpy==1.23.0
python-dateutil==2.8.1
pytz==2020.1
PyYAML==5.4
requests==2.25.1
scipy==1.5.4
requests==2.28.0
scipy==1.8.1
six==1.15.0
text-unidecode==1.3
urllib3==1.26.5
zope.interface==5.1.0
pandas==1.1.5
pandas==1.4.3
27 changes: 20 additions & 7 deletions src/aws-lambda/mparticle-personalize/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/aws-lambda/mparticle-personalize/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"main": "mparticle-personalize.js",
"dependencies": {
"mparticle": "*",
"axios": "^0.21.1"
"axios": "^0.27.2"
}
}
Loading

0 comments on commit 279082e

Please sign in to comment.