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

rd/ebs_volume - support multi attach #13108

Merged
merged 10 commits into from
May 7, 2020

Conversation

DrFaust92
Copy link
Collaborator

@DrFaust92 DrFaust92 commented Apr 30, 2020

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Closes #13104

Release note for CHANGELOG:

resource_aws_ebs_volume: support multi attach
data_source_aws_ebs_volume: support multi attach

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccAWSEBSVolume_'
--- PASS: TestAccAWSEBSVolume_basic (66.31s)
--- PASS: TestAccAWSEBSVolume_updateAttachedEbsVolume (295.79s)
--- PASS: TestAccAWSEBSVolume_updateSize (132.89s)
--- PASS: TestAccAWSEBSVolume_updateType (129.24s)
--- PASS: TestAccAWSEBSVolume_updateIops (135.13s)
--- PASS: TestAccAWSEBSVolume_kmsKey (115.12s)
--- PASS: TestAccAWSEBSVolume_NoIops (70.87s)
--- PASS: TestAccAWSEBSVolume_withTags (63.95s)
--- PASS: TestAccAWSEBSVolume_multiAttach (66.32s)

--- PASS: TestAccAWSEbsVolumeDataSource_basic (77.00s)
--- PASS: TestAccAWSEbsVolumeDataSource_multipleFilters (81.83s)

@DrFaust92 DrFaust92 requested a review from a team April 30, 2020 14:55
@ghost ghost added size/M Managed by automation to categorize the size of a PR. needs-triage Waiting for first response or review from a maintainer. documentation Introduces or discusses updates to documentation. service/ec2 Issues and PRs that pertain to the ec2 service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Apr 30, 2020
@DrFaust92 DrFaust92 changed the title [WIP]r/ebs_volume - support multi attach r/ebs_volume - support multi attach Apr 30, 2020
@ewbankkit
Copy link
Contributor

Also add to the equivalent data source?

Verified acceptance tests:

$ make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSEBSVolume_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws/ -v -count 1 -parallel 20 -run=TestAccAWSEBSVolume_ -timeout 120m
=== RUN   TestAccAWSEBSVolume_basic
=== PAUSE TestAccAWSEBSVolume_basic
=== RUN   TestAccAWSEBSVolume_updateAttachedEbsVolume
=== PAUSE TestAccAWSEBSVolume_updateAttachedEbsVolume
=== RUN   TestAccAWSEBSVolume_updateSize
=== PAUSE TestAccAWSEBSVolume_updateSize
=== RUN   TestAccAWSEBSVolume_updateType
=== PAUSE TestAccAWSEBSVolume_updateType
=== RUN   TestAccAWSEBSVolume_updateIops
=== PAUSE TestAccAWSEBSVolume_updateIops
=== RUN   TestAccAWSEBSVolume_kmsKey
=== PAUSE TestAccAWSEBSVolume_kmsKey
=== RUN   TestAccAWSEBSVolume_NoIops
=== PAUSE TestAccAWSEBSVolume_NoIops
=== RUN   TestAccAWSEBSVolume_withTags
=== PAUSE TestAccAWSEBSVolume_withTags
=== RUN   TestAccAWSEBSVolume_multiAttach
=== PAUSE TestAccAWSEBSVolume_multiAttach
=== RUN   TestAccAWSEBSVolume_outpost
--- SKIP: TestAccAWSEBSVolume_outpost (0.00s)
    resource_aws_ebs_volume_test.go:350: Environment variable AWS_OUTPOST_ARN is not set. This environment variable must be set to the ARN of a deployed Outpost to enable this test.
