-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
r/aws_eip: Remove from state on deletion #1551
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
(Closed mine an hour ago or so, that was doing the same thing, without the tests, which I admit are a nice way to check this specific use-case!)
$ make testacc TEST=./aws TESTARGS='-run=TestAccAWSEIP'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -run=TestAccAWSEIP -timeout 120m
=== RUN TestAccAWSEIPAssociation_basic
--- PASS: TestAccAWSEIPAssociation_basic (230.76s)
=== RUN TestAccAWSEIPAssociation_ec2Classic
--- FAIL: TestAccAWSEIPAssociation_ec2Classic (113.25s)
testing.go:435: Step 0 error: Check failed: Check 4/5 error: aws_eip_association.test: Attribute 'allocation_id' expected "", got "eipalloc-4baead78"
=== RUN TestAccAWSEIPAssociation_disappears
--- PASS: TestAccAWSEIPAssociation_disappears (168.70s)
=== RUN TestAccAWSEIP_importEc2Classic
--- FAIL: TestAccAWSEIP_importEc2Classic (89.89s)
testing.go:435: Step 1 error: 1 error(s) occurred:
* aws_eip.bar (import id: eipalloc-10acaf23): 1 error(s) occurred:
* import aws_eip.bar result: eipalloc-10acaf23: import aws_eip.bar (id: eipalloc-10acaf23): Terraform detected a resource with this ID doesn't
exist. Please verify the ID is correct. You cannot import non-existent
resources using Terraform import.
=== RUN TestAccAWSEIP_importVpc
--- PASS: TestAccAWSEIP_importVpc (106.11s)
=== RUN TestAccAWSEIP_basic
--- PASS: TestAccAWSEIP_basic (33.29s)
=== RUN TestAccAWSEIP_instance
--- PASS: TestAccAWSEIP_instance (246.60s)
=== RUN TestAccAWSEIP_network_interface
--- PASS: TestAccAWSEIP_network_interface (102.19s)
=== RUN TestAccAWSEIP_twoEIPsOneNetworkInterface
--- PASS: TestAccAWSEIP_twoEIPsOneNetworkInterface (103.07s)
=== RUN TestAccAWSEIP_associated_user_private_ip
--- PASS: TestAccAWSEIP_associated_user_private_ip (280.14s)
=== RUN TestAccAWSEIP_classic_disassociate
--- PASS: TestAccAWSEIP_classic_disassociate (347.22s)
=== RUN TestAccAWSEIP_disappears
--- PASS: TestAccAWSEIP_disappears (24.80s)
FAIL
exit status 1
FAIL github.com/terraform-providers/terraform-provider-aws/aws 1846.058s
make: *** [testacc] Error 1
Tests may seem related. Would you have time to investigate a bit?
My tests all passed - I believe you see those failures because your AWS account is completely VPC-based? We have a region with EC2 Classic enabled ( |
It is.
Probably for your idea. However, feel free to merge as I don't really have time to update this on my side. |
See #1566 - that should let you skip the EC2 Classic tests and make the whole mentioned suite pass. |
…ppears r/aws_eip: Remove from state on deletion
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
As mentioned in e4244f8#commitcomment-23945540
cc @ksperling
Fixes #1529