All Projects → david-wells-1 → jenkins-terraform-pipeline

david-wells-1 / jenkins-terraform-pipeline

Licence: other
create a jenkins pipeline which uses terraform to manage AWS resources

Programming Languages

shell
77523 projects
HCL
1544 projects

Projects that are alternatives of or similar to jenkins-terraform-pipeline

Jenkins Workflow
contains handy groovy workflow-libs scripts
Stars: ✭ 41 (+141.18%)
Mutual labels:  jenkins, pipeline
Jenkins Pipeline Library
wcm.io Jenkins Pipeline Library for CI/CD
Stars: ✭ 134 (+688.24%)
Mutual labels:  jenkins, pipeline
Jenkins Os
Groovy pipeline jobs that build and test Container Linux with Jenkins
Stars: ✭ 43 (+152.94%)
Mutual labels:  jenkins, pipeline
bitbucket-push-and-pull-request-plugin
Plugin for Jenkins v2.138.2 or later, that triggers job builds on Bitbucket's push and pull request events.
Stars: ✭ 47 (+176.47%)
Mutual labels:  jenkins, pipeline
pipeline-as-yaml-plugin
Jenkins Pipeline As Yaml Plugin
Stars: ✭ 111 (+552.94%)
Mutual labels:  jenkins, pipeline
Pipeline
Pipeline is a package to build multi-staged concurrent workflows with a centralized logging output.
Stars: ✭ 433 (+2447.06%)
Mutual labels:  jenkins, pipeline
Jira Steps Plugin
Jenkins pipeline steps for integration with JIRA.
Stars: ✭ 88 (+417.65%)
Mutual labels:  jenkins, pipeline
Gitlab Branch Source Plugin
Jenkins-Plugin to create a multi-branch-project from gitlab
Stars: ✭ 76 (+347.06%)
Mutual labels:  jenkins, pipeline
Jenkinsdocs
Jenkins实践文档 最新站点地址: http://www.idevops.site
Stars: ✭ 200 (+1076.47%)
Mutual labels:  jenkins, pipeline
Ssh Steps Plugin
Jenkins pipeline steps which provides SSH facilities such as command execution or file transfer for continuous delivery.
Stars: ✭ 183 (+976.47%)
Mutual labels:  jenkins, pipeline
pipeline-as-code-with-jenkins
Pipeline as Code with Jenkins
Stars: ✭ 56 (+229.41%)
Mutual labels:  jenkins, pipeline
learn-ansible-and-jenkins-in-30-days
Ansible + Jenkins in 30 days tutorial.
Stars: ✭ 35 (+105.88%)
Mutual labels:  jenkins, blueocean
rurality
开源运维平台设计及开发样例、CMS、RBAC、python开发教程、管理系统设计及开发样例、jenkinsfile(pipeline)/ansible使用教程,一切想到的,想不到的,应有尽有
Stars: ✭ 51 (+200%)
Mutual labels:  jenkins, pipeline
Jenkins Library
Shared Library for Jenkine Pipeline
Stars: ✭ 32 (+88.24%)
Mutual labels:  jenkins, pipeline
Demo Jenkins Config As Code
Demo of Jenkins Configuration-As-Code with Docker and Groovy Hook Scripts
Stars: ✭ 143 (+741.18%)
Mutual labels:  jenkins, pipeline
artifact-promotion-plugin
A simple Jenkins plugin to promote artifacts.
Stars: ✭ 29 (+70.59%)
Mutual labels:  jenkins, pipeline
blueocean-pipeline-editor-plugin
Jenkins Blue Ocean pipeline editor
Stars: ✭ 30 (+76.47%)
Mutual labels:  jenkins, pipeline
jenkins-pipeline-global-library-chefci
Jenkins Pipeline's "Workflow Global Libs" for Chef CI
Stars: ✭ 60 (+252.94%)
Mutual labels:  jenkins
cloud-native-pipelines
Cloud-native pipelines leveraging Concourse, Pivotal Build Service and Spinnaker to deploy apps
Stars: ✭ 15 (-11.76%)
Mutual labels:  pipeline
gogs-webhook-plugin
Jenkins Gogs Webhook
Stars: ✭ 76 (+347.06%)
Mutual labels:  jenkins

Create a Jenkins Pipeline to Deploy a terraform Stack

Setup

This is a lab to demonstrate using a Jenkinfile pipeline which will use docker and terraform to create resources in AWS

The build.sh file can be used to install Jenkins running on Centos7.

Docker is installed as the Jenkinsfile pipeline will run terraform in a Docker container

The Jenkins URL is http://127.0.0.1:8080

To get the Jenkins initial admin password, run this command:

cat /var/lib/jenkins/secrets/initialAdminPassword

After initializing Jenkins; install the recommended plugs and (optionally) the Blue Ocean plugin https://plugins.jenkins.io/blueocean

Docker

IAM user AWS credentials should be saved on the host instance at /root/.aws/ - these are mapped to and used by the Docker container when running the pipeline. Ensure the permissons for the IAM user are sufficient to complete all tasks/create all resources required by the pipeline

More information is available here: https://hub.docker.com/r/hashicorp/terraform

Pipeline

Create a pipeline job, then within the Pipeline configuration set the definition to Pipeline script from SCM. Add your repository URL, the Script Path will automatically be set to Jenkinsfile.

In this example, the Jenkinsfile pipeline will create a security group in the default VPC in eu-west-2

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].