Installs Jenkins and Nginx on EC2 CentOS.
Nginx works as a proxy from 80 to 8080 port
CentOS AMI details: CentOS AMI on AWS Marketplace
Terraform module: Terraform registry
Creates next resources on AWS:
- EC2 instance (jenkins-server)
- security group for jenkins-server
- key_pair for ssh access to jenkins-server
Variables that are used by this module:
- aws_access_key - AWS account public key
- aws_secret_key - AWS account private key
- aws_region - AWS region
- aws_instance_ami - CentOS AMI ID (default: ami-dd3c0f36). Last updated: 03.08.2018
- aws_instance_type - EC2 instance Type (example: t2.micro)
- aws_instance_name - EC2 instance name
- aws_security_group_name - name of new security group
- aws_key_pair_name - name of new key_pair
- aws_key_pair_public_key_path - path to ssh public key (example: /home/admin/.ssh/id_rsa.pub)
- aws_key_pair_private_key_path - path to ssh private key (example: /home/admin/.ssh/id_rsa)
- show_jenkins_password - show initialAdminPassword eventually (default: 0 - false)
- attach_test_uids - attach uniq hash to resources' names (default: 0 - false)
https://gist.github.com/salvatoris/f45e717433a6f09482963fbd01d24206
https://gist.github.com/salvatoris/1de5b5408303eb554305a876aa0ce846
- How to get info about latest CentOS AMI ?