Skip to content

boltops-learn-docs/terraspace-restricting-envs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NOTE: This repo contains only the documentation for the private BoltsOps repo code. Original file: https://github.com/boltops-learn/terraspace-restricting-envs/blob/master/README.md The docs are publish so they are available for interested subscribers. For access to the source code, you can become a BoltOps subscriber. See: https://learn.boltops.com

Terraspace Restricting Environments

BoltOps Learn Badge

BoltOps Badge

An example Terraspace project to show how to restrict the environments that can be deployed:

config/app.rb

Terraspace.configure do |config|
  config.allow.envs = ["dev", "prod"]
  # config.deny.envs = ["qa"]
end

Usage

Uncomment the examples in config/app.rb and run:

TS_ENV=dev  terraspace up stack1
TS_ENV=prod terraspace up stack1
TS_ENV=qa   terraspace up stack1

Video

Watch the video

Note: Premium video content requires a subscription.

Releases

No releases published

Packages

No packages published