diff --git a/cdk/img_1.png b/cdk/img_1.png new file mode 100644 index 0000000..6e8bc28 Binary files /dev/null and b/cdk/img_1.png differ diff --git a/cdk/make-qr.py b/cdk/make-qr.py new file mode 100644 index 0000000..b4ea4c7 --- /dev/null +++ b/cdk/make-qr.py @@ -0,0 +1,10 @@ +import qrcode +from qrcode.image.styledpil import StyledPilImage +from qrcode.image.styles.moduledrawers import CircleModuleDrawer + +qr = qrcode.QRCode(error_correction=qrcode.constants.ERROR_CORRECT_L) +qr.add_data('https://git.paco.to/nick/sciencefair2023') + +img_1 = qr.make_image(image_factory=StyledPilImage, + module_drawer=CircleModuleDrawer()) +img_1.save("img_1.png") diff --git a/cdk/sfec2/sci_stack.py b/cdk/sfec2/sci_stack.py index 78f0c81..97b20c8 100644 --- a/cdk/sfec2/sci_stack.py +++ b/cdk/sfec2/sci_stack.py @@ -61,7 +61,7 @@ class VpcBasisStack(cdk.Stack): allow_all_outbound=True, security_group_name='Sci-sg' ) self.SciSG.add_ingress_rule(peer=ec2.Peer.ipv4('173.79.190.162/32'), connection=ec2.Port.tcp(22), description="ssh in from home") - self.SciSG.add_ingress_rule(peer=ec2.Peer.ipv4('70.164.18.200/29'), + self.SciSG.add_ingress_rule(peer=ec2.Peer.ipv4('70.164.19.200/29'), connection=ec2.Port.tcp(22), description="ssh in from nova") self.SciSG.add_ingress_rule(peer=ec2.Peer.any_ipv6(), connection=ec2.Port.tcp(80), description="HTTP open to the world, ipv6")