Skip to content

mjanapat/aws-terraform-ansible

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Author : KHAJA EHTESHAMUDDIN AHMED

This Repo illustrates to help us with setting the Apache Web Server using terraform on AWS CLOUD.

Steps are available in reference IAC file VM-Provision-AWS.iac which is used as Scripted Pipeline.

Configuring Jenkins To configure AWS credentials in Jenkins:

On the Jenkins dashboard, go to Manage Jenkins > Manage Plugins in the Available tab. Search for the Pipeline: AWS Steps plugin and choose Install without restart. Navigate to Manage Jenkins > Manage Credentials > Jenkins (global) > Global Credentials > Add Credentials.

Select the option AWS Credentials for AWS credentials configuration in Jenkins as below. image

Next, Add the GIT credentials in Jenkins ( first create the token in the Git) Select the option as 'Username and Password' and provide username as email id and password as Token generated in GIT. image

Use Project as "Pipeline" and provide the VM-Provision-AWS.iac , provide the below parameters to the pipeline

ENV-master, branch-master,Approval -> --auto-approve, action -> apply,destroy, GITURL --> (https://github.com/khajaehtesham/aws-terraform-ansible.git)

About

This repo is to provision ec2 instances and configure the server with apache web using ansible

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • HCL 96.2%
  • Shell 3.8%