Skip to content

Commit

Permalink
remover required_version
Browse files Browse the repository at this point in the history
  • Loading branch information
arti-shalb committed Sep 15, 2023
1 parent 7a02c70 commit de38937
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions pkg/backend/local/unit.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ func (b *Backend) GetBackendHCL(stackName, unitName string) (*hclwrite.File, err
backendBlock := terraformBlock.Body().AppendNewBlock("backend", []string{"local"})
backendBody := backendBlock.Body()
backendBody.SetAttributeValue("path", cty.StringVal(fmt.Sprintf("%s/%s.%s.tfstate", b.Path, stackName, unitName)))

// terraformBlock.Body().SetAttributeValue("required_version", cty.StringVal("~> 0.13"))
return f, nil

}
Expand Down
3 changes: 0 additions & 3 deletions pkg/backend/s3/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,7 @@ func (b *Backend) GetBackendHCL(stackName, unitName string) (*hclwrite.File, err
terraformBlock := rootBody.AppendNewBlock("terraform", []string{})
backendBlock := terraformBlock.Body().AppendNewBlock("backend", []string{"s3"})
backendBody := backendBlock.Body()
// backendBody.SetAttributeValue("bucket", cty.StringVal(b.Bucket))
backendBody.SetAttributeValue("key", cty.StringVal(fmt.Sprintf("%s/%s.state", stackName, unitName)))
// backendBody.SetAttributeValue("region", cty.StringVal(b.Region))
terraformBlock.Body().SetAttributeValue("required_version", cty.StringVal("~> 0.13"))
bkMap, err := getBackendMap(*b)
if err != nil {
return nil, err
Expand Down

0 comments on commit de38937

Please sign in to comment.