This is an old revision of the document!
How to set up a new VPC in AWS for testing or production
These instructions indicate how to create a new VPC for an AGTEK Access server. This is
useful for either testing, or migration of an entirely new constellation of server
components. These instructions do not indicate how to add multiple EC2 instances to
the VPC for load balancing or failover error recovery.
Create the VPC
Tag VPC for “class” as “production” or “development”, etc.
Create RDS instance
Edit RDS security group to allow for traffic from within the VPC, specific subnet
e.g. source 172.30.0.0/16 or use the EC2's security group
Create EC2 instance
Edit the EC2 security group to:
allow for all external on 34015 - 0.0.0.0/0
allow for SSH on port 22
Log into EC2 instance
create mount point for access store on /mnt/access
Attach access store to EC2 instance
Copy following files
/mnt/access/tools/bashrc to ~/.bashrc
/mnt/access/tools/menu.sh to ~
/mnt/access/tools/agtekaccess to /etc/init.d
/mnt/access/tools/agtektomcat to /etc/init.d
Log into old EC2 instance
Shutdown (only if migrating!) old server on old EC2-instance
Dump old RDS MySQL to /tmp/dump.sql
Copy /tmp/dump.sql to new EC2 instance
On new EC2 instance, restore sql via:
mysql -u access -p -h new-rds-endpoint.rds.amazonaws.com < /tmp/dump.sql
Connect to MySQL, fix DBHost column in access:customer to be new-rds-endpoint.rd.amazonaws.com
Assign elastic IP to new EC2 Instance
Change
DNS entry if new elastic IP
Start server on new EC2
Test server
Monitor server