Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
README.md
cf-jenkins-main-201.yml

README.md

LinkedIn slack Github

File me tickets or star the repo.

Table of Contents

Requirements

  1. Use cloudformation to start an EC2 instance
  2. Start Jenkins inside the EC2 instance

Procedures

Launch

  • Use CF to setup the env
export STACK_NAME="aws-jenkins"
export TMP_FILE="file://cf-jenkins-main-201.yml"

[ -n "$SSH_KEY_NAME" ] || export SSH_KEY_NAME="YOUR_SSH_KEYNAME_CUSTOMIZE"
aws cloudformation create-stack --template-body "$TMP_FILE" \
    --stack-name "$STACK_NAME" --parameters \
    ParameterKey=KeyName,ParameterValue=$SSH_KEY_NAME
aws cloudformation delete-stack --stack-name "$STACK_NAME"

  • Verify Jenkins curl -I http://$server_ip:8080