Taking Infrastructure As Code to the next level
Project description
cloudicorn_azurerm
Installs addons for handling azurerm backend components.
setting up credentials
Once you have installed and authenticated to your azure cli, create a service principal following these instructions
You will get a result something like this:
{
"appId": "00000000-0000-0000-0000-000000000000",
"displayName": "azure-cli-2017-06-05-10-41-15",
"name": "http://azure-cli-2017-06-05-10-41-15",
"password": "0000-0000-0000-0000-000000000000",
"tenant": "00000000-0000-0000-0000-000000000000"
}
Save them to environment variables (see .envrc.tpl
)
value | env var |
---|---|
appId |
AZURE_CLIENT_ID |
password |
AZURE_CLIENT_SECRET |
tenant |
AZURE_TENANT_ID |
You'll also need to set AZURE_SUBSCRIPTION_ID
running tests
Create a storage account and container that the above service principal can write to
make test
Uses terraform modules in https://github.com/jumidev/cloudicorn-testmodules-azure
- runs a set of components
testing with opentofu instead of terraform
opentofu can now be used as a drop in replacement for terraform and can be tested independently of terraform. You'll need to enable the opentofu extension in the test virtual env by running. make enable_opentofu
Be sure to also run cloudicorn_setup
and install opentofu from the main menu. Confirm this extension is installed by running make setup
. You should see a message at the bottom
opentofu installed and up to date
Once it is installed, run make test
as you would normally
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for cloudicorn_azurerm-0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | afe59f22cd576013d3a35cba955a75544d390d3c5662851e6f17d4394b88c9fd |
|
MD5 | 5a9cdb5352b96eb79de4de5634fe88fb |
|
BLAKE2b-256 | e98f1b5d5f12a3eda7fa348b9bebab60ceeb7b4e26d9ef183f213aef3213ca7f |