| |
@@ -47,12 +47,30 @@
|
| |
``Click to launch`` button to launch an instance from the x86_64
|
| |
AMI. Select the US East (N. Virginia) region.
|
| |
|
| |
+ You will get redirected to the Amazon AWS page.
|
| |
|
| |
- 2. Choose Instance Type
|
| |
- .......................
|
| |
|
| |
- You will get redirected to Amazon and asked to choose an instance
|
| |
- type. Currently, we use the following:
|
| |
+ 2. Name and tags
|
| |
+ ................
|
| |
+
|
| |
+ - Set ``Name`` and add ``-new`` suffix (e.g. ``copr-distgit-dev-new``
|
| |
+ or ``copr-distgit-prod-new``)
|
| |
+ - Set ``CoprInstance`` to ``devel`` or ``production``
|
| |
+ - Set ``CoprPurpose`` to ``infrastructure``
|
| |
+ - Set ``FedoraGroup`` to ``copr``
|
| |
+
|
| |
+
|
| |
+ 3. Application and OS Images (Amazon Machine Image)
|
| |
+ ...................................................
|
| |
+
|
| |
+ Skip this section, we already chose the correct AMI from the Fedora
|
| |
+ website.
|
| |
+
|
| |
+
|
| |
+ 4. Instance type
|
| |
+ ................
|
| |
+
|
| |
+ Currently, we use the following instance types:
|
| |
|
| |
+----------------+-------------+-------------+
|
| |
| | Dev | Production |
|
| |
@@ -70,56 +88,60 @@
|
| |
the cheapest available instance type according to our needs.
|
| |
|
| |
|
| |
- 3. Configure Instance
|
| |
- .....................
|
| |
-
|
| |
- - Select ``Network`` without ``| foo`` suffix
|
| |
- - Select ``Subnet`` to be ``us-east-1c``
|
| |
- - Opt-in the ``Protect against accidental termination`` checkbox
|
| |
- - Request IPv6 assignment ``IPv6 IPs -> Add IP``
|
| |
+ 5. Key pair (login)
|
| |
+ ...................
|
| |
|
| |
+ - Make sure to use existing key pair named ``Ansible Key``. This allows us to
|
| |
+ run the playbooks on ``batcave01`` box against the newly spawned VM.
|
| |
|
| |
- 4. Add Storage
|
| |
- ..............
|
| |
|
| |
- - Update the ``Size (GiB)`` value to resemble root partition size of
|
| |
- the currently running instance
|
| |
- - Select ``Encryption`` key, don't leave the partition
|
| |
- unencrypted. Use whatever is ``(default)``
|
| |
+ 6. Network settings
|
| |
+ ...................
|
| |
|
| |
+ - Click the ``Edit`` button in the box heading to show more options
|
| |
+ - Select VPC ``vpc-0af***********972``
|
| |
+ - Select ``Subnet`` to be ``us-east-1c``
|
| |
+ - Switch ``Auto-assign IPv6 IP`` to ``Enable``
|
| |
+ - Switch to ``Select existing security group`` and pick one of
|
| |
|
| |
- 5. Add Tags
|
| |
- ...........
|
| |
+ - ``copr-frontend-sg``
|
| |
+ - ``copr-backend-sg``
|
| |
+ - ``copr-distgit-sg``
|
| |
+ - ``copr-keygen-sg``
|
| |
|
| |
- - Set ``CoprInstance`` to ``devel`` or ``production``
|
| |
- - Set ``CoprPurpose`` to ``infrastructure``
|
| |
- - Set ``FedoraGroup`` to ``copr``
|
| |
- - Set ``Name`` and add ``-new`` suffix (e.g. ``copr-distgit-dev-new``
|
| |
- or ``copr-distgit-prod-new``)
|
| |
|
| |
+ 7. Configure storage
|
| |
+ ....................
|
| |
|
| |
- 6. Configure Security Group
|
| |
- ...........................
|
| |
+ - Click the ``Advanced`` button in the box heading to show more options
|
| |
+ - Update the ``Size (GiB)`` of the root partition
|
| |
|
| |
- - Select an existing security group and pick one of
|
| |
+ +----------------+-------------+-------------+
|
| |
+ | | Dev | Production |
|
| |
+ +================+=============+=============+
|
| |
+ | **frontend** | 50G | 50G |
|
| |
+ +----------------+-------------+-------------+
|
| |
+ | **backend** | 20G | 100G |
|
| |
+ +----------------+-------------+-------------+
|
| |
+ | **keygen** | 10G | 20G |
|
| |
+ +----------------+-------------+-------------+
|
| |
+ | **distgit** | 20G | 30G |
|
| |
+ +----------------+-------------+-------------+
|
| |
|
| |
- - ``copr-frontend-sg``
|
| |
- - ``copr-backend-sg``
|
| |
- - ``copr-distgit-sg``
|
| |
- - ``copr-keygen-sg``
|
| |
+ - Turn on the ``Encrypted`` option
|
| |
+ - Select ``KMS key`` to whatever is ``(default)``
|
| |
|
| |
|
| |
- 7. Review
|
| |
- .........
|
| |
+ 8. Advanced details
|
| |
+ ...................
|
| |
|
| |
- ``Review and Launch`` the instance.
|
| |
+ - ``Termination protection`` - ``Enable``
|
| |
|
| |
|
| |
- 8. Public Key
|
| |
- .............
|
| |
+ 9. Launch instance
|
| |
+ ..................
|
| |
|
| |
- - Make sure to use existing key pair named ``Ansible Key``. This allows us to
|
| |
- run the playbooks on ``batcave01`` box against the newly spawned VM.
|
| |
+ Click ``Launch instance`` in the right panel.
|
| |
|
| |
|
| |
Pre-prepare the new VM
|
| |
I would probably prefer to do
pipes
=>shlex
move everywhere: