Skip to content

Commit 18239bd

Browse files
Add atmos_cli_config_path and atmos_base_path variables to remote-state module (#53)
* Add `atmos_cli_config_path` and `atmos_base_path` variables * Auto Format Co-authored-by: cloudpossebot <11232728+cloudpossebot@users.noreply.github.com>
1 parent 5b602d5 commit 18239bd

24 files changed

Lines changed: 100 additions & 37 deletions

File tree

.github/workflows/validate-codeowners.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
steps:
1111
- name: "Checkout source code at current commit"
1212
uses: actions/checkout@v2
13+
# Leave pinned at 0.7.1 until https://github.com/mszostok/codeowners-validator/issues/173 is resolved
1314
- uses: mszostok/codeowners-validator@v0.7.1
1415
if: github.event.pull_request.head.repo.full_name == github.repository
1516
name: "Full check of CODEOWNERS"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,13 +346,13 @@ Available targets:
346346
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.0 |
347347
| <a name="requirement_external"></a> [external](#requirement\_external) | >= 2.0 |
348348
| <a name="requirement_local"></a> [local](#requirement\_local) | >= 1.3 |
349-
| <a name="requirement_utils"></a> [utils](#requirement\_utils) | >= 1.2.0 |
349+
| <a name="requirement_utils"></a> [utils](#requirement\_utils) | >= 1.3.0 |
350350

351351
## Providers
352352

353353
| Name | Version |
354354
|------|---------|
355-
| <a name="provider_utils"></a> [utils](#provider\_utils) | >= 1.2.0 |
355+
| <a name="provider_utils"></a> [utils](#provider\_utils) | >= 1.3.0 |
356356

357357
## Modules
358358

docs/terraform.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.0 |
77
| <a name="requirement_external"></a> [external](#requirement\_external) | >= 2.0 |
88
| <a name="requirement_local"></a> [local](#requirement\_local) | >= 1.3 |
9-
| <a name="requirement_utils"></a> [utils](#requirement\_utils) | >= 1.2.0 |
9+
| <a name="requirement_utils"></a> [utils](#requirement\_utils) | >= 1.3.0 |
1010

1111
## Providers
1212

1313
| Name | Version |
1414
|------|---------|
15-
| <a name="provider_utils"></a> [utils](#provider\_utils) | >= 1.2.0 |
15+
| <a name="provider_utils"></a> [utils](#provider\_utils) | >= 1.3.0 |
1616

1717
## Modules
1818

examples/backend/main.tf

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
module "backend" {
22
source = "../../modules/backend"
33

4-
stack = var.stack
5-
component = var.component
6-
ignore_errors = var.ignore_errors
7-
env = var.env
4+
stack = var.stack
5+
component = var.component
6+
ignore_errors = var.ignore_errors
7+
env = var.env
8+
atmos_cli_config_path = var.atmos_cli_config_path
9+
atmos_base_path = var.atmos_base_path
810

911
context = module.this.context
1012
}

examples/backend/variables.tf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,15 @@ variable "env" {
2020
description = "Map of ENV vars in the format `key=value`. These ENV vars will be set in the `utils` provider before executing the data source"
2121
default = null
2222
}
23+
24+
variable "atmos_cli_config_path" {
25+
type = string
26+
description = "atmos CLI config path"
27+
default = null
28+
}
29+
30+
variable "atmos_base_path" {
31+
type = string
32+
description = "atmos base path to components and stacks"
33+
default = null
34+
}

examples/backend/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ terraform {
1212
}
1313
utils = {
1414
source = "cloudposse/utils"
15-
version = ">= 1.2.0"
15+
version = ">= 1.3.0"
1616
}
1717
}
1818
}

examples/complete/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ terraform {
1212
}
1313
utils = {
1414
source = "cloudposse/utils"
15-
version = ">= 1.2.0"
15+
version = ">= 1.3.0"
1616
}
1717
}
1818
}

examples/remote-state/main.tf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ module "remote_state_using_stack" {
1414
ATMOS_CLI_CONFIG_PATH = path.module
1515
}
1616

17+
atmos_cli_config_path = var.atmos_cli_config_path
18+
atmos_base_path = var.atmos_base_path
19+
1720
context = module.this.context
1821
}
1922

@@ -30,6 +33,9 @@ module "remote_state_using_context" {
3033
ATMOS_CLI_CONFIG_PATH = path.module
3134
}
3235

36+
atmos_cli_config_path = var.atmos_cli_config_path
37+
atmos_base_path = var.atmos_base_path
38+
3339
context = module.this.context
3440
}
3541

@@ -54,5 +60,8 @@ module "remote_state_using_context_ignore_errors" {
5460
ATMOS_CLI_CONFIG_PATH = path.module
5561
}
5662

63+
atmos_cli_config_path = var.atmos_cli_config_path
64+
atmos_base_path = var.atmos_base_path
65+
5766
context = module.this.context
5867
}

examples/remote-state/variables.tf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
variable "atmos_cli_config_path" {
2+
type = string
3+
description = "atmos CLI config path"
4+
default = null
5+
}
6+
7+
variable "atmos_base_path" {
8+
type = string
9+
description = "atmos base path to components and stacks"
10+
default = null
11+
}

examples/remote-state/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ terraform {
1212
}
1313
utils = {
1414
source = "cloudposse/utils"
15-
version = ">= 1.2.0"
15+
version = ">= 1.3.0"
1616
}
1717
}
1818
}

0 commit comments

Comments
 (0)