Listing Thumbnail

    Hardened MySQL 8.4 on Debian 12

     Info
    Deployed on AWS
    AWS Free Tier
    This is a repackaged open source software product wherein additional charges apply for security hardening, optimization, and pre-integration of the MySQL 8.4 stack provided by Hanwei. MySQL 8.4 is initialized at build time and starts with the instance, on a base running AppArmor with root login locked and key-only SSH access.

    Overview

    Charges for this image cover the security hardening, optimization, and pre-integration work Hanwei performs on top of the upstream MySQL 8.4 and Debian 12 projects. MySQL 8.4 is installed from the MySQL community apt repository, the data directory is initialized and the service is enabled, so the server is listening when the instance finishes booting. This version replaces the earlier 8.0 image on this platform. The operating system underneath carries the same hardened and tuned baseline used across this catalogue.

    What Hanwei Adds to Upstream MySQL 8.4

    • Server installed and initialized at build time: packages come from the MySQL community apt repository, /var/lib/mysql is initialized and the mysql service is enabled, so the server accepts local connections as soon as the instance boots.
    • Transparent huge pages disabled at boot: a oneshot unit sets them to never before the database starts, following the vendor's guidance. This is not the distribution default, where the tuned virtual-guest profile leaves them enabled.
    • TLS material generated per instance, not baked into the image: the server certificate, CA and RSA key pair are removed before sealing and regenerated on first boot, so no two subscribers share a private key.
    • Tuning baseline applied identically across the catalogue: the file descriptor limit goes from 1024 to 65536 and the memory-map ceiling from 65530 to 262144; the device receive backlog goes from 1000 to 16384 and the TCP SYN backlog from 128 to 8192, so bursts queue instead of being dropped; socket buffer maxima reach 16 MB for larger autotuned windows; connections keep their congestion window across idle periods; and the journal is capped at 500 MB. The profile raises ceilings only and does not alter protocol semantics or application behaviour.
    • Applied hardening beyond the distribution default: SSH is limited to a vetted cipher, key exchange and MAC list, X11 forwarding is off, the login grace period is shortened and verbose authentication logging is on; auditd runs a base rule set for privileged command execution; the kernel drops ICMP redirects on IPv4 and IPv6, logs martian packets, filters reverse paths in loose mode, restricts dmesg and turns off sysrq.
    • AWS operational integration: the SSM Agent is installed and enabled for Session Manager and Patch Manager without an inbound SSH rule; chrony points at the Amazon Time Sync Service; and the root filesystem extends at boot when the volume exceeds the image default.
    • Patch level set at the build date: packages come from official upstream repositories at the newest level published when the image was built.
    • Repeatable build and EC2 validation: each version comes from the same build process and is launched and exercised on EC2 before release.

    Access and Security Posture

    • AppArmor is active and auditd records activity against a base rule set.
    • Sign in as 'admin' with the key pair selected at launch, then use 'sudo su -' for a root shell. Session Manager is available as an alternative that needs no inbound port.
    • Direct root login over SSH is disabled and password authentication is not accepted.
    • No authorized keys and no SSH private keys are embedded in the image.

    Operational Impact on EC2

    • Launch-to-usable-database time is reduced to a single boot cycle.
    • Every instance starts from an identical configuration, removing drift between development, staging and production hosts.
    • Network services need no per-host limit or backlog adjustment before handling load.
    • Clock accuracy comes from the Amazon Time Sync Service, which matters for log correlation and request signing.
    • Post-launch patching effort is lower because the package set is current at release.

    Where This Image Fits

    • Application backends on teams standardised on Debian rather than an RPM distribution.
    • Migration target for workloads consolidating onto the 8.4 long-term support series.
    • Development and test environments recreated frequently from an identical database configuration.
    • Content management and e-commerce platforms that expect a MySQL-compatible server.

    About MySQL 8.4 and Debian 12

    MySQL 8.4 is a long-term support release, carrying the InnoDB engine, common table expressions, window functions, JSON document support and caching_sha2_password as the default authentication plugin. As an LTS release its behaviour is held stable through the series, with fixes rather than feature changes, and vendor support runs through 2032.

    Debian 12 is a stable Debian release with security support into 2028, carrying the 6.1 kernel series, apt for package management and AppArmor for mandatory access control. Its conservative defaults and long support window make it a common base for database hosts. MySQL packages here come from the vendor's own apt repository rather than the Debian archive, which is what makes the 8.4 LTS series available and keeps the configuration layout consistent with the vendor's documentation.

    Highlights

    • WHAT IS PACKAGED - This image provides MySQL 8.4 LTS installed from the MySQL community apt repository on Debian 12, data directory initialized and the service enabled, with transparent huge pages disabled and per-instance TLS material generated on first boot rather than shared through the image.
    • HOW THE BASELINE IS HARDENED AND TUNED - AppArmor active, root login locked and SSH limited to key-based authentication with a vetted cipher, key exchange and MAC list. auditd runs a base rule set for privileged commands. The kernel drops ICMP redirects, logs martian packets and restricts dmesg. The file descriptor limit goes from 1024 to 65536 and the memory-map ceiling from 65530 to 262144; receive and SYN backlogs are enlarged and socket buffers reach 16 MB.
    • HOW IT FITS AWS OPERATIONS - The SSM Agent is installed and enabled, so instances can be managed through Session Manager and Patch Manager without an inbound SSH rule. chrony is pointed at the Amazon Time Sync Service, the root filesystem extends automatically when the volume exceeds the image default, and cloud-init handles user-data provisioning in launch templates and Auto Scaling groups.

    Details

    Categories

    Delivery method

    Delivery option
    64-bit (x86) Amazon Machine Image (AMI)

    Latest version

    Operating system
    Debian 12

    Deployed on AWS
    New

    Introducing multi-product solutions

    You can now purchase comprehensive solutions tailored to use cases and industries.

    Multi-product solutions

    Features and programs

    Financing for AWS Marketplace purchases

    AWS Marketplace now accepts line of credit payments through the PNC Vendor Finance program. This program is available to select AWS customers in the US, excluding NV, NC, ND, TN, & VT.
    Financing for AWS Marketplace purchases

    Pricing

    Hardened MySQL 8.4 on Debian 12

     Info
    Pricing is based on actual usage, with charges varying according to how much you consume. Subscriptions have no end date and may be canceled any time. Alternatively, you can pay upfront for a contract, which typically covers your anticipated usage for the contract duration. Any usage beyond contract will incur additional usage-based costs.
    Additional AWS infrastructure costs may apply. Use the AWS Pricing Calculator  to estimate your infrastructure costs.
    If you are an AWS Free Tier customer with a free plan, you are eligible to subscribe to this offer. You can use free credits to cover the cost of eligible AWS infrastructure. See AWS Free Tier  for more details. If you created an AWS account before July 15th, 2025, and qualify for the Legacy AWS Free Tier, Amazon EC2 charges for Micro instances are free for up to 750 hours per month. See Legacy AWS Free Tier  for more details.

    Usage costs (298)

     Info
    • ...
    Dimension
    Cost/hour
    t3.small
    Recommended
    $0.04
    t3.micro
    $0.04
    t2.micro
    $0.04
    m5.large
    $0.09
    z1d.3xlarge
    $0.79
    m5d.xlarge
    $0.09
    x1e.4xlarge
    $0.79
    g3.4xlarge
    $0.79
    r5a.24xlarge
    $3.19
    d2.2xlarge
    $0.39

    AI Insights

     Info

    Dimensions summary

    You pay by the hour for MySQL 8.4 running on Debian 12, billed only while an instance runs. Each pricing line maps to a specific EC2 instance type, so the software rate follows the compute size you pick. Smaller shared instances like t2.nano or t3.micro sit at one end, while large memory, compute, storage, and accelerated types such as x1e.32xlarge or u-24tb1.metal sit at the other. You choose the instance that fits your workload, and the hourly software charge scales with that choice. AWS infrastructure charges apply separately from this software fee.

    Top-of-mind questions for buyers

    One hour is one running EC2 instance of the type you select, billed for each clock hour that instance stays running. The rate is tied to that specific instance type. Multiple running instances each meter their own hours and add together on your invoice.
    The hourly software charge meters running time only, so a fully stopped instance stops accruing that fee. AWS may still bill separately for attached storage while the instance is stopped. Those AWS infrastructure charges are not part of this software fee.
    Each instance type maps to its own hourly software rate. Moving from a smaller shared type to a large memory, compute, or metal type changes the rate to that type's line. Charges apply only while that new instance runs, so switching does not stack fees.
    www.proimage.cloud
    Helpful?

    Vendor refund policy

    no refund.

    How can we make this page better?

    Tell us how we can improve this page, or report an issue with this product.
    Tell us how we can improve this page, or report an issue with this product.

    Legal

    Vendor terms and conditions

    Upon subscribing to this product, you must acknowledge and agree to the terms and conditions outlined in the vendor's End User License Agreement (EULA) .

    Content disclaimer

    Vendors are responsible for their product descriptions and other product content. AWS does not warrant that vendors' product descriptions or other product content are accurate, complete, reliable, current, or error-free.

    Usage information

     Info

    Delivery details

    64-bit (x86) Amazon Machine Image (AMI)

    Amazon Machine Image (AMI)

    An AMI is a virtual image that provides the information required to launch an instance. Amazon EC2 (Elastic Compute Cloud) instances are virtual servers on which you can run your applications and workloads, offering varying combinations of CPU, memory, storage, and networking resources. You can launch as many instances from as many different AMIs as you need.

    Version release notes

    Update to latest

    Additional details

    Usage instructions

    OS commands via SSH: SSH as user 'admin' to the running instance and use sudo to run commands requiring root access.

    OS version:Debian 12

    Server version: MySQL: 8.4.11 MySQL Community Server

    MySQL Services:

    To restart MySQL Service: sudo systemctl restart mysql

    To get status of MySQL Service: sudo systemctl status mysql

    MySQL Port : 3306 this is by default not allowed on cloud firewall for security.

    Please allow SSH port 22 and MySQL port 3306 to limited IPs for access.

    The default MySQL root password is 'Ho0.MOPd?d'

    When you log in to MySQL for the first time, please use "mysql> alter user root@localhost identified by 'Your new password'; " to change the default MySQL root password.

    Support

    Vendor support

    henry.huang@hanweie.com  If you encounter problems in the process of using the system, please feel free to contact us by email, thank you!

    AWS infrastructure support

    AWS Support is a one-on-one, fast-response support channel that is staffed 24x7x365 with experienced and technical support engineers. The service helps customers of all sizes and technical abilities to successfully utilize the products and features provided by Amazon Web Services.

    Similar products

    Customer reviews

    Ratings and reviews

     Info
    0 ratings
    5 star
    4 star
    3 star
    2 star
    1 star
    0%
    0%
    0%
    0%
    0%
    0 reviews
    No customer reviews yet
    Be the first to review this product . We've partnered with PeerSpot to gather customer feedback. You can share your experience by writing or recording a review, or scheduling a call with a PeerSpot analyst.