Skip to content
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

resource/default_network_acl: Add support for ipv6_cidr_block #1113

Merged
merged 1 commit into from
Jul 11, 2017

Conversation

stack72
Copy link
Contributor

@stack72 stack72 commented Jul 11, 2017

Fixes: #1096

default_security_group already has support for ipv6_cidr_block.

% make testacc TEST=./aws TESTARGS='-run=TestAccAWSDefaultNetworkAcl_withIpv6Ingress'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -run=TestAccAWSDefaultNetworkAcl_withIpv6Ingress -timeout 120m
=== RUN   TestAccAWSDefaultNetworkAcl_withIpv6Ingress
--- PASS: TestAccAWSDefaultNetworkAcl_withIpv6Ingress (53.45s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	53.511s

screen shot 2017-07-11 at 13 35 15

screen shot 2017-07-11 at 13 36 52

Fixes: #1096

default_security_group already has support for ipv6_cidr_block.

```
% make testacc TEST=./aws TESTARGS='-run=TestAccAWSDefaultNetworkAcl_withIpv6Ingress'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -run=TestAccAWSDefaultNetworkAcl_withIpv6Ingress -timeout 120m
=== RUN   TestAccAWSDefaultNetworkAcl_withIpv6Ingress
--- PASS: TestAccAWSDefaultNetworkAcl_withIpv6Ingress (53.45s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	53.511s
```
@stack72 stack72 added the enhancement Requests to existing resources that expand the functionality or scope. label Jul 11, 2017
Copy link
Contributor

@Ninir Ninir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Just saw a failing test, but seems not related to this specifically:

$ make testacc TEST=./aws TESTARGS='-run=TestAccAWSDefaultNetworkAcl_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -run=TestAccAWSDefaultNetworkAcl_ -timeout 120m
=== RUN   TestAccAWSDefaultNetworkAcl_basic
--- PASS: TestAccAWSDefaultNetworkAcl_basic (18.77s)
=== RUN   TestAccAWSDefaultNetworkAcl_basicIpv6Vpc
--- FAIL: TestAccAWSDefaultNetworkAcl_basicIpv6Vpc (13.95s)
	testing.go:428: Step 0 error: Error applying: 1 error(s) occurred:
		
		* aws_vpc.tftestvpc: 1 error(s) occurred:
		
		* aws_vpc.tftestvpc: AuthFailure: This request has been administratively disabled.
			status code: 403, request id: d8d82b6a-0570-4ba2-9c91-f8cbdafa322c
	testing.go:492: Error destroying resource! WARNING: Dangling resources
		may exist. The full state and error is shown below.
		
		Error: Error refreshing: 1 error(s) occurred:
		
		* aws_vpc.tftestvpc: 1 error(s) occurred:
		
		* aws_vpc.tftestvpc: aws_vpc.tftestvpc: AuthFailure: This request has been administratively disabled.
			status code: 403, request id: 87b003e3-fc13-4d6b-9fba-c662638c5e7a
		
		State: <nil>
=== RUN   TestAccAWSDefaultNetworkAcl_deny_ingress
--- PASS: TestAccAWSDefaultNetworkAcl_deny_ingress (16.68s)
=== RUN   TestAccAWSDefaultNetworkAcl_withIpv6Ingress
--- PASS: TestAccAWSDefaultNetworkAcl_withIpv6Ingress (17.83s)
=== RUN   TestAccAWSDefaultNetworkAcl_SubnetRemoval
--- PASS: TestAccAWSDefaultNetworkAcl_SubnetRemoval (33.45s)
=== RUN   TestAccAWSDefaultNetworkAcl_SubnetReassign
--- PASS: TestAccAWSDefaultNetworkAcl_SubnetReassign (35.84s)

@stack72 stack72 merged commit e53da01 into master Jul 11, 2017
@stack72 stack72 deleted the f-aws-default-network-acl-1096 branch July 11, 2017 18:34
@tylert
Copy link

tylert commented Jul 11, 2017

@stack72 if this is already supported by aws_default_security_group, the docs will also need an update too. Otherwise, given my limited knowledge of the terraform code, this LGTM too.

@ghost
Copy link

ghost commented Apr 11, 2020

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!

@ghost ghost locked and limited conversation to collaborators Apr 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for "ipv6_cidr_block" to "aws_default_network_acl" and "aws_default_security_group" resources
3 participants