Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kellystuard authored Jun 13, 2024
1 parent b83b8a1 commit 5a6788f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,25 @@ az vm image terms accept \

More information can be found [here](https://go.microsoft.com/fwlink/?linkid=2110637).

If using Terraform to accept the terms and conditions, the module needs an explicit dependency to ensure the resources are created in the proper order:

```hcl
resource "azurerm_marketplace_agreement" "spacelift_worker" {
publisher = "spaceliftinc1625499025476"
offer = "spacelift_worker"
plan = "ubuntu_20_04"
}
module "azure-worker" {
source = "github.com/spacelift-io/terraform-azure-spacelift-workerpool?ref=v0.1.0"
depends_on = [ azurerm_marketplace_agreement.spacelift_worker ]
[...]
}
```

More information can be found [here](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/marketplace_agreement.html).

## Marketplace Image

The default image used by this module comes from the [spacelift-worker-image](https://github.com/spacelift-io/spacelift-worker-image)
Expand Down

0 comments on commit 5a6788f

Please sign in to comment.