/tmp is now tmpfs - Amazon Linux 2023
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

/tmp is now tmpfs

Amazon Linux 2023 introduces changes to how /tmp behaves when compared to Amazon Linux 2. The default configuration for AL2 was that both /tmp and /var/tmp were on the root file system. Amazon Linux 2023 defaults to using tmpfs for /tmp with a limit of 50% of RAM and a maximum of one million inodes. These changes bring Amazon Linux in line with the behavior of other Linux distributions.

For full details of the file system layout of AL2023, see /tmp and /var/tmp in the Filesystem Layout section.