Skip to content

Commit

Permalink
change requirements and imports
Browse files Browse the repository at this point in the history
  • Loading branch information
muthukumaranR committed Jun 2, 2021
1 parent 4971dcc commit 2d80cd5
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 41 deletions.
8 changes: 5 additions & 3 deletions chapter-0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ npm install -g aws-cdk

Install required Python 3.6+, pip, and virtualenv packages. Activate the virtualenv:
```
python -m ensurepip --upgrade
python -m pip install --upgrade pip
python -m pip install --upgrade virtualenv
cd chapter-0/
python3 -m ensurepip --upgrade
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade virtualenv
python3 -m venv .venv
source .venv/bin/activate
```

Expand Down
3 changes: 1 addition & 2 deletions chapter-0/deploy/stacks/iam_stack.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from aws_cdk import core
from aws_cdk import (
aws_iam as iam_,
aws_ec2 as ec2
aws_iam as iam_
)

class IamStack(core.Stack):
Expand Down
22 changes: 1 addition & 21 deletions chapter-0/deploy/stacks/sagemaker_stack.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from aws_cdk import core
from aws_cdk import (aws_ec2 as ec2, aws_sagemaker as sm, aws_efs as efs, aws_iam as iam_)
from aws_cdk import (aws_ec2 as ec2, aws_sagemaker as sm, aws_iam as iam_)
from glob import glob


Expand All @@ -22,26 +22,6 @@ def __init__(
vpc=vpc
)

# Create EFS inside VPC
# self.efs = efs.FileSystem(
# self,
# "commonEFS4Notebooks",
# vpc = vpc,
# encrypted=True,
# enable_automatic_backups=True,
# performance_mode=efs.PerformanceMode('MAX_IO'),
# throughput_mode=efs.ThroughputMode('BURSTING'),
# security_group = self.security_group
# )

# lifecycleconfig = sm.CfnNotebookInstanceLifecycleConfig(
# self,
# "LifeCycleConfig",
# notebook_instance_lifecycle_config_name="LifeCycleConfig",
# on_create=None,
# on_start=code
# )

instance_id = "Workshop"
sm.CfnNotebookInstance(
self,
Expand Down
1 change: 0 additions & 1 deletion chapter-0/deploy/stacks/vpc_stack.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from aws_cdk import core
from aws_cdk import (
aws_iam as iam_,
aws_ec2 as ec2
)

Expand Down
16 changes: 2 additions & 14 deletions chapter-0/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
aws_cdk.core
aws_cdk.aws_sagemaker
aws_cdk.aws_ecr
aws_cdk.aws_ecs
aws_cdk.aws_ecs_patterns
aws_cdk.aws_events
aws_cdk.aws_events_targets
aws_cdk.aws_apigateway
aws_cdk.aws_iam
aws_cdk.aws_lambda
aws_cdk.aws_logs
aws_cdk.aws_sqs
aws_cdk.aws_rds
aws_cdk.aws_lambda_event_sources
aws_cdk.aws_s3
aws_cdk.aws_s3_notifications
boto3
aws_cdk.aws_ec2

0 comments on commit 2d80cd5

Please sign in to comment.