- Amazon Linux Machine with a minimum of 1GB RAM. It will be sufficent to do A proof of concept (POC).
- Open Port.No: 8080 in EC2-security group.
sudo su -
amazon-linux-extras install java-openjdk11=latest -y
| /* | |
| * Copyright 2004, 2005, 2006 Acegi Technology Pty Limited | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * https://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| # validate email addresses | |
| def validate_email(email): | |
| pattern = r"(^(?!-|\.)([a-zA-Z0-9._%+-]+)@(?!-)[a-zA-Z0-9.-]+(?<=[a-zA-Z0-9])\.[a-zA-Z]{2,}$)" | |
| if re.match(pattern, email): | |
| return True | |
| else: | |
| return False | |
| if __name__ == "__main__": |