From the course: AWS for Developers: Deploy a WordPress Blog with AWS CDK v2
Unlock the full course today
Join today to access over 24,500 courses taught by industry experts.
Container configuration - Amazon Web Services (AWS) Tutorial
From the course: AWS for Developers: Deploy a WordPress Blog with AWS CDK v2
Container configuration
- [Instructor] Even though we're getting some really good defaults provided by the CDK ECS pattern in this case, we still need to add some configuration touches as specific to what we're trying to do here. We're going to start right here, line 52, where it says add volume. This is where we add the file system that we created. As you can see, line 54 here, we're passing our file system ID and we're given in a name of wp vol or WordPress volume. Once we do that, then we go ahead and mount it to our containers. In this case, the mount point is going to be /var/www/html. So essentially any files for WordPress that are PHP files, uploaded images, or any HTML in general, is going to be inside our file system. The advantage that you get by doing this is that the containers could be completely destroyed, and there's no harm in that because your data is safe in the file system. So the containers could easily scale up, scale…