NOTE: This repo contains only the documentation for the private BoltsOps repo code. Original file: https://github.com/boltops-learn/terraspace-restricting-regions/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
An example Terraspace project to show how to restrict the regions that can be deployed:
config/app.rb
Terraspace.configure do |config|
config.allow.regions = ["us-west-2"]
# config.deny.regions = ["us-east-1"]
end
Uncomment the examples in config/app.rb
and run:
AWS_REGION=us-west-2 terraspace up stack1
AWS_REGION=us-east-1 terraspace up stack1
Note: Premium video content requires a subscription.