: Get the VM-Series Firewall Amazon Machine Image (AMI) ID
Focus
Focus

Get the VM-Series Firewall Amazon Machine Image (AMI) ID

Table of Contents
End-of-Life (EoL)

Get the VM-Series Firewall Amazon Machine Image (AMI) ID

If you want to automate the process of deploying the VM-Series firewall, learn how to get the AMI ID for the VM-Series firewall.
Use the following instructions to find the AMI ID for the VM-Series firewall that matches the PAN-OS version, license type,  and AWS region in which you want to launch the VM-Series firewall.
  1. Install AWS CLI on the client that you are using to retrieve the AMI ID, and login with your AWS credentials.
    Refer to the AWS documentation for instructions on installing the CLI.
  2. Find the AMI-ID with the following CLI command.
    aws ec2 describe-images --filters "Name=product-code,Values= <license-type-value>" Name=name,Values=PA-VM-AWS* <PAN-OS-version>*  --region <region> --output json
     You need to replace the value in the angle brackets <> with the relevant information as shown below:
    • Use the VM-Series product code for each license type. The values are:
      • Bundle 1—
        e9yfvyj3uag5uo5j2hjikv74n
      • Bundle 2—
        hd44w1chf26uv4p52cdynb2o
      • BYOL—
        6njl1pau431dv1qxipg63mvah
    • Use the PAN-OS version—9.1. If there are multiple feature releases within a PAN-OS version all the AMI-IDs are listed for you. For example,  in 9.1.x, you will view a listing of the AMI IDs for PAN-OS versions 9.1.2, 9.1.3, and you can use the AMI-ID for the PAN-OS version you need.
    For example: To find the AMI-ID for the VM-Series Bundle 1 for PAN-OS 9.1.2 in US California region, the CLI command is:
    aws ec2 describe-images --filters "Name=product-code,Values=e9yfvyj3uag5uo5j2hjikv74n" "Name=name,Values=PA-VM-AWS*9.1*"  --region us-west-1 --output json
    To view the output as a table, replace --output jsonwith--output table --query "Images[*].{Name:Name,AMI:ImageId,State:State}"
    The output is:
    { "ProductCodes": [ { "ProductCodeId": "e9yfvyj3uag5uo5j2hjikv74n", "ProductCodeType": "marketplace" } ], "Description": "[Copied ami-0bca43c13aad118d7 from us-east-1] PA-VM-AWS-9.1.2", "VirtualizationType": "hvm", "Hypervisor": "xen", "ImageOwnerAlias": "aws-marketplace", "EnaSupport": true, "SriovNetSupport": "simple", "ImageId": "ami-073032145e4357d41", "State": "available", "BlockDeviceMappings": [ { "DeviceName": "/dev/xvda", "Ebs": { "SnapshotId": "snap-0009036179b39824b", "DeleteOnTermination": false, "VolumeType": "gp2", "VolumeSize": 60, "Encrypted": false } } ], "Architecture": "x86_64", "ImageLocation": "aws-marketplace/PA-VM-AWS-9.1.2-f1260463-68e1-4bfb-bf2e-075c2664c1d7-ami-0d106268bcff16e73.4", "RootDeviceType": "ebs", "OwnerId": "679593333241", "RootDeviceName": "/dev/xvda", "CreationDate": "2020-04-21T12:45:22.000Z", "Public": true, "ImageType": "machine", "Name": "PA-VM-AWS-9.1.2-f1260463-68e1-4bfb-bf2e-075c2664c1d7-ami-0d106268bcff16e73.4" }