Skip to content

Latest commit

 

History

History
69 lines (52 loc) · 1.48 KB

README.md

File metadata and controls

69 lines (52 loc) · 1.48 KB

octopusdeploy-bootstrap

This repo has the terraform modules which helps you bootstrap your octopus by creating resources like:

  • Global Resources(Roles)
  • Space
  • Deployment Targets
  • Accounts
  • Environments
  • Lifecycle
  • External Feeds

Global Resources


Provision global resources for your OctopusDeploy.

Pre-requisites

Steps to provision

$ cd global-resources
$ terraform init
$ terraform get -update=true
$ terraform plan -out tfplan
$ terraform apply

Steps to de-provision

$ cd global-resources
$ terraform init
$ terraform get -update=true
$ terraform plan -destroy -out destroy_tfplan
$ terraform apply destroy_tfplan

Space & Bootstrapping


Provision space and bootstrap it with all necessary resources like environments, lifecycles and deployment targets.

Pre-requisites

Steps to provision

$ cd my-space
$ terraform init
$ terraform get -update=true
$ terraform plan -out tfplan
$ terraform apply

Steps to de-provision

$ cd my-space
$ terraform init
$ terraform get -update=true
$ terraform plan -destroy -out destroy_tfplan
$ terraform apply destroy_tfplan

Note: You can change/copy the folder name to any other name you want and provision a space with that name. Also, you can have more than one folder if needed.