Skip to content

Commit

Permalink
comment out regions, as startswith() is 1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Nov 1, 2022
1 parent 5aa6a3a commit 2816192
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions s3-flow-logs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ No modules.
| [aws_caller_identity.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity) | data source |
| [aws_iam_policy_document.flowlogs_s3](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |
| [aws_region.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/region) | data source |
| [aws_regions.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/regions) | data source |

## Inputs

Expand Down
4 changes: 2 additions & 2 deletions s3-flow-logs/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
*/

locals {
account_id = var.account_id != "" ? var.account_id : data.aws_caller_identity.current.account_id
regions = [for r in tolist(data.aws_regions.current.names) : r if startswith(r, "us-")]
account_id = var.account_id != "" ? var.account_id : data.aws_caller_identity.current.account_id
# regions = [for r in tolist(data.aws_regions.current.names) : r if startswith(r, "us-")]
region = data.aws_region.current.name
account_environment = data.aws_arn.current.partition == "aws-us-gov" ? "gov" : "ew"

Expand Down

0 comments on commit 2816192

Please sign in to comment.