This document provides instructions to install RUNDECK PRO in an HA (cluster) configuration on AWS, taking advantage of ELB, RDS, and S3 for scale and availability.
This section describes the AWS environment setup needed before the Rundeck software can be installed.
Create a key pair to access the rundeck pro EC2 instances, rundeckpro-ec2user. This key pair will be specified when it is time to launch the EC2 instances later on. This is also the key pair used to ssh to the EC2 instances.
For further information, see http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html#having-ec2-create-your-key-pair
Create a Role to allow the Rundeck EC2 and S3 plugins to access AWS API so we don’t have to specify access and secret key strings.
For further information, see http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html#having-ec2-create-your-key-pair
Several security groups are defined to manage network access between the layers of the PRO environment (ELB->RUNDECK-RDS).
Create the follow groups:
sg:rundeck-elb
inbound:
outbound:
sg:rundeck-instances
inbound:
outbound:
sg:rundeck-rds
inbound:
For further information, see http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html#creating-security-group
Create a folder in the S3 bucket to store logs called rundeckpro. You will specify this folder name when the pro software is installed.
Go into the AWS Management Console and open the Amazon S3 console at https://console.aws.amazon.com/s3
Set Policy:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::rundeckpro/*"
}
]
}
For further information, see http://docs.aws.amazon.com/AmazonS3/latest/gsg/CreatingABucket.html
Create an RDS mysql instance, rundeck-rds and place it in the rundeck-rds security group. Specify a database named “rundeck”. Note the name of the RDS hostname because it is needed for the pro installation.
For further information, see http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_CreateInstance.html
Create two EC2 instances for the Rundeck PRO cluster. Specify the following when launching the instance:
For further information, see http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EC2_GetStarted.html#ec2-launch-instance_linux
Create the ELB called rundeckpro-ha-elb. If you defined the HTTPS listener, you must create a new SSL certificate. You will upload the SSL cert and key when defining the HTTPS listener.