Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...


aws cli using --queries


Conductor

aws ec2 describe-images --filters Name=name,Values='*onductor*' --region us-west-2 --no-verify --color off


Code Block
titleAMI Image information
||+--------------------------------------------------------+---------------------------------------------------------------------------------------+||
||                                                                      Images                                                                      ||
|+--------------------+-----------------------------------------------------------------------------------------------------------------------------+|
||  Architecture      |  x86_64                                                                                                                     ||
||  CreationDate      |  2020-11-27T17:43:36.000Z                                                                                                   ||
||  Description       |  128 Technology Conductor 4.5.3-1 1125201700                                                                                ||
||  EnaSupport        |  True                                                                                                                       ||
||  Hypervisor        |  xen                                                                                                                        ||
||  ImageId           |  ami-04fc3c72319652de2                                                                                                      ||
||  ImageLocation     |  aws-marketplace/128 Technology Conductor 4.5.3-1 1125201700-58216001-bba0-4992-a96b-c103bab51b6d-ami-0d826c44c18d51efa.4   ||
||  ImageOwnerAlias   |  aws-marketplace                                                                                                            ||
||  ImageType         |  machine                                                                                                                    ||
||  Name              |  128 Technology Conductor 4.5.3-1 1125201700-58216001-bba0-4992-a96b-c103bab51b6d-ami-0d826c44c18d51efa.4                   ||
||  OwnerId           |  679593333241                                                                                                               ||
||  PlatformDetails   |  Linux/UNIX                                                                                                                 ||
||  Public            |  True                                                                                                                       ||
||  RootDeviceName    |  /dev/sda1                                                                                                                  ||
||  RootDeviceType    |  ebs                                                                                                                        ||
||  SriovNetSupport   |  simple                                                                                                                     ||
||  State             |  available                                                                                                                  ||
||  UsageOperation    |  RunInstances                                                                                                               ||
||  VirtualizationType|  hvm                                                                                                                        ||
|+--------------------+-----------------------------------------------------------------------------------------------------------------------------+|




aws --region us-west-2 ec2 describe-images --filters Name=name,Values='128*' --query "Images[*].{ID:ImageId,Name:Name}" --no-verify --color off

aws --region us-west-2 ec2 describe-images --filters Name=name,Values='128*Conductor*' --query "Images[*].{ID:ImageId,Name:Name}" --no-verify --color off

aws --region us-west-2 ec2 describe-images --filters Name=name,Values='128*Router*' --query "Images[*].{ID:ImageId,Name:Name}" --no-verify --color off

aws --region us-west-2 ec2 describe-images --filters Name=name,Values='128*Networking*' --query "Images[*].{ID:ImageId,Name:Name}" --no-verify --color off


Code Block
titleConductor AMI ID
collapsetrue
C:\Users\jkriker\Documents\GitHub\terraform_scripts\SSR Conductor in AWS>aws --region us-west-2 ec2 describe-images --filters Name=name,Values='128*' --query "Images[*].{ID:ImageId,Name:Name}" --no-verify --color off


C:\Program Files\Amazon\AWSCLIV2\urllib3\connectionpool.py:988: InsecureRequestWarning: Unverified HTTPS request is being made to host 'ec2.us-west-2.amazonaws.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings

----------------------------------------------------------------------------------------------------------------------------------------------------
|                                                                  DescribeImages                                                                  |
+-----------------------+--------------------------------------------------------------------------------------------------------------------------+
|          ID           |                                                          Name                                                            |
+-----------------------+--------------------------------------------------------------------------------------------------------------------------+
|  ami-009cc5b4a0d248ee6|  128 Technology Router 4.5.3-1 1125201700-0e9b966b-67a8-444b-9d44-0168b4eb4dde-ami-0da8ccfacef652fc7.4                   |
|  ami-015b1e7b069e58e47|  128 Technology Conductor 4.2.7-1 0501201923-58216001-bba0-4992-a96b-c103bab51b6d-ami-02a13054f7ac353fd.4                |
|  ami-04fc3c72319652de2|  128 Technology Conductor 4.5.3-1 1125201700-58216001-bba0-4992-a96b-c103bab51b6d-ami-0d826c44c18d51efa.4                |
|  ami-059e24634095407a5|  128 Technology Networking Platform 1.3.0 BYOL 0901200944-05240d13-baf9-4981-a1f2-996bf19b9458-ami-03c7a9ec80fbd54e6.4   |
|  ami-05a411542623d2914|  128 Technology Router 4.2.7 0501201923-0e9b966b-67a8-444b-9d44-0168b4eb4dde-ami-0865d77eab7b69804.4                     |
|  ami-0c56564e1a757217a|  128 Technology Networking Platform 1.3.2 BYOL 0412211912-05240d13-baf9-4981-a1f2-996bf19b9458                           |
+-----------------------+--------------------------------------------------------------------------------------------------------------------------+