=== CONT  TestAccAWSEBSVolume_basic
=== CONT  TestAccAWSEBSVolume_kmsKey
=== CONT  TestAccAWSEBSVolume_updateIops
=== CONT  TestAccAWSEBSVolume_multiAttach
=== CONT  TestAccAWSEBSVolume_updateType
=== CONT  TestAccAWSEBSVolume_withTags
=== CONT  TestAccAWSEBSVolume_updateSize
=== CONT  TestAccAWSEBSVolume_NoIops
=== CONT  TestAccAWSEBSVolume_updateAttachedEbsVolume
--- PASS: TestAccAWSEBSVolume_NoIops (39.48s)
--- PASS: TestAccAWSEBSVolume_basic (39.80s)
--- PASS: TestAccAWSEBSVolume_multiAttach (39.86s)
--- PASS: TestAccAWSEBSVolume_withTags (40.36s)
--- PASS: TestAccAWSEBSVolume_kmsKey (46.01s)
--- PASS: TestAccAWSEBSVolume_updateIops (69.62s)
--- PASS: TestAccAWSEBSVolume_updateType (69.84s)
--- PASS: TestAccAWSEBSVolume_updateSize (69.85s)
--- PASS: TestAccAWSEBSVolume_updateAttachedEbsVolume (206.27s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	206.315s

@bflad bflad added enhancement Requests to existing resources that expand the functionality or scope. and removed needs-triage Waiting for first response or review from a maintainer. labels Apr 30, 2020
@DrFaust92 DrFaust92 changed the title r/ebs_volume - support multi attach [WIP]r/ebs_volume - support multi attach Apr 30, 2020
@DrFaust92
Copy link
Collaborator Author

changes to WIP, adding data source

@DrFaust92 DrFaust92 changed the title [WIP]r/ebs_volume - support multi attach [WIP]rd/ebs_volume - support multi attach Apr 30, 2020
@DrFaust92 DrFaust92 changed the title [WIP]rd/ebs_volume - support multi attach rd/ebs_volume - support multi attach Apr 30, 2020
@DrFaust92
Copy link
Collaborator Author

added data source support

@anGie44 anGie44 self-assigned this May 1, 2020
Copy link
Contributor

@anGie44 anGie44 left a comment

Choose a reason for hiding this comment

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

LGTM! Nice refactor 👍
Confirmed acceptance tests as commented by @ewbankkit and additional data_source tests:

--- PASS: TestAccAWSEbsVolumeDataSource_basic (22.20s)
--- PASS: TestAccAWSEbsVolumeDataSource_multipleFilters (22.55s)

@anGie44 anGie44 added this to the v2.61.0 milestone May 1, 2020
@anGie44 anGie44 requested a review from bflad May 4, 2020 20:13
Copy link
Member

@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.

Otherwise, looks okay 👍

Output from acceptance testing:

--- PASS: TestAccAWSEBSVolume_kmsKey (21.03s)
--- PASS: TestAccAWSEBSVolume_withTags (21.78s)
--- PASS: TestAccAWSEbsVolumeDataSource_multipleFilters (21.99s)
--- PASS: TestAccAWSEBSVolume_multiAttach (22.04s)
--- PASS: TestAccAWSEBSVolume_basic (22.25s)
--- PASS: TestAccAWSEBSVolume_NoIops (22.51s)
--- PASS: TestAccAWSEbsVolumeDataSource_basic (22.57s)
--- PASS: TestAccAWSEBSVolume_updateSize (38.08s)
--- PASS: TestAccAWSEBSVolume_updateIops (39.14s)
--- PASS: TestAccAWSEBSVolume_updateType (39.19s)
--- PASS: TestAccAWSEBSVolume_updateAttachedEbsVolume (150.99s)

aws/resource_aws_ebs_volume.go Outdated Show resolved Hide resolved
aws/resource_aws_ebs_volume.go Outdated Show resolved Hide resolved
@DrFaust92
Copy link
Collaborator Author

@bflad changes made and tested

@anGie44
Copy link
Contributor

anGie44 commented May 7, 2020

@DrFaust92 do you mind adding the attribute re-name change to the data source and website docs as well?

@DrFaust92
Copy link
Collaborator Author

🤦 on it.

@DrFaust92
Copy link
Collaborator Author

added also disappears test

--- PASS: TestAccAWSEBSVolume_disappears (80.95s)

Copy link
Contributor

@anGie44 anGie44 left a comment

Choose a reason for hiding this comment

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

Awesome, thank you @DrFaust92! Changes LGTM 👍

Confirmed output of acceptance tests in TC:

--- PASS: TestAccAWSEBSVolume_outpost
--- PASS: TestAccAWSEBSVolume_disappears
--- PASS: TestAccAWSEbsVolumeDataSource_basic
--- PASS: TestAccAWSEBSVolume_basic
--- PASS: TestAccAWSEBSVolume_NoIops
--- PASS: TestAccAWSEBSVolume_kmsKey
--- PASS: TestAccAWSEbsVolumeDataSource_multipleFilters
--- PASS: TestAccAWSEBSVolume_multiAttach
--- PASS: TestAccAWSEBSVolume_withTags
--- PASS: TestAccAWSEBSVolume_updateSize
--- PASS: TestAccAWSEBSVolume_updateType
--- PASS: TestAccAWSEBSVolume_updateIops
--- PASS: TestAccAWSEBSVolume_updateAttachedEbsVolume

@anGie44 anGie44 merged commit f855ca6 into hashicorp:master May 7, 2020
anGie44 added a commit that referenced this pull request May 7, 2020
@ghost
Copy link

ghost commented May 8, 2020

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

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!

@ghost
Copy link

ghost commented Jun 7, 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 Jun 7, 2020
@DrFaust92 DrFaust92 deleted the r/ebs_volume_multi_attach branch June 23, 2020 11:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. 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.

[Feature Request] Add multi_attach option to EBS creation.
4 participants