You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: azure/README.md
+17-4Lines changed: 17 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,11 +45,11 @@ terraform apply
45
45
46
46
The storage account name should be in the output. Please use that to configure the Terraform backend in `main.tf` by uncommenting the part on the `backend "azurerm"` inside the `terraform` block. Assign the `storage_account_name` to the one from the output.
47
47
48
-
**Note**: You'll need to follow the description [below](#wrongsecrets-ctf-party) in step 1 for the "existing resource group" i.e., use the `data.azurerm_resource_group.default` resource.
48
+
**Note**: You'll need to follow the description [below](#wrongsecrets-ctf-party) in step 1 for the "existing resource group" i.e., use the `azurerm_resource_group.default` resource.
49
49
50
50
### WrongSecrets-ctf-party
51
51
52
-
1. Set either a new resource group or use an existing resource group in `main.tf` (it defaults to the existing `OWASP-Projects` resource group). Note that you'll need to find/replace references to "data.azurerm_resource_group.default" to "arurerm_resource_group.default" if you want to create a new one.
52
+
1. Set either a new resource group or use an existing resource group in `main.tf` (it defaults to the existing `OWASP-Projects` resource group). Note that you'll need to find/replace references to "azurerm_resource_group.default" to "arurerm_resource_group.default" if you want to create a new one.
53
53
2. check whether you have the right project by doing `az account show` (after `az login`). Want to set the project as your default? Use `az account set --subscription <.id here>`.
54
54
3. If not yet enabled, register the required services for the subscription, run:
@@ -58,7 +58,19 @@ The storage account name should be in the output. Please use that to configure t
58
58
4. Run `terraform init` (if required, use `tfenv` to select TF 0.14.0 or higher )
59
59
5. Run `terraform plan` to see what will be created (optional).
60
60
6. Run `terraform apply`. Note: the apply will take 5 to 20 minutes depending on the speed of the Azure backplane.
61
-
7. Run `./build-and-deploy-azure.sh`. Your kubeconfig file will automatically be updated.
61
+
7. Go to the values of the helm chart and replace the wrongsecrets.config with this:
62
+
63
+
```yaml
64
+
K8S_ENV: "azure"
65
+
```
66
+
67
+
and replace the value of wrongsecrets.env having the name 'K8S_ENV' with this:
68
+
69
+
```yaml
70
+
value: "azure"
71
+
```
72
+
73
+
8. Run `./build-and-deploy-azure.sh`. Your kubeconfig file will automatically be updated.
62
74
63
75
Your AKS cluster should be visible in your resource group. Want a different region? You can modify `terraform.tfvars` or input it directly using the `region` variable in plan/apply.
| <a name="input_cluster_name"></a> [cluster\_name](#input\_cluster\_name) | The AKS cluster name | `string` | `"wrongsecrets-exercise-cluster"` | no |
193
205
| <a name="input_cluster_version"></a> [cluster\_version](#input\_cluster\_version) | The AKS cluster version to use | `string` | `"1.25"` | no |
206
+
| <a name="input_region"></a> [region](#input\_region) | The Azure region to use | `string` | `"East US"` | no |
0 commit comments