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

Update aws_launch_template schema(ipv6 addr count) #5771

Merged

Conversation

iamjarvo
Copy link
Contributor

@iamjarvo iamjarvo commented Sep 4, 2018

Change ipv6_address_count from computed to optional

Changes proposed in this pull request:

  • Change ipv6_address_count from computed to true - aws/resource_aws_launch_template.go

Output from acceptance testing:

make test                                                                                                    
==> Checking that code complies with gofmt requirements...
go test ./... -timeout=30s -parallel=4
?       github.com/terraform-providers/terraform-provider-aws   [no test files]
ok      github.com/terraform-providers/terraform-provider-aws/aws       6.339s
...

Example of this working with the aws cli


aws ec2 create-launch-template --launch-template-name example-template --version-description WebVersion1 --launch-template-data '{"NetworkInterfaces":[{"Ipv6AddressCount":1,"SubnetId":"a-subnet"}],"ImageId":"123444","InstanceType":"t2.small","TagSpecifications":[{"ResourceType":"instance","Tags":[{"Key":"Name","Value":"webserver"}]}]}'

@bflad bflad added enhancement Requests to existing resources that expand the functionality or scope. service/ec2 Issues and PRs that pertain to the ec2 service. labels Sep 4, 2018
@bflad
Copy link
Contributor

bflad commented Sep 4, 2018

Hi @iamjarvo 👋 Thank you for submitting this. Can you please provide an acceptance test or self-contained configuration that shows successful usage of this new argument? It will help speed up getting this pull request merged. Thanks!

@bflad bflad added the waiting-response Maintainers are waiting on response from community or contributor. label Sep 4, 2018
@iamjarvo
Copy link
Contributor Author

iamjarvo commented Sep 6, 2018

@bflad will write a test. Need to take a look at how the tests work. I think this will help me https://www.terraform.io/docs/extend/testing/acceptance-tests/index.html

@bflad
Copy link
Contributor

bflad commented Sep 10, 2018

See also: #5830 (I would suggest working together)

@kl4w
Copy link
Contributor

kl4w commented Sep 11, 2018

@iamjarvo my bad for not seeing your PR. cos you already started ipv6 portion, i'll change my PR to just address the ipv4 yeah?

@iamjarvo
Copy link
Contributor Author

@kl4w sounds good! I should opened an issue for visibility

Change ipv6_address_count from computed to optional
@iamjarvo iamjarvo force-pushed the set-ipv6-address-count-on-launch-template branch from d722c72 to 0f6ee04 Compare September 19, 2018 19:48
@ghost ghost added size/M Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Sep 19, 2018
@iamjarvo
Copy link
Contributor Author

iamjarvo commented Sep 19, 2018

 make testacc TESTARGS=-run=TestAccAWSLaunchTemplate_networkInterface_ipv6_count
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./... -v -run=TestAccAWSLaunchTemplate_networkInterface_ipv6_count -timeout 120m
?       github.com/terraform-providers/terraform-provider-aws   [no test files]
=== RUN   TestAccAWSLaunchTemplate_networkInterface_ipv6_count
--- PASS: TestAccAWSLaunchTemplate_networkInterface_ipv6_count (12.71s)
PASS
ok      github.com/terraform-providers/terraform-provider-aws/aws       16.617s

@bflad wrote a test

@bflad bflad removed the waiting-response Maintainers are waiting on response from community or contributor. label Sep 20, 2018
Copy link
Contributor

@bflad bflad left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @iamjarvo! 🚀

--- PASS: TestAccAWSLaunchTemplate_data (4.65s)
--- PASS: TestAccAWSLaunchTemplate_creditSpecification_t2 (5.24s)
--- PASS: TestAccAWSLaunchTemplate_creditSpecification_t3 (6.99s)
--- PASS: TestAccAWSLaunchTemplate_networkInterface_ipv6Addresses (7.39s)
--- PASS: TestAccAWSLaunchTemplate_networkInterface_ipv6_count (7.45s)
--- PASS: TestAccAWSLaunchTemplate_basic (7.61s)
--- PASS: TestAccAWSLaunchTemplate_importData (7.64s)
--- PASS: TestAccAWSLaunchTemplate_creditSpecification_nonBurstable (7.79s)
--- PASS: TestAccAWSLaunchTemplate_importBasic (8.01s)
--- PASS: TestAccAWSLaunchTemplate_tags (10.55s)
--- PASS: TestAccAWSLaunchTemplate_networkInterface (12.21s)
--- PASS: TestAccAWSLaunchTemplate_BlockDeviceMappings_EBS (36.54s)
--- PASS: TestAccAWSLaunchTemplate_BlockDeviceMappings_EBS_DeleteOnTermination (39.92s)
--- PASS: TestAccAWSLaunchTemplate_update (45.58s)

@bflad bflad added this to the v1.38.0 milestone Sep 20, 2018
@bflad bflad merged commit a1f55f8 into hashicorp:master Sep 20, 2018
bflad added a commit that referenced this pull request Sep 20, 2018
@iamjarvo iamjarvo deleted the set-ipv6-address-count-on-launch-template branch September 20, 2018 16:00
@bflad
Copy link
Contributor

bflad commented Sep 26, 2018

This has been released in version 1.38.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

@ghost
Copy link

ghost commented Apr 3, 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 3, 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. service/ec2 Issues and PRs that pertain to the ec2 service. size/M Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants