Skip to content

Commit faeffd0

Browse files
authored
Merge pull request #27 from gruntwork-io/yori-remove-aws-regions
Deprecate and remove enabled-aws-regions
2 parents 7e882b9 + ce2664d commit faeffd0

File tree

18 files changed

+8
-259
lines changed

18 files changed

+8
-259
lines changed

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,19 @@ The following modules are available:
2929
* [run-pex-as-resource](/modules/run-pex-as-resource): This module prepares a portable environment for running PEX files
3030
and runs them as an local-exec provisioner on a null_resource. PEX files are python executables that contain all the
3131
requirements necessary to run the script. **(This module requires Python)**
32-
* [enabled-aws-regions](/modules/enabled-aws-regions): This is a module that can be used to query AWS for all enabled
33-
AWS regions on the authenticated AWS account. **(This module requires Python)**
3432

3533
The following modules were deprecated and removed:
3634

37-
* [intermediate-variable](/modules/intermediate-variable): This module has been superseded by [terraform local
35+
* `intermediate-variable`: This module has been superseded by [terraform local
3836
values](https://www.terraform.io/docs/configuration/locals.html). To upgrade, switch usage of `intermediate-variable`
3937
with `locals`.
38+
* `enabled-aws-regions`: This module has been superseded by [terraform aws_regions data
39+
source](https://www.terraform.io/docs/providers/aws/d/regions.html). To upgrade, switch the module block with:
40+
41+
data "aws_regions" "enabled_regions" {}
42+
43+
Then, you can get the list of enabled regions using `data.aws_regions.enabled_regions.names`.
44+
4045

4146
Click on each module above to see its documentation. Head over to the [examples](/examples) folder for example usage.
4247

examples/enabled-aws-regions/README.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

examples/enabled-aws-regions/main.tf

Lines changed: 0 additions & 12 deletions
This file was deleted.

examples/enabled-aws-regions/outputs.tf

Lines changed: 0 additions & 4 deletions
This file was deleted.

examples/enabled-aws-regions/variables.tf

Lines changed: 0 additions & 5 deletions
This file was deleted.

modules/enabled-aws-regions/README.md

Lines changed: 0 additions & 45 deletions
This file was deleted.
-7.28 MB
Binary file not shown.
-7.27 MB
Binary file not shown.

modules/enabled-aws-regions/get-enabled-regions/build_scripts/.python-version

Lines changed: 0 additions & 4 deletions
This file was deleted.

modules/enabled-aws-regions/get-enabled-regions/build_scripts/build.sh

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)