Closed dimitriosoodle closed 5 years ago
@dimitriosoodle which alpha version of Terraform 0.12 are you using?
If roles
there is a TypeSet
attribute then this might be the same root cause as #19758, which has subsequently been fixed in a later version of the provider SDK than we used in the alpha builds.
Hi,
This was pulled from master on Jan4 with last commit 3e9c51c7268d195c4917fd455742df4fa8fdfe1c pull request https://github.com/hashicorp/terraform/pull/19911
compiled on linux mint 19 with parser from https://github.com/hashicorp/terraform/blob/master/vendor/github.com/hashicorp/hcl/hcl/parser/parser.go golang 1.11.4 from snap
Best regards,
Dimitrios
Hi @dimitriosoodle,
This should be working in master if you want to test it again. Thanks!
Hi,
What is the best build environment for current master? My builds fail:
Cloning into 'terraform'...
GO111MODULE=off go get -u golang.org/x/tools/cmd/stringer
GO111MODULE=off go get -u golang.org/x/tools/cmd/cover
GO111MODULE=off go get -u github.com/golang/mock/mockgen
==> Checking that code complies with gofmt requirements...
GO111MODULE=off go get -u golang.org/x/tools/cmd/stringer
GO111MODULE=off go get -u golang.org/x/tools/cmd/cover
GO111MODULE=off go get -u github.com/golang/mock/mockgen
GOFLAGS=-mod=vendor go generate ./...
2019/03/01 22:11:23 Generated command/internal_plugin_list.go
go: downloading github.com/golang/mock v1.2.0
# go fmt doesn't support -mod=vendor but it still wants to populate the
# module cache with everything in go.mod even though formatting requires
# no dependencies, and so we're disabling modules mode for this right
# now until the "go fmt" behavior is rationalized to either support the
# -mod= argument or _not_ try to install things.
GO111MODULE=off go fmt command/internal_plugin_list.go > /dev/null
go list -mod=vendor ./... | xargs -t -n4 go test -mod=vendor -timeout=2m -parallel=4
build flag -mod=vendor only valid when using modules
go test -mod=vendor -timeout=2m -parallel=4
build flag -mod=vendor only valid when using modules
Makefile:35: recipe for target 'test' failed
make: *** [test] Error 123
Hi @dimitriosoodle,
We released Terraform v0.12.0-beta1 yesterday from master, so the change @jbardin was referring to is included in that release, so installing the beta is probably the easiest way at this point.
Thank you the beta version with the dev plugin does not suffer from this issue.
Fantastic! I will close this issue. Thanks for the update, @dimitriosoodle!
I'm seeing this issue in v0.12.13
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Terraform Version
Terraform Configuration Files
I change AzureAdmin to AzureAdminUsers in the following config
Debug Output
Crash Output
Expected Behavior
Role AzureAdmin removed, role AzureAdminUsers added
Actual Behavior
Role AzureAdmin removed, role Rackspace removed, role AzureAdminUsers added. Subsequent runs will delete AzureAdminUsers, add Rackspace, and so on.
Steps to Reproduce
Add/change role to an existing policy attachment with more than 2 roles attached
Additional Context
References