Today we will look at how to spin up an ec2 powered site in CommandBox Pro using an AWS Marketplace AMI powered with Lucee. Brad Wood and the Ortus Team have developed the ability to spin up context sites in CommandBox. What does that mean. It means that you can have as many separate independent sites as you want running with all of the bells and whistles available on AWS.
3. HELLO!
I am George Murphy
I am here because I love to give
presentations about technology.
You can find me at @murpg
3
4. What are we covering today?
▰ How to build Commandbox Pro in the AWS Cloud
▰ Creating multiple sites with one instance of CBPro
▰ Looking at Undertow server rules
▰ What is in the pipeline for CBPro
▰ How to build CBPro with an AWS load balancer
4
5. What we are not covering today?
▰ Applying SSL certificates
▰ Running clusters
▰ Docker instances of CBpro
▰ Using AWS Route 53
▰ Running in Terraform Cloud
5
6. Commandbox Pro in the AWS Cloud
The goal of CommandBox Pro Multi-Server is to provide Enterprise web server
capabilities that extend past a single instance and make CommandBox suitable for a
drop-in replacement for IIS/Apache/Nginx.
6
7. Creating multiple sites with one instance of CBPro
CommandBox already supports most of the needed features, it’s just a matter of
allowing each site to have its own virtual directories, its own server rules.
7
8. Looking at Undertow server rules
equals( %{LOCAL_SERVER_NAME}, 'website2.com' ) -> set(attribute=%{i,X-Tomcat-DocRoot},value='/var/www/website2.com’)
not regex( value=%{LOCAL_SERVER_NAME}, pattern='^website[2].com$', case-sensitive=false ) -> set-error(401)
8
10. How to build CBPro with an AWS load balancer
▰ Terraform CLI (1.3.0+) installed
▰ AWS account that allows you to create resources
▰ AMI Image ID for Lucee
10
12. CREDITS
Special thanks to all the people at
Ortus Solutions who made and released these
awesome resources for free:
▰ All the sponsors of ITB 2023
12