-
Notifications
You must be signed in to change notification settings - Fork 5
AWS setup
There is inevitably some manual set-up required for an AWS account.
If you intend to use AWS, create a new account in the usual way. See the AWS documentation for guidance.
Because your first server will necessarily be manually created, you will need to create a static IP address. In the Search bar at the top type 'EC2', the first search item should be AWS EC2, click on it to go there. This will take you to the EC2 Dashboard
. Then:
- Under
Network & Security
in the left-hand menu, clickElastic IPs
- Click
Allocate Elastic IP address
in the top right corner - Click
Add new tag
, enter 'Name' in theKey
box and enter the hyphenated FQDN of your controller inValue
, e.g. 'controller-acme-com', then click theAllocate
button
If you have made your server, tick the box against your new Elastic IP address and under Actions
, top right, select Associate Elastic IP address
. On the next page choose your Instance
and the only Private IP address
available and click the Associate
button. This is now the external IPv4 address of your server. (Note, you can do this later if your EC2 instance doesn't exist yet, but you should do it before your create your DNS entries.)
Once that is done, login with your account credentials (the 'root' credentials) and in the Search bar at the top type 'IAM'. The first search item should be AWS IAM, click on it to go there. This will take you to the IAM Dashboard
. Then:
- Click
Users
on the left-hand menu - Click the
Create user
button in the top right corner - Write 'controller' in the
User name
box and click theNext
button - Select
Attach policies directly
on the right and in the search box type 'Admin' - The filtered list should show a policy called
AdministratorAccess
, check this one and click theNext
button - Check the summary and click
Create user
Now your IAM user exists and has full administrator privileges. Next we need to create credentials so we can use this user from our Ansible controller server later. In the user list click on your new 'controller' user, then:
- Click the
Security credentials
tab - Scroll down to
Access keys
and click theCreate access key
button on the right - Select
Command Line Interface (CLI)
, ignore the alternatives dialogue, check the confirmation box and clickNext
- Enter a sensible description such as 'Ansible controller user' and click
Create access key
- Copy down the access key and secret key in a safe place, you will never see the secret key again (there is a download option)