Skip to content

Commit

Permalink
SCALRCORE-28287 update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
DayS1eeper committed Oct 5, 2023
1 parent 41cd554 commit 090298b
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- `scalr_provider_configuration`: Fixed error message if aws credentials type is wrong. ([#275](https://github.com/Scalr/terraform-provider-scalr/pull/275))
- `data.scalr_enviroment`: Added new attribute `default_provider_configurations` ([#279](https://github.com/Scalr/terraform-provider-scalr/pull/279))
- `scalr_workspace`: Added new attribute `vcs-repo.trigger_patterns` ([#282](https://github.com/Scalr/terraform-provider-scalr/pull/282))

### Added

Expand Down
22 changes: 22 additions & 0 deletions docs/resources/workspace.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,28 @@ resource "scalr_workspace" "example" {
alias = "us_east2"
}
}
resource "scalr_workspace" "trigger_patterns" {
name = "trigger_patterns"
environment_id = data.scalr_environment.example.id
vcs_provider_id = data.scalr_vcs_provider.example.id
working_directory = "example/path"
vcs_repo {
identifier = "org/repo"
branch = "dev"
trigger_patterns = <<-EOT
!*.MD
!/**/test/
/infrastructure/environments/pre/
/infrastructure/modules/app/
/infrastructure/modules/db/
/infrastructure/modules/queue/
EOT
}
}
```

### Module-driven
Expand Down
22 changes: 22 additions & 0 deletions examples/resources/scalr_workspace/vcs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,25 @@ resource "scalr_workspace" "example" {
alias = "us_east2"
}
}

resource "scalr_workspace" "trigger_patterns" {
name = "trigger_patterns"
environment_id = data.scalr_environment.example.id
vcs_provider_id = data.scalr_vcs_provider.example.id

working_directory = "example/path"

vcs_repo {
identifier = "org/repo"
branch = "dev"
trigger_patterns = <<-EOT
!*.MD
!/**/test/
/infrastructure/environments/pre/
/infrastructure/modules/app/
/infrastructure/modules/db/
/infrastructure/modules/queue/
EOT
}
}

0 comments on commit 090298b

Please sign in to comment.