Skip to content

Commit

Permalink
Revised example resources
Browse files Browse the repository at this point in the history
  • Loading branch information
johncollinson2001 committed Sep 9, 2024
1 parent b491cc4 commit 52e39f3
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
run: sudo apt-get update && sudo apt-get install -y python3-pip && pip3 install checkov

- name: Run Checkov Scan
run: checkov --directory infrastructure --skip-path example_resource --skip-path example.tf
run: checkov --directory infrastructure --skip-path example --list

- name: Install GitLeaks
run: |
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ Take the following steps to configure and verify the infrastructure:
terraform apply -auto-approve
```

Now review the deployed infrastructure in the Azure portal. You will find a dummy scenario consisting of some storage accounts and a managed disk, with a backup vault, backup policies and some sample backup instances.
Now review the deployed infrastructure in the Azure portal. You will find a backup vault and some sample backup policies.

The repo contains an `example` module which can be utilised to further extend the sample infrastructure with some resources and backup instances. To use this module for dev/test purposes, include the module in `main.tf` and run `terraform apply` again.

## Usage

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@
###########################################################################

module "example_storage_account_1" {
source = "./modules/example_resource/storage_account"
source = "./modules/example/storage_account"
location = var.vault_location
storage_account_name = "samystorage001"
resource_group = azurerm_resource_group.resource_group.name
}

module "example_storage_account_2" {
source = "./modules/example_resource/storage_account"
source = "./modules/example/storage_account"
location = var.vault_location
storage_account_name = "samystorage002"
resource_group = azurerm_resource_group.resource_group.name
}

module "example_managed_disk" {
source = "./modules/example_resource/managed_disk"
source = "./modules/example/managed_disk"
location = var.vault_location
disk_name = "disk-mydisk"
resource_group = azurerm_resource_group.resource_group.name
Expand Down

0 comments on commit 52e39f3

Please sign in to comment.