aztfmod / level0

Launchpads that can be used by the rover to deploy the Azure CAF Terraform landing zones
https://aka.ms/caf
MIT License
14 stars 21 forks source link

Prevent launchpad to deploy a level0 launchpad if there is already on deployed #25

Closed LaurentLesle closed 4 years ago

LaurentLesle commented 4 years ago

There is a launchpad deployed:

You are trying to deploy the command

launchpad /tf/launchpads/launchpad_opensource apply

This should not be authorized as there is already a launchpad deployed. Return an error code to mention a launchpad already exists

LaurentLesle commented 4 years ago

We are supporting 1 launchpad per environment per subscription

rover /tf/caf/landingzones/launchpad plan -env production -launchpad
# can also deploy another launchpad in the same subscription
rover /tf/caf/landingzones/launchpad plan -env test -launchpad
# create a sandpit environment
rover /tf/caf/landingzones/launchpad plan -launchpad