-
Notifications
You must be signed in to change notification settings - Fork 9.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update broken in AWS Inspector Resource Group (trivial, with fix) #12112
Comments
Hi @jtsaito Thanks for raising the issue here - also, thanks for investigating the cause :) PR being tested to fix this right now Thanks Paul |
Name fixes: #12112 ``` % make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAccAWSInspectorTarget_basic' ✚ ==> Checking that code complies with gofmt requirements... go generate $(go list ./... | grep -v /terraform/vendor/) 2017/02/20 19:08:18 Generated command/internal_plugin_list.go TF_ACC=1 go test ./builtin/providers/aws -v -run=TestAccAWSInspectorTarget_basic -timeout 120m === RUN TestAccAWSInspectorTarget_basic --- PASS: TestAccAWSInspectorTarget_basic (33.58s) PASS ok github.com/hashicorp/terraform/builtin/providers/aws 33.607s ```
Name fixes: #12112 ``` % make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAccAWSInspectorTarget_basic' ✚ ==> Checking that code complies with gofmt requirements... go generate $(go list ./... | grep -v /terraform/vendor/) 2017/02/20 19:08:18 Generated command/internal_plugin_list.go TF_ACC=1 go test ./builtin/providers/aws -v -run=TestAccAWSInspectorTarget_basic -timeout 120m === RUN TestAccAWSInspectorTarget_basic --- PASS: TestAccAWSInspectorTarget_basic (33.58s) PASS ok github.com/hashicorp/terraform/builtin/providers/aws 33.607s ```
Name fixes: #12112 ``` % make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAccAWSInspectorTarget_basic' ✚ ==> Checking that code complies with gofmt requirements... go generate $(go list ./... | grep -v /terraform/vendor/) 2017/02/20 19:08:18 Generated command/internal_plugin_list.go TF_ACC=1 go test ./builtin/providers/aws -v -run=TestAccAWSInspectorTarget_basic -timeout 120m === RUN TestAccAWSInspectorTarget_basic --- PASS: TestAccAWSInspectorTarget_basic (33.58s) PASS ok github.com/hashicorp/terraform/builtin/providers/aws 33.607s ```
#12115) Name fixes: #12112 ``` % make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAccAWSInspectorTarget_basic' ✚ ==> Checking that code complies with gofmt requirements... go generate $(go list ./... | grep -v /terraform/vendor/) 2017/02/20 19:08:18 Generated command/internal_plugin_list.go TF_ACC=1 go test ./builtin/providers/aws -v -run=TestAccAWSInspectorTarget_basic -timeout 120m === RUN TestAccAWSInspectorTarget_basic --- PASS: TestAccAWSInspectorTarget_basic (33.58s) PASS ok github.com/hashicorp/terraform/builtin/providers/aws 33.607s ```
#12115) Name fixes: #12112 ``` % make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAccAWSInspectorTarget_basic' ✚ ==> Checking that code complies with gofmt requirements... go generate $(go list ./... | grep -v /terraform/vendor/) 2017/02/20 19:08:18 Generated command/internal_plugin_list.go TF_ACC=1 go test ./builtin/providers/aws -v -run=TestAccAWSInspectorTarget_basic -timeout 120m === RUN TestAccAWSInspectorTarget_basic --- PASS: TestAccAWSInspectorTarget_basic (33.58s) PASS ok github.com/hashicorp/terraform/builtin/providers/aws 33.607s ```
@stack72 Great, thanks! |
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
v0.9.0-beta1
(and previous versions)Affected Resource(s)
Important note
Please read the section entitled Important Factoids first!
Terraform Configuration Files
Error occurred on updating the tags in the
aws_inspector_resource_group
.Debug Output
https://gist.github.com/jtsaito/0b880647f6a53a37a7d5f7748e88c96d (slightly modified)
Panic Output
None. Please see fix below instead.
Expected Behavior
The resource should be updated without terminating with an error and the attribute
tag
should be set too `"babbel:name" = "bookshelf-other" in the JSON.Actual Behavior
Fails to update with error message.
Steps to Reproduce
Trivial.
(1) Create
aws_inspector_resource_group
andresource_group_arn
resources pointing to the first.(2) Change the
tags
attribute in theaws_inspector_resource_group
and apply again.Important Factoids
The bug is obvious in the terraform source for
resourceAwsInspectorAssessmentTargetUpdate
:terraform/builtin/providers/aws/resource_aws_inspector_assessment_target.go
Line 99 in 4e96da5
The function call is updating the wrong attribute:
AssessmentTargetName
instead ofAssessmentTargetArn
. The fix should trivial and as follows.References
The required
AssessmentTargetArn
is not updated because theAssessmentTargetName
is overwritten instead by mistake, c.f.: AWS Go SDK.The text was updated successfully, but these errors were encountered: