Skip to content

Commit

Permalink
bump aws provider to 5.70
Browse files Browse the repository at this point in the history
  • Loading branch information
awsandy committed Oct 5, 2024
1 parent 82c0129 commit d00545d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .python/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ def aws_tf(region):
f3.write(' aws = {\n')
f3.write(' source = "hashicorp/aws"\n')
# f3.write(' version = "5.48.0"\n')
f3.write(' version = "5.67.0"\n')
f3.write(' version = "5.70.0"\n')
f3.write(' }\n')
f3.write(' }\n')
f3.write('}\n')
Expand Down
8 changes: 4 additions & 4 deletions .python/fixtf.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,10 @@ def fixtf(ttft,tf):
globals.stripblock=""
globals.stripstart=""
globals.stripend=""
if ttft=="aws_lb_listener_rule" or ttft=="aws_lb_listener":
globals.stripblock="forward {"
globals.stripstart="{"
globals.stripend="}"
#if ttft=="aws_lb_listener_rule" or ttft=="aws_lb_listener":
# globals.stripblock="forward {"
# globals.stripstart="{"
# globals.stripend="}"
if ttft=="aws_lb":
globals.stripblock="subnet_mapping {"
globals.stripstart="{"
Expand Down
12 changes: 6 additions & 6 deletions .python/fixtf_aws_resources/fixtf_elbv2.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ def aws_lb_listener(t1,tt1,tt2,flag1,flag2):
if "load_balancer_arn" == tt1:
tt2=tt2.replace("/","_").replace(".","_").replace(":","_")
t1 = tt1 + " = aws_lb."+tt2+".arn\n"
#t1=t1+"\n lifecycle {\n ignore_changes = [default_action[0].forward[0]]\n}\n"
t1=t1+"\n lifecycle {\n ignore_changes = [default_action[0].forward[0]]\n}\n"

if "order" == tt1:
if tt2 == "0": skip=1
elif "duration" == tt1:
if tt2 == "0": t1=tt1+" = 1\n"
#if tt2 == "0": skip=1

return skip,t1,flag1,flag2

Expand All @@ -40,13 +41,12 @@ def aws_lb_listener_rule(t1,tt1,tt2,flag1,flag2):
if "listener_arn" == tt1:
tt2=tt2.replace("/","_").replace(".","_").replace(":","_")
t1 = tt1 + " = aws_lb_listener."+tt2+".arn\n"

# t1=t1+ "\nlifecycle {\n" + " ignore_changes = [action[0].target_group_arn,action[0].forward[0].stickiness[0].duration]\n" + "}\n"
#t1=t1+ "\nlifecycle {\n" + " ignore_changes = [action[0].target_group_arn,action[0].forward[0].stickiness[0].duration]\n" + "}\n"
if "order" == tt1:
if tt2 == "0": skip=1
elif "duration" == tt1:
if tt2 == "0":
t1=tt1+" = 1\n"
#elif "duration" == tt1:
# if tt2 == "0":
# t1=tt1+" = 1\n"


return skip,t1,flag1,flag2
Expand Down

0 comments on commit d00545d

Please sign in to comment.