This example deploys a FlexibleMySQL server on Azure.
To deploy your infrastructure, follow the below steps.
After cloning this repo, from this working directory, run these commands:
-
Create a new stack, which is an isolated deployment target for this example:
$ pulumi stack init dev
-
Next, install the dependencies:
$ npm install
-
Login to Azure CLI (you will be prompted to do this during deployment if you forget this step):
$ az login
-
Set the Azure region location to use:
$ pulumi config set azure-native:location eastus $ pulumi config set username resu $ pulumi config set --secret password drowssap
-
Stand up the cluster by invoking pulumi
$ pulumi up
-
Check the server's fqdn address:
$ pulumi stack output mysqlFqdn
-
From there, feel free to experiment. Simply making edits and running
pulumi up
will incrementally update your stack. -
Once you've finished experimenting, tear down your stack's resources by destroying and removing it:
$ pulumi destroy --yes $ pulumi stack rm --yes