Skip to content

Commit 82b4b57

Browse files
Merge remote-tracking branch 'origin/master' into fix_identifier_handling
2 parents da54143 + 8fe76a4 commit 82b4b57

File tree

9 files changed

+38
-13
lines changed

9 files changed

+38
-13
lines changed

hcl2/hcl2.lark

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ full_splat_expr_term : expr_term full_splat
7272
?full_splat : "[" "*" "]" (get_attr | index)*
7373

7474
!for_tuple_expr : "[" new_line_or_comment? for_intro new_line_or_comment? expression new_line_or_comment? for_cond? new_line_or_comment? "]"
75-
!for_object_expr : "{" new_line_or_comment? for_intro expression "=>" expression "..."? for_cond? new_line_or_comment? "}"
75+
!for_object_expr : "{" new_line_or_comment? for_intro expression "=>" expression "..."? new_line_or_comment? for_cond? new_line_or_comment? "}"
7676
!for_intro : "for" new_line_or_comment? identifier ("," identifier new_line_or_comment?)? new_line_or_comment? "in" new_line_or_comment? expression ":" new_line_or_comment?
7777
!for_cond : "if" new_line_or_comment? expression
7878

hcl2/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
"""Place of record for the package version"""
22

3-
__version__ = "0.2.2"
3+
__version__ = "0.2.4"
44
__git_hash__ = "GIT_HASH"

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def get_requirements():
5252
'Programming Language :: Python :: 3',
5353
'Programming Language :: Python :: 3.6',
5454
'Programming Language :: Python :: 3.7',
55+
'Programming Language :: Python :: 3.8',
5556
],
5657
keywords='',
5758
author='Amplify Education',
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"data": [
3+
{
4+
"terraform_remote_state": {
5+
"map": {
6+
"for_each": [
7+
"${{for s3_bucket_key in data.aws_s3_bucket_objects.remote_state_objects.keys : regex(local.remote_state_regex,s3_bucket_key)[\"account_alias\"] => s3_bucket_key if length(regexall(local.remote_state_regex,s3_bucket_key)) > 0}}"
8+
],
9+
"backend": [
10+
"s3"
11+
]
12+
}
13+
}
14+
}
15+
]
16+
}

test/helpers/terraform-config/backend.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ provider "aws" {
1212
/*
1313
one last comment
1414
*/
15-
terraform { required_version = "0.12"}
15+
terraform { required_version = "0.12" }
1616

1717
terraform {
1818
backend "gcs" {}

test/helpers/terraform-config/cloudwatch.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
resource "aws_cloudwatch_event_rule" "aws_cloudwatch_event_rule" {
2-
name = "name"
2+
name = "name"
33
event_pattern = <<EOF_CONFIG
44
{
55
"foo": "bar"
@@ -8,7 +8,7 @@ resource "aws_cloudwatch_event_rule" "aws_cloudwatch_event_rule" {
88
}
99

1010
resource "aws_cloudwatch_event_rule" "aws_cloudwatch_event_rule2" {
11-
name = "name"
11+
name = "name"
1212
event_pattern = <<-EOF_CONFIG
1313
{
1414
"foo": "bar"
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
data "terraform_remote_state" "map" {
2+
for_each = {
3+
for s3_bucket_key in data.aws_s3_bucket_objects.remote_state_objects.keys :
4+
regex(local.remote_state_regex, s3_bucket_key)["account_alias"] => s3_bucket_key
5+
if length(regexall(local.remote_state_regex, s3_bucket_key)) > 0
6+
}
7+
backend = "s3"
8+
}

test/helpers/terraform-config/iam.tf

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ data "aws_iam_policy_document" "s3_proxy_policy" {
2525
]
2626

2727
resources = [
28-
for
29-
bucket_name
30-
in
31-
local.buckets_to_proxy :
32-
"arn:aws:s3:::${bucket_name}/*"
33-
if
34-
substr(bucket_name, 0, 1) == "l"
28+
for
29+
bucket_name
30+
in
31+
local.buckets_to_proxy :
32+
"arn:aws:s3:::${bucket_name}/*"
33+
if
34+
substr(bucket_name, 0, 1) == "l"
3535
]
3636
}
3737
}

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist=lint,{py36}-unit,{py37}-unit
2+
envlist=lint,{py36}-unit,{py37}-unit,{py38}-unit
33
skipsdist=true
44

55
[testenv]

0 commit comments

Comments
 (0)