Skip to content

Commit

Permalink
Use namespace in utils_component_config data source (#52)
Browse files Browse the repository at this point in the history
* Use `namespace` in `utils_component_config` data source

* Auto Format

Co-authored-by: cloudpossebot <[email protected]>
  • Loading branch information
aknysh and cloudpossebot authored Sep 22, 2022
1 parent be030f4 commit 5b602d5
Show file tree
Hide file tree
Showing 20 changed files with 24 additions and 19 deletions.
1 change: 0 additions & 1 deletion .github/auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ version-resolver:
- 'bugfix'
- 'bug'
- 'hotfix'
- 'no-release'
default: 'minor'

categories:
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -346,13 +346,13 @@ Available targets:
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.0 |
| <a name="requirement_external"></a> [external](#requirement\_external) | >= 2.0 |
| <a name="requirement_local"></a> [local](#requirement\_local) | >= 1.3 |
| <a name="requirement_utils"></a> [utils](#requirement\_utils) | >= 0.17.24 |
| <a name="requirement_utils"></a> [utils](#requirement\_utils) | >= 1.2.0 |

## Providers

| Name | Version |
|------|---------|
| <a name="provider_utils"></a> [utils](#provider\_utils) | >= 0.17.24 |
| <a name="provider_utils"></a> [utils](#provider\_utils) | >= 1.2.0 |

## Modules

Expand Down Expand Up @@ -575,7 +575,7 @@ Check out [our other projects][github], [follow us on twitter][twitter], [apply

[![README Footer][readme_footer_img]][readme_footer_link]
[![Beacon][beacon]][website]

<!-- markdownlint-disable -->
[logo]: https://cloudposse.com/logo-300x69.svg
[docs]: https://cpco.io/docs?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-yaml-stack-config&utm_content=docs
[website]: https://cpco.io/homepage?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/terraform-yaml-stack-config&utm_content=website
Expand Down Expand Up @@ -606,3 +606,4 @@ Check out [our other projects][github], [follow us on twitter][twitter], [apply
[share_googleplus]: https://plus.google.com/share?url=https://github.com/cloudposse/terraform-yaml-stack-config
[share_email]: mailto:?subject=terraform-yaml-stack-config&body=https://github.com/cloudposse/terraform-yaml-stack-config
[beacon]: https://ga-beacon.cloudposse.com/UA-76589703-4/cloudposse/terraform-yaml-stack-config?pixel&cs=github&cm=readme&an=terraform-yaml-stack-config
<!-- markdownlint-restore -->
1 change: 1 addition & 0 deletions README.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ categories:
- helmfile
- provider
- terraform-provider
- terraform-backend
- deep-merge
- backend
- s3
Expand Down
4 changes: 2 additions & 2 deletions docs/terraform.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.0 |
| <a name="requirement_external"></a> [external](#requirement\_external) | >= 2.0 |
| <a name="requirement_local"></a> [local](#requirement\_local) | >= 1.3 |
| <a name="requirement_utils"></a> [utils](#requirement\_utils) | >= 0.17.24 |
| <a name="requirement_utils"></a> [utils](#requirement\_utils) | >= 1.2.0 |

## Providers

| Name | Version |
|------|---------|
| <a name="provider_utils"></a> [utils](#provider\_utils) | >= 0.17.24 |
| <a name="provider_utils"></a> [utils](#provider\_utils) | >= 1.2.0 |

## Modules

Expand Down
2 changes: 1 addition & 1 deletion examples/backend/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ terraform {
}
utils = {
source = "cloudposse/utils"
version = ">= 0.17.26"
version = ">= 1.2.0"
}
}
}
2 changes: 1 addition & 1 deletion examples/complete/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ terraform {
}
utils = {
source = "cloudposse/utils"
version = ">= 0.17.26"
version = ">= 1.2.0"
}
}
}
2 changes: 2 additions & 0 deletions examples/remote-state/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ module "remote_state_using_context" {
source = "../../modules/remote-state"

component = "test/test-component-override"
namespace = ""
tenant = "tenant1"
environment = "ue2"
stage = "dev"
Expand All @@ -40,6 +41,7 @@ module "remote_state_using_context_ignore_errors" {
# Note that terraform `try()` does not catch errors from providers, so `try(module.remote_state_using_context_ignore_errors.outputs, {})` will not work
ignore_errors = true
component = "test/test-component-override-wrong"
namespace = ""
tenant = "tenant1"
environment = "ue2"
stage = "dev"
Expand Down
2 changes: 1 addition & 1 deletion examples/remote-state/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ terraform {
}
utils = {
source = "cloudposse/utils"
version = ">= 0.17.26"
version = ">= 1.2.0"
}
}
}
2 changes: 1 addition & 1 deletion examples/spacelift/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ terraform {
}
utils = {
source = "cloudposse/utils"
version = ">= 0.17.26"
version = ">= 1.2.0"
}
}
}
2 changes: 1 addition & 1 deletion examples/stack/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ terraform {
}
utils = {
source = "cloudposse/utils"
version = ">= 0.17.26"
version = ">= 1.2.0"
}
}
}
2 changes: 1 addition & 1 deletion examples/stacks/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ terraform {
}
utils = {
source = "cloudposse/utils"
version = ">= 0.17.26"
version = ">= 1.2.0"
}
}
}
1 change: 1 addition & 0 deletions modules/backend/main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
data "utils_component_config" "config" {
component = var.component
stack = var.stack
namespace = module.always.namespace
tenant = module.always.tenant
environment = module.always.environment
stage = module.always.stage
Expand Down
2 changes: 1 addition & 1 deletion modules/backend/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ terraform {
}
utils = {
source = "cloudposse/utils"
version = ">= 0.17.26"
version = ">= 1.2.0"
}
}
}
2 changes: 1 addition & 1 deletion modules/env/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ terraform {
}
utils = {
source = "cloudposse/utils"
version = ">= 0.17.26"
version = ">= 1.2.0"
}
}
}
1 change: 1 addition & 0 deletions modules/remote-state/main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
data "utils_component_config" "config" {
component = var.component
stack = var.stack
namespace = module.always.namespace
tenant = module.always.tenant
environment = module.always.environment
stage = module.always.stage
Expand Down
2 changes: 1 addition & 1 deletion modules/remote-state/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ terraform {
}
utils = {
source = "cloudposse/utils"
version = ">= 0.17.26"
version = ">= 1.2.0"
}
}
}
2 changes: 1 addition & 1 deletion modules/settings/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ terraform {
}
utils = {
source = "cloudposse/utils"
version = ">= 0.17.26"
version = ">= 1.2.0"
}
}
}
2 changes: 1 addition & 1 deletion modules/spacelift/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ terraform {
}
utils = {
source = "cloudposse/utils"
version = ">= 0.17.26"
version = ">= 1.2.0"
}
}
}
2 changes: 1 addition & 1 deletion modules/vars/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ terraform {
}
utils = {
source = "cloudposse/utils"
version = ">= 0.17.26"
version = ">= 1.2.0"
}
}
}
2 changes: 1 addition & 1 deletion versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ terraform {
}
utils = {
source = "cloudposse/utils"
version = ">= 0.17.24"
version = ">= 1.2.0"
}
}
}

0 comments on commit 5b602d5

Please sign in to comment.