This repository has been archived by the owner on Aug 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 52
AWS Bosh Setup
Steve Wall edited this page Apr 6, 2017
·
11 revisions
-
Services->Network & Content Delivery->VPC
-
Start VPC Wizard
-
VPC with a single public subnet
- Use defaults if not specified below
- VPC Name: bosh-cf
- Availiability - us-east-1a has the most resources. This is a choice though.
- Subnet name - bosh-public-net <-- Giving a name here allows for a meaningful name in the list of subnets.
- Select "Create VPC"
- Use defaults if not specified below
-
Stay on VPC dashboard click on "Subnets"
- Select the public subnet just create - bosh-cf
- Select "Subnet Actions" drop down
- Select "Modify auto-assign IP settings"
- Select "Enable..." check box
- Select "Save" push button
- Select "Modify auto-assign IP settings"
-
Services->Compute->EC2
- Security Groups
- Create Security Group push button
- Dialog displays
- Security Group name: bosh-cf-sg
- Description: Security Group for Bosh
- VPC: bosh-cf
- Click Create push button
-
Select security from the list - bosh-cf-sg
-
In the bottom tabs select "Inbound Rules" (TODO: Rework with jump box and bosh security groups)
- Click Edit
- Add Rule push button
- Type: All TCP
- Source: "Custom" from drop down
- Source: "Select bosh-cf from autocomplete"
- Add Rule push button
- Type: All UDP
- Source: "Custom" from drop down
- Source: "Select bosh-cf from autocomplete"
- Add Rule push button
- Type: SSH (22)
- Source: Select "My IP" from drop down.
- Add Rule push button
- Type: Custom TCP Rule
- Port Range: 6868
- Source: Select "My IP" from drop down.
- Add Rule push button
- Type: Custom TCP Rule
- Port Range: 25555
- Click "Save"
-
Staying on the EC2 Dashboard under Network & Security select "Key Pairs" (Note: We used a common private key)
- Create Key Pair push button
- Key pair name: bosh
- Private key is displayed on Mac or downloaded to Downloads area.
- Move this file to your ~/.ssh directory
- cd ~/.ssh
- chmod 400
- Key pair name: bosh
- Create Key Pair push button
-
Staying on the EC2 Dashboard under Instances select "Instances"
- Select "Launch Instance" push button.
- From "Choose AMI" select Ubuntu Server 14.04
- Let default "t2.micro" selected
- Select "Next:Configure Instance Details" push button
- Network: bosh-cf
- Everything else default
- Select "Next: Add Storage" push button
- Leave defaults
- Select "Next: Add Tags" push button
- Leave blank
- Select "Next: Configure Security Group:
- Assign a security group: Select Radio Button "Select an existing security group"
- From list below select "bosh-cf-sg"
- Select "Review and Launch" push button
- Select "Launch" push button
- In dialog
- Under "Select a key pair" choose the "bosh" key pair created above.
- Select "acknowledge" check box
- Select "Launch Instances" push button
- Select "View Instances" push button
- Give our instance a name by selecting the pencil icon in the Name column.
- When "Status Checks" column is 2 of 2, the instance is ready to use.
-
ssh to instance
- ssh -i ~/.ssh/ ubuntu@
- sudo apt-get install ruby2.0 -y
- sudo gem install bosh_cli --no-ri --no-rdoc
- sudo gem install bundler --no-ri --no-rdoc
- sudo apt-get update
- sudo apt-get install vagrant
- vagrant plugin install vagrant-aws