Skip to content

Commit

Permalink
fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
fujiwara committed Mar 27, 2020
1 parent be712d4 commit 6078af9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ import(
func main() {
f, _ := os.Open("terraform.tfstate")
state, _ := tfstate.Read(f)
res, _ := state.Lookup("aws_vpc.main.id")
vpcID := res.(string)
fmt.Println(vpcID)
attrs, _ := state.Lookup("aws_vpc.main.id")
fmt.Println(attrs.String())
}
```

Expand Down

0 comments on commit 6078af9

Please sign in to comment.