- more logs:
export BOSH_LOG_LEVEL=debug
- create bosh environment:
$ bosh create-env bosh.yml --state generated/state.json -o cpi.yml -o outbound-network.yml -o bosh-lite.yml -o bosh-lite-runc.yml -o jumpbox-user.yml --vars-store generated/creds.yml -l variables.yml
- idempotently converge VM to desired state in bosh.yml
-o
: include manifest
- set alias:
$ bosh alias-env vbox -e 192.168.50.6 --ca-cert <(bosh int ./creds.yml --path /director_ssl/ca)
- log in:
export BOSH_CLIENT=admin
export BOSH_CLIENT_SECRET=`bosh int ./creds.yml --path /admin_password`
- set alias
- log into bosh director
- create a release:
$ bosh create-release
- upload a release to bosh director:
$ bosh -e <envt> upload-release
- upload a stemcell downloaded from bosh.io:
$ bosh -e <envt> upload-stemcell <stemcell package>
- deploy:
$ bosh -e <envt> -d <deployment name> deploy manifest.yml
- list deployed instances:
$ bosh -e <envt> instances
$ sudo route add -net 10.244.0.0/16 192.168.50.6
# for webapp running on :8080, can `$ curl 10.244.0.2:8080`
- create ssh key using
ssh-keygen
- use
aws_key_pair
resource. must include public key. - create ec2 instance using above key pair.
- ssh into jumpbox:
ssh -i ~/.ssh/aws ubuntu@$(terraform output jumpbox_ip)