Last active
April 29, 2023 16:37
-
-
Save ThinGuy/a268b476948cbbbfc94ce6cef4bd97f3 to your computer and use it in GitHub Desktop.
Create Openstack Flavors that match those on AWS, Azure and GCE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cat <<EOF | |
╔═════════════════════════╗ | |
║ Adding gce flavors ║ | |
╚═════════════════════════╝ | |
EOF | |
openstack flavor create f1-micro --id auto --vcpus 1 --ram 205 --ephemeral 5 --public | |
openstack flavor create g1-small --id auto --vcpus 1 --ram 512 --ephemeral 5 --public | |
openstack flavor create n1-highcpu-16 --id auto --vcpus 16 --ram 16384 --ephemeral 5 --public | |
openstack flavor create n1-highcpu-2 --id auto --vcpus 2 --ram 2048 --ephemeral 5 --public | |
openstack flavor create n1-highcpu-32 --id auto --vcpus 32 --ram 32768 --ephemeral 5 --public | |
openstack flavor create n1-highcpu-4 --id auto --vcpus 4 --ram 4096 --ephemeral 5 --public | |
openstack flavor create n1-highcpu-64 --id auto --vcpus 64 --ram 65536 --ephemeral 5 --public | |
openstack flavor create n1-highcpu-8 --id auto --vcpus 8 --ram 8192 --ephemeral 5 --public | |
openstack flavor create n1-highmem-16 --id auto --vcpus 16 --ram 16384 --ephemeral 5 --public | |
openstack flavor create n1-highmem-2 --id auto --vcpus 2 --ram 2048 --ephemeral 5 --public | |
openstack flavor create n1-highmem-32 --id auto --vcpus 32 --ram 32768 --ephemeral 5 --public | |
openstack flavor create n1-highmem-4 --id auto --vcpus 4 --ram 4096 --ephemeral 5 --public | |
openstack flavor create n1-highmem-64 --id auto --vcpus 64 --ram 65536 --ephemeral 5 --public | |
openstack flavor create n1-highmem-8 --id auto --vcpus 8 --ram 8192 --ephemeral 5 --public | |
openstack flavor create n1-standard-1 --id auto --vcpus 1 --ram 1024 --ephemeral 5 --public | |
openstack flavor create n1-standard-16 --id auto --vcpus 16 --ram 16384 --ephemeral 5 --public | |
openstack flavor create n1-standard-2 --id auto --vcpus 2 --ram 2048 --ephemeral 5 --public | |
openstack flavor create n1-standard-32 --id auto --vcpus 32 --ram 32768 --ephemeral 5 --public | |
openstack flavor create n1-standard-4 --id auto --vcpus 4 --ram 4096 --ephemeral 5 --public | |
openstack flavor create n1-standard-64 --id auto --vcpus 64 --ram 65536 --ephemeral 5 --public | |
openstack flavor create n1-standard-8 --id auto --vcpus 8 --ram 8192 --ephemeral 5 --public | |
cat <<EOF | |
╔═════════════════════════╗ | |
║ Adding aws flavors ║ | |
╚═════════════════════════╝ | |
EOF | |
openstack flavor create c1.medium --id auto --vcpus 2 --ram 2048 --ephemeral 5 --public | |
openstack flavor create c1.xlarge --id auto --vcpus 8 --ram 8192 --ephemeral 5 --public | |
openstack flavor create c3.2xlarge --id auto --vcpus 8 --ram 8192 --ephemeral 5 --public | |
openstack flavor create c3.4xlarge --id auto --vcpus 16 --ram 16384 --ephemeral 5 --public | |
openstack flavor create c3.8xlarge --id auto --vcpus 32 --ram 32768 --ephemeral 5 --public | |
openstack flavor create c3.large --id auto --vcpus 2 --ram 2048 --ephemeral 5 --public | |
openstack flavor create c3.xlarge --id auto --vcpus 4 --ram 4096 --ephemeral 5 --public | |
openstack flavor create c4.2xlarge --id auto --vcpus 8 --ram 8192 --ephemeral 5 --public | |
openstack flavor create c4.4xlarge --id auto --vcpus 16 --ram 16384 --ephemeral 5 --public | |
openstack flavor create c4.8xlarge --id auto --vcpus 36 --ram 36864 --ephemeral 5 --public | |
openstack flavor create c4.large --id auto --vcpus 2 --ram 2048 --ephemeral 5 --public | |
openstack flavor create c4.xlarge --id auto --vcpus 4 --ram 4096 --ephemeral 5 --public | |
openstack flavor create c5.18xlarge --id auto --vcpus 72 --ram 73728 --ephemeral 5 --public | |
openstack flavor create c5.2xlarge --id auto --vcpus 8 --ram 8192 --ephemeral 5 --public | |
openstack flavor create c5.4xlarge --id auto --vcpus 16 --ram 16384 --ephemeral 5 --public | |
openstack flavor create c5.9xlarge --id auto --vcpus 36 --ram 36864 --ephemeral 5 --public | |
openstack flavor create c5.large --id auto --vcpus 2 --ram 2048 --ephemeral 5 --public | |
openstack flavor create c5.xlarge --id auto --vcpus 4 --ram 4096 --ephemeral 5 --public | |
openstack flavor create cc2.8xlarge --id auto --vcpus 32 --ram 32768 --ephemeral 5 --public | |
openstack flavor create cg1.4xlarge --id auto --vcpus 16 --ram 16384 --ephemeral 5 --public | |
openstack flavor create cr1.8xlarge --id auto --vcpus 32 --ram 32768 --ephemeral 5 --public | |
openstack flavor create d2.2xlarge --id auto --vcpus 8 --ram 8192 --ephemeral 5 --public | |
openstack flavor create d2.4xlarge --id auto --vcpus 16 --ram 16384 --ephemeral 5 --public | |
openstack flavor create d2.8xlarge --id auto --vcpus 36 --ram 36864 --ephemeral 5 --public | |
openstack flavor create d2.xlarge --id auto --vcpus 4 --ram 4096 --ephemeral 5 --public | |
openstack flavor create f1.16xlarge --id auto --vcpus 64 --ram 65536 --ephemeral 5 --public | |
openstack flavor create f1.2xlarge --id auto --vcpus 8 --ram 8192 --ephemeral 5 --public | |
openstack flavor create g2.2xlarge --id auto --vcpus 8 --ram 8192 --ephemeral 5 --public | |
openstack flavor create g2.8xlarge --id auto --vcpus 32 --ram 32768 --ephemeral 5 --public | |
openstack flavor create g3.16xlarge --id auto --vcpus 64 --ram 65536 --ephemeral 5 --public | |
openstack flavor create g3.4xlarge --id auto --vcpus 16 --ram 16384 --ephemeral 5 --public | |
openstack flavor create g3.8xlarge --id auto --vcpus 32 --ram 32768 --ephemeral 5 --public | |
openstack flavor create hi1.4xlarge --id auto --vcpus 16 --ram 16384 --ephemeral 5 --public | |
openstack flavor create hs1.8xlarge --id auto --vcpus 16 --ram 16384 --ephemeral 5 --public | |
openstack flavor create i2.2xlarge --id auto --vcpus 8 --ram 8192 --ephemeral 5 --public | |
openstack flavor create i2.4xlarge --id auto --vcpus 16 --ram 16384 --ephemeral 5 --public | |
openstack flavor create i2.8xlarge --id auto --vcpus 32 --ram 32768 --ephemeral 5 --public | |
openstack flavor create i2.xlarge --id auto --vcpus 4 --ram 4096 --ephemeral 5 --public | |
openstack flavor create i3.16xlarge --id auto --vcpus 64 --ram 65536 --ephemeral 5 --public | |
openstack flavor create i3.2xlarge --id auto --vcpus 8 --ram 8192 --ephemeral 5 --public | |
openstack flavor create i3.4xlarge --id auto --vcpus 16 --ram 16384 --ephemeral 5 --public | |
openstack flavor create i3.8xlarge --id auto --vcpus 32 --ram 32768 --ephemeral 5 --public | |
openstack flavor create i3.large --id auto --vcpus 2 --ram 2048 --ephemeral 5 --public | |
openstack flavor create i3.xlarge --id auto --vcpus 4 --ram 4096 --ephemeral 5 --public | |
openstack flavor create m1.large --id auto --vcpus 2 --ram 2048 --ephemeral 5 --public | |
openstack flavor create m1.medium --id auto --vcpus 1 --ram 1024 --ephemeral 5 --public | |
openstack flavor create m1.small --id auto --vcpus 1 --ram 1024 --ephemeral 5 --public | |
openstack flavor create m1.xlarge --id auto --vcpus 4 --ram 4096 --ephemeral 5 --public | |
openstack flavor create m2.2xlarge --id auto --vcpus 4 --ram 4096 --ephemeral 5 --public | |
openstack flavor create m2.4xlarge --id auto --vcpus 8 --ram 8192 --ephemeral 5 --public | |
openstack flavor create m2.xlarge --id auto --vcpus 2 --ram 2048 --ephemeral 5 --public | |
openstack flavor create m3.2xlarge --id auto --vcpus 8 --ram 8192 --ephemeral 5 --public | |
openstack flavor create m3.large --id auto --vcpus 2 --ram 2048 --ephemeral 5 --public | |
openstack flavor create m3.medium --id auto --vcpus 1 --ram 1024 --ephemeral 5 --public | |
openstack flavor create m3.xlarge --id auto --vcpus 4 --ram 4096 --ephemeral 5 --public | |
openstack flavor create m4.10xlarge --id auto --vcpus 40 --ram 40960 --ephemeral 5 --public | |
openstack flavor create m4.16xlarge --id auto --vcpus 64 --ram 65536 --ephemeral 5 --public | |
openstack flavor create m4.2xlarge --id auto --vcpus 8 --ram 8192 --ephemeral 5 --public | |
openstack flavor create m4.4xlarge --id auto --vcpus 16 --ram 16384 --ephemeral 5 --public | |
openstack flavor create m4.large --id auto --vcpus 2 --ram 2048 --ephemeral 5 --public | |
openstack flavor create m4.xlarge --id auto --vcpus 4 --ram 4096 --ephemeral 5 --public | |
openstack flavor create p2.16xlarge --id auto --vcpus 64 --ram 65536 --ephemeral 5 --public | |
openstack flavor create p2.8xlarge --id auto --vcpus 32 --ram 32768 --ephemeral 5 --public | |
openstack flavor create p2.xlarge --id auto --vcpus 4 --ram 4096 --ephemeral 5 --public | |
openstack flavor create r3.2xlarge --id auto --vcpus 8 --ram 8192 --ephemeral 5 --public | |
openstack flavor create r3.4xlarge --id auto --vcpus 16 --ram 16384 --ephemeral 5 --public | |
openstack flavor create r3.8xlarge --id auto --vcpus 32 --ram 32768 --ephemeral 5 --public | |
openstack flavor create r3.large --id auto --vcpus 2 --ram 2048 --ephemeral 5 --public | |
openstack flavor create r3.xlarge --id auto --vcpus 4 --ram 4096 --ephemeral 5 --public | |
openstack flavor create r4.16xlarge --id auto --vcpus 64 --ram 65536 --ephemeral 5 --public | |
openstack flavor create r4.2xlarge --id auto --vcpus 8 --ram 8192 --ephemeral 5 --public | |
openstack flavor create r4.4xlarge --id auto --vcpus 16 --ram 16384 --ephemeral 5 --public | |
openstack flavor create r4.8xlarge --id auto --vcpus 32 --ram 32768 --ephemeral 5 --public | |
openstack flavor create r4.large --id auto --vcpus 2 --ram 2048 --ephemeral 5 --public | |
openstack flavor create r4.xlarge --id auto --vcpus 4 --ram 4096 --ephemeral 5 --public | |
openstack flavor create t1.micro --id auto --vcpus 1 --ram 1024 --ephemeral 5 --public | |
openstack flavor create t2.2xlarge --id auto --vcpus 8 --ram 8192 --ephemeral 5 --public | |
openstack flavor create t2.large --id auto --vcpus 2 --ram 2048 --ephemeral 5 --public | |
openstack flavor create t2.medium --id auto --vcpus 2 --ram 2048 --ephemeral 5 --public | |
openstack flavor create t2.micro --id auto --vcpus 1 --ram 1024 --ephemeral 5 --public | |
openstack flavor create t2.nano --id auto --vcpus 1 --ram 1024 --ephemeral 5 --public | |
openstack flavor create t2.small --id auto --vcpus 1 --ram 1024 --ephemeral 5 --public | |
openstack flavor create t2.xlarge --id auto --vcpus 4 --ram 4096 --ephemeral 5 --public | |
openstack flavor create x1.16xlarge --id auto --vcpus 64 --ram 65536 --ephemeral 5 --public | |
openstack flavor create x1.32xlarge --id auto --vcpus 128 --ram 131072 --ephemeral 5 --public | |
cat <<EOF | |
╔═══════════════════════════╗ | |
║ Adding azure flavors ║ | |
╚═══════════════════════════╝ | |
EOF | |
openstack flavor create A10 --id auto --vcpus 8 --ram 8192 --ephemeral 5 --public | |
openstack flavor create A11 --id auto --vcpus 16 --ram 16384 --ephemeral 5 --public | |
openstack flavor create A5 --id auto --vcpus 2 --ram 2048 --ephemeral 5 --public | |
openstack flavor create A6 --id auto --vcpus 4 --ram 4096 --ephemeral 5 --public | |
openstack flavor create A7 --id auto --vcpus 8 --ram 8192 --ephemeral 5 --public | |
openstack flavor create A8 --id auto --vcpus 8 --ram 8192 --ephemeral 5 --public | |
openstack flavor create A9 --id auto --vcpus 16 --ram 16384 --ephemeral 5 --public | |
openstack flavor create ExtraLarge --id auto --vcpus 8 --ram 8192 --ephemeral 5 --public | |
openstack flavor create ExtraSmall --id auto --vcpus 1 --ram 1024 --ephemeral 5 --public | |
openstack flavor create Large --id auto --vcpus 4 --ram 4096 --ephemeral 5 --public | |
openstack flavor create Medium --id auto --vcpus 2 --ram 2048 --ephemeral 5 --public | |
openstack flavor create Small --id auto --vcpus 1 --ram 1024 --ephemeral 5 --public | |
openstack flavor create Standard_A1_v2 --id auto --vcpus 1 --ram 1024 --ephemeral 5 --public | |
openstack flavor create Standard_A2_v2 --id auto --vcpus 2 --ram 2048 --ephemeral 5 --public | |
openstack flavor create Standard_A2m_v2 --id auto --vcpus 2 --ram 2048 --ephemeral 5 --public | |
openstack flavor create Standard_A4_v2 --id auto --vcpus 4 --ram 4096 --ephemeral 5 --public | |
openstack flavor create Standard_A4m_v2 --id auto --vcpus 4 --ram 4096 --ephemeral 5 --public | |
openstack flavor create Standard_A8_v2 --id auto --vcpus 8 --ram 8192 --ephemeral 5 --public | |
openstack flavor create Standard_A8m_v2 --id auto --vcpus 8 --ram 8192 --ephemeral 5 --public | |
openstack flavor create Standard_D1 --id auto --vcpus 1 --ram 1024 --ephemeral 5 --public | |
openstack flavor create Standard_D11 --id auto --vcpus 2 --ram 2048 --ephemeral 5 --public | |
openstack flavor create Standard_D11_v2 --id auto --vcpus 2 --ram 2048 --ephemeral 5 --public | |
openstack flavor create Standard_D12 --id auto --vcpus 4 --ram 4096 --ephemeral 5 --public | |
openstack flavor create Standard_D12_v2 --id auto --vcpus 4 --ram 4096 --ephemeral 5 --public | |
openstack flavor create Standard_D13 --id auto --vcpus 8 --ram 8192 --ephemeral 5 --public | |
openstack flavor create Standard_D13_v2 --id auto --vcpus 8 --ram 8192 --ephemeral 5 --public | |
openstack flavor create Standard_D14 --id auto --vcpus 16 --ram 16384 --ephemeral 5 --public | |
openstack flavor create Standard_D14_v2 --id auto --vcpus 16 --ram 16384 --ephemeral 5 --public | |
openstack flavor create Standard_D15_v2 --id auto --vcpus 20 --ram 20480 --ephemeral 5 --public | |
openstack flavor create Standard_D1_v2 --id auto --vcpus 1 --ram 1024 --ephemeral 5 --public | |
openstack flavor create Standard_D2 --id auto --vcpus 2 --ram 2048 --ephemeral 5 --public | |
openstack flavor create Standard_D2_v2 --id auto --vcpus 2 --ram 2048 --ephemeral 5 --public | |
openstack flavor create Standard_D3 --id auto --vcpus 4 --ram 4096 --ephemeral 5 --public | |
openstack flavor create Standard_D3_v2 --id auto --vcpus 4 --ram 4096 --ephemeral 5 --public | |
openstack flavor create Standard_D4 --id auto --vcpus 8 --ram 8192 --ephemeral 5 --public | |
openstack flavor create Standard_D4_v2 --id auto --vcpus 8 --ram 8192 --ephemeral 5 --public | |
openstack flavor create Standard_D5_v2 --id auto --vcpus 16 --ram 16384 --ephemeral 5 --public | |
openstack flavor create Standard_G1 --id auto --vcpus 2 --ram 2048 --ephemeral 5 --public | |
openstack flavor create Standard_G2 --id auto --vcpus 4 --ram 4096 --ephemeral 5 --public | |
openstack flavor create Standard_G3 --id auto --vcpus 8 --ram 8192 --ephemeral 5 --public | |
openstack flavor create Standard_G4 --id auto --vcpus 16 --ram 16384 --ephemeral 5 --public | |
openstack flavor create Standard_G5 --id auto --vcpus 32 --ram 32768 --ephemeral 5 --public | |
openstack flavor create Standard_H16 --id auto --vcpus 16 --ram 16384 --ephemeral 5 --public | |
openstack flavor create Standard_H16m --id auto --vcpus 16 --ram 16384 --ephemeral 5 --public | |
openstack flavor create Standard_H16mr --id auto --vcpus 16 --ram 16384 --ephemeral 5 --public | |
openstack flavor create Standard_H16r --id auto --vcpus 16 --ram 16384 --ephemeral 5 --public | |
openstack flavor create Standard_H8 --id auto --vcpus 8 --ram 8192 --ephemeral 5 --public | |
openstack flavor create Standard_H8m --id auto --vcpus 8 --ram 8192 --ephemeral 5 --public |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment