Not a developer? Go to MovableType.com

Documentation

How to launch EC2 instances with Movable Type AMI

Movable Type AMI Edition is available as an Amazon Machine Image (AMI) of Amazon EC2 (Elastic Compute Cloud) via the AWS Marketplace. Therefore, it can be launched in the same way as a normal EC2 instance.

  1. Launching from the Management Console
    You can launch instances from the “Launch Instance” in the EC2 management console by selecting AWS Marketplace AMI and searching for movabletype when selecting an Amazon Machine Image (AMI), You will find the Movable Type AMI machine images, so please select the AMI with the CPU architecture, OS, and middleware that matches your desired instance type and launch it.

  2. Select and launch on AWS Marketplace
    You can select and launch Movable Type AMI Edition from the AWS Marketplace product catalog page. Product catalog site https://aws.amazon.com/marketplace/
    Enter movabletype in the search form to display Movable Type AMI Edition products. Select an AMI with the appropriate CPU architecture, OS, and middleware for the instance type you wish to launch, then subscribe to the AMI and launch it. You can also choose an annual subscription.

  3. Launching with AWS CLI
    EC2 instances can be launched using the AWS Command Line Interface (AWS CLI). The latest AMI ID can be obtained from the AMI alias. For example, here is a command to launch an AMi for the latest version of Amazon Linux 2, Apache httpd, arm64 on a t4g.micro instance in the Tokyo region.

    aws --region ap-northeast-1 ec2 run-instances --image-id resolve:ssm:/aws/service/marketplace/prod-754ykooldkoz6/latest --instance-type t4g.micro --key-name melody
    


    Please change the Image ID part, instance type, etc. according to the AMI you use.
    AMI aliases for each latest Movable Type AMI Edition.

    • Movable Type 7 (Amazon Linux 2, nginx, x86):
      /aws/service/marketplace/prod-gi3t34wqdyxbs/latest
    • Movable Type 7 (Amazon Linux 2, Apache httpd, x86):
      /aws/service/marketplace/prod-u345truadew34/latest
    • Movable Type 7 (Amazon Linux 2, nginx, arm64):
      /aws/service/marketplace/prod-uigurydvcgmxa/latest
    • Movable Type 7 (Amazon Linux 2, Apache httpd, arm64):
      /aws/service/marketplace/prod-754ykooldkoz6/latest
  4. Launching with CloudFormation
    EC2 instances can be launched using CloudFormation Template. You can make your own templates.

    a sample template (YAML) for launching Movable Type 7 (Amazon Linux 2, nginx, x86)

    AWSTemplateFormatVersion: "2010-09-09"
    Resources:
     Instance:
       Type: 'AWS::EC2::Instance'
       Properties:
         ImageId: '{{resolve:ssm:/aws/service/marketplace/prod-gi3t34wqdyxbs/latest}}'
         InstanceType: t3.medium
    

    Change the ImageId to match the AMI you wish to launch.

    a sample template (YAML) from which you can select the AMI to launch

    AWSTemplateFormatVersion: "2010-09-09"
    Mappings:
      ProductAliasMap:
        "al2-nginx-x86":
          AMI: '{{resolve:ssm:/aws/service/marketplace/prod-gi3t34wqdyxbs/latest}}'
          InstanceType: t3.medium
        "al2-httpd-x86":
          AMI: '{{resolve:ssm:/aws/service/marketplace/prod-u345truadew34/latest}}'
          InstanceType: t3.medium
        "al2-nginx-arm64":
          AMI: '{{resolve:ssm:/aws/service/marketplace/prod-uigurydvcgmxa/latest}}'
          InstanceType: t4g.medium
        "al2-httpd-arm64":
          AMI: '{{resolve:ssm:/aws/service/marketplace/prod-754ykooldkoz6/latest}}'
          InstanceType: t4g.medium
    
    
    Parameters:
      Product:
        Type: String
        AllowedValues:
          - "al2-nginx-arm64"
         - "al2-httpd-arm64"
          - "al2-nginx-x86"
          - "al2-httpd-x86"
    
    
    Resources:
      Instance:
        Type: 'AWS::EC2::Instance'
        Properties:
          ImageId: !FindInMap [ ProductAliasMap, !Ref Product, AMI ]
          InstanceType: !FindInMap [ ProductAliasMap, !Ref Product, InstanceType ]
    

Note: Security group and key pair settings are omitted.

Initial setup procedure for Movable Type AMI Edition

Movable Type AMI Edition requires initial configuration immediately after startup. To perform the initial configuration, you will need the public IP address and instance ID of the EC2 instance you launched.

  1. Access the EC2 instance on which Movable Type was launched via http.
    http://{{IP Address}}
  2. Click the “Start Movable Type” button on the Welcome screen.
  3. For security purposes, enter the instance ID of the EC2 instance you launched and press “Continue”. The instance ID starts with i-…
  4. The Account creation screen of Movable Type will appear. After entering the information, press the “Finish install” button.
  5. Database settings will be configured. When completed, click the “Sign In to Movable Type” button.
  6. When the Movable Type dashboard appears, the initial setup is complete.

Note:

  • If you are unable to access the instance, make sure that the settings for the security groups and the network configuration are correct.
  • If IMDS is prohibited, the instance ID confirmation screen will not appear. If unrestricted access to the instance is allowed, a third party may be able to perform the initial settings, so please be careful.
Back