Quickly setup an AWS EC2 instance with UnrealIRCd and Anope IRC services.
- Upload files to S3[1]
- Upload configuration to
s3://YourBucket/config/
- Upload install scripts to
s3://YourBucket/install/
- Upload configuration to
- Create an EC2 instance[2]:
- Set IAM to a role with S3 read rights
- In the user data section under advanced, add the
init-ec2.sh
script
- Launch the instance
- Attach an Elastic IP to it
- Done!
Steps 1.1 and 1.2 are handled by the upload-to-s3.sh
script.
Steps 2, 3 and 4 are handled by the launch-ec2-instance.sh
script.
The following policy allows Get
, Delete
and Put
actions on all items in the irc.codetalk.io
bucket. Note, that it does not allow listing the contents in it.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1447546160000",
"Effect": "Allow",
"Action": [
"s3:DeleteObject",
"s3:GetObject",
"s3:PutObject"
],
"Resource": [
"arn:aws:s3:::YourBucket/*"
]
}
]
}
Create the policy under AWS Console -> IAM -> Policy -> Create Policy. Then you can attach it to a user or group.