VSRX3

--region us-west-2 

Values=junos-vsrx3*

aws ec2 describe-images --filters Name=name,Values='junos-vsrx3*' --region us-west-2 --no-verify --color off


aws --region us-west-2 ec2 describe-images --filters Name=name,Values='junos-vsrx3*prod*' --query "Images[*].{ID:ImageId,Name:Name}" --no-verify --color off

on windows 10 command line use " instead of '

Code Block
titlecmd on windows 10
C:\Users\jkriker>aws --region us-west-2 ec2 describe-images --filters Name=name,Values='junos-vsrx3*prod*' --query "Images[*].{ID:ImageId,Name:Name}" --no-verify --color off

-------------------------------------------------------------------------------------------------------------------------------------
|                                                          DescribeImages                                                           |
+-----------------------+-----------------------------------------------------------------------------------------------------------+
|          ID           |                                                   Name                                                    |
+-----------------------+-----------------------------------------------------------------------------------------------------------+
|  ami-02a00f9e434a41d2a|  junos-vsrx3-x86-64-19.4R2.6-consec4--prod-deea68f3-6505-43f8-88cf-b4e9e99e2d89-ami-075abf49846b84133.4   |
|  ami-047df409d805388cd|  junos-vsrx3-x86-64-19.4R2.6-byol--prod-4d1495fd-4d1f-48d0-9ec6-b67794a58765-ami-0583e61816367e0f7.4      |
|  ami-09b8e620d94ff2813|  junos-vsrx3-x86-64-19.4R2.6-appsec4--prod-8987d154-c3e3-411e-8f38-aecdd80e529f-ami-0a85a57be17683cd3.4   |
+-----------------------+-----------------------------------------------------------------------------------------------------------+



Code Block
titlevSRX
collapsetrue
aws --region us-west-2 ec2 describe-images --filters Name=name,Values=junos-vsrx3* --query 'Images[*].{ID:ImageId,Name:Description}' --no-verify

C:\Program Files\Amazon\AWSCLI\.\botocore\vendored\requests\packages\urllib3\connectionpool.py:768: 
InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html
-----------------------------------------------------------------
|                        DescribeImages                         |
+------------------------+--------------------------------------+
|           ID           |                Name                  |
+------------------------+--------------------------------------+
|  ami-002d4aca8535c20de |  junos-vsrx3-x86-64-18.4R1.8-appsec  |
|  ami-05800eb9de9e5bc35 |  junos-vsrx3-x86-64-18.4R1.8-consec  |
|  ami-0cf5905679d7747fd |  junos-vsrx3-x86-64-18.4R1.8         |
+------------------------+--------------------------------------+



Filter


--region us-west-2

Values=vmx-nested-18*


Code Block
titlevMX
collapsetrue
aws --region us-west-2 ec2 describe-images --filters Name=name,Values=vmx-nested-18* --query 'Images[*].{ID:ImageId,Name:Description}' --no-verify

C:\Program Files\Amazon\AWSCLI\.\botocore\vendored\requests\packages\urllib3\connectionpool.py:768: 
InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html
----------------------------------------------------
|                  DescribeImages                  |
+---------------+----------------------------------+
|      ID       |              Name                |
+---------------+----------------------------------+
|  ami-12eaad6a |  vmx-nested-18.1R1.9-9-payg-ami  |
|  ami-8986fcf1 |  vmx-nested-18.1R1.9-9-ami       |
+---------------+----------------------------------+


--region us-west-2 ec2

--image-id=ami-005bdb005fb00e791


Code Block
titleby image-id
collapsetrue
aws --region us-west-2 ec2 describe-images --filters --image-id=ami-005bdb005fb00e791 --query 'Images[*].{ID:ImageId,Name:Description}' --no-verify

C:\Program Files\Amazon\AWSCLI\.\botocore\vendored\requests\packages\urllib3\connectionpool.py:768: InsecureRequestWarning: 
Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html
----------------------------------------------------------------------------------
|                                 DescribeImages                                 |
+------+-------------------------------------------------------------------------+
|  ID  |  ami-005bdb005fb00e791                                                  |
|  Name|  Canonical, Ubuntu, 18.04 LTS, amd64 bionic image build on 2019-02-12   |
+------+-------------------------------------------------------------------------+