Skip to content

Commit

Permalink
fix name of the availability zone data block
Browse files Browse the repository at this point in the history
Fixes #215
  • Loading branch information
shadycuz committed Apr 19, 2024
1 parent 2847084 commit e22cab6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cf2tf/conversion/expressions.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,11 +540,11 @@ def get_azs(template: "TemplateConverter", region: Any):

if not data:
az_data = hcl2.Data(
"available", "availability_zones", {"state": StringType("available")}
"available", "aws_availability_zones", {"state": StringType("available")}
)
template.post_proccess_blocks.insert(0, az_data)

return LiteralType("data.aws_availability_zones.available.names")
return az_data.ref("names")


# todo Handle functions that are not applicable to terraform.
Expand Down

0 comments on commit e22cab6

Please sign in to comment.