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

aws_ec2_capacity_reservation outpost_arn attribute support #19535

Merged
merged 6 commits into from
May 26, 2021
Merged

aws_ec2_capacity_reservation outpost_arn attribute support #19535

merged 6 commits into from
May 26, 2021

Conversation

richardjennings
Copy link
Contributor

@richardjennings richardjennings commented May 26, 2021

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 #19509

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccXXX'

...

@ghost ghost added the size/XS Managed by automation to categorize the size of a PR. label May 26, 2021
@github-actions github-actions bot added the service/ec2 Issues and PRs that pertain to the ec2 service. label May 26, 2021
@richardjennings richardjennings changed the title aws_ec2_capacity_reservation outpost_arn attribute support #19509 aws_ec2_capacity_reservation outpost_arn attribute support May 26, 2021
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label May 26, 2021
@richardjennings
Copy link
Contributor Author

Missing Tests. How can outpost_arn be tested ?

…rvation: Add support for outpost_arn attribute
@ewbankkit
Copy link
Contributor

@richardjennings Thanks for the contribution 👏.
All that remains is to add a check to TestAccAWSEc2CapacityReservation_basic that outpost_arn is "" and adding a line to website/docs/r/ec2_capacity_reservation.html.markdown.

@github-actions github-actions bot added documentation Introduces or discusses updates to documentation. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels May 26, 2021
@richardjennings
Copy link
Contributor Author

@richardjennings Thanks for the contribution 👏.
All that remains is to add a check to TestAccAWSEc2CapacityReservation_basic that outpost_arn is "" and adding a line to website/docs/r/ec2_capacity_reservation.html.markdown.

done

@richardjennings richardjennings marked this pull request as ready for review May 26, 2021 18:00
@richardjennings richardjennings requested a review from a team as a code owner May 26, 2021 18:00
@richardjennings richardjennings requested review from ewbankkit and removed request for a team May 26, 2021 18:33
@ewbankkit ewbankkit removed the needs-triage Waiting for first response or review from a maintainer. label May 26, 2021
Copy link
Contributor

@ewbankkit ewbankkit left a comment

Choose a reason for hiding this comment

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

LGTM 🚀.

Commercial
% make testacc TEST=./aws TESTARGS='-run=TestAccAWSEc2CapacityReservation_'                                                 
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSEc2CapacityReservation_ -timeout 180m
=== RUN   TestAccAWSEc2CapacityReservation_basic
=== PAUSE TestAccAWSEc2CapacityReservation_basic
=== RUN   TestAccAWSEc2CapacityReservation_ebsOptimized
=== PAUSE TestAccAWSEc2CapacityReservation_ebsOptimized
=== RUN   TestAccAWSEc2CapacityReservation_endDate
=== PAUSE TestAccAWSEc2CapacityReservation_endDate
=== RUN   TestAccAWSEc2CapacityReservation_endDateType
=== PAUSE TestAccAWSEc2CapacityReservation_endDateType
=== RUN   TestAccAWSEc2CapacityReservation_ephemeralStorage
=== PAUSE TestAccAWSEc2CapacityReservation_ephemeralStorage
=== RUN   TestAccAWSEc2CapacityReservation_instanceCount
=== PAUSE TestAccAWSEc2CapacityReservation_instanceCount
=== RUN   TestAccAWSEc2CapacityReservation_instanceMatchCriteria
=== PAUSE TestAccAWSEc2CapacityReservation_instanceMatchCriteria
=== RUN   TestAccAWSEc2CapacityReservation_instanceType
=== PAUSE TestAccAWSEc2CapacityReservation_instanceType
=== RUN   TestAccAWSEc2CapacityReservation_tags
=== PAUSE TestAccAWSEc2CapacityReservation_tags
=== RUN   TestAccAWSEc2CapacityReservation_disappears
=== PAUSE TestAccAWSEc2CapacityReservation_disappears
=== RUN   TestAccAWSEc2CapacityReservation_tenancy
    provider_test.go:57: EC2 Capacity Reservations do not currently support dedicated tenancy.
--- SKIP: TestAccAWSEc2CapacityReservation_tenancy (0.00s)
=== CONT  TestAccAWSEc2CapacityReservation_basic
=== CONT  TestAccAWSEc2CapacityReservation_instanceMatchCriteria
=== CONT  TestAccAWSEc2CapacityReservation_endDateType
=== CONT  TestAccAWSEc2CapacityReservation_ephemeralStorage
=== CONT  TestAccAWSEc2CapacityReservation_tags
=== CONT  TestAccAWSEc2CapacityReservation_disappears
=== CONT  TestAccAWSEc2CapacityReservation_instanceType
=== CONT  TestAccAWSEc2CapacityReservation_instanceCount
=== CONT  TestAccAWSEc2CapacityReservation_endDate
=== CONT  TestAccAWSEc2CapacityReservation_ebsOptimized
--- PASS: TestAccAWSEc2CapacityReservation_disappears (17.71s)
--- PASS: TestAccAWSEc2CapacityReservation_ebsOptimized (25.14s)
--- PASS: TestAccAWSEc2CapacityReservation_basic (25.14s)
--- PASS: TestAccAWSEc2CapacityReservation_instanceMatchCriteria (25.59s)
--- PASS: TestAccAWSEc2CapacityReservation_ephemeralStorage (25.59s)
--- PASS: TestAccAWSEc2CapacityReservation_instanceCount (39.86s)
--- PASS: TestAccAWSEc2CapacityReservation_instanceType (40.14s)
--- PASS: TestAccAWSEc2CapacityReservation_endDate (40.27s)
--- PASS: TestAccAWSEc2CapacityReservation_tags (49.01s)
--- PASS: TestAccAWSEc2CapacityReservation_endDateType (50.54s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	53.486s          
GovCloud
% make testacc TEST=./aws TESTARGS='-run=TestAccAWSEc2CapacityReservation_' 
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSEc2CapacityReservation_ -timeout 180m
=== RUN   TestAccAWSEc2CapacityReservation_basic
=== PAUSE TestAccAWSEc2CapacityReservation_basic
=== RUN   TestAccAWSEc2CapacityReservation_ebsOptimized
=== PAUSE TestAccAWSEc2CapacityReservation_ebsOptimized
=== RUN   TestAccAWSEc2CapacityReservation_endDate
=== PAUSE TestAccAWSEc2CapacityReservation_endDate
=== RUN   TestAccAWSEc2CapacityReservation_endDateType
=== PAUSE TestAccAWSEc2CapacityReservation_endDateType
=== RUN   TestAccAWSEc2CapacityReservation_ephemeralStorage
=== PAUSE TestAccAWSEc2CapacityReservation_ephemeralStorage
=== RUN   TestAccAWSEc2CapacityReservation_instanceCount
=== PAUSE TestAccAWSEc2CapacityReservation_instanceCount
=== RUN   TestAccAWSEc2CapacityReservation_instanceMatchCriteria
=== PAUSE TestAccAWSEc2CapacityReservation_instanceMatchCriteria
=== RUN   TestAccAWSEc2CapacityReservation_instanceType
=== PAUSE TestAccAWSEc2CapacityReservation_instanceType
=== RUN   TestAccAWSEc2CapacityReservation_tags
=== PAUSE TestAccAWSEc2CapacityReservation_tags
=== RUN   TestAccAWSEc2CapacityReservation_disappears
=== PAUSE TestAccAWSEc2CapacityReservation_disappears
=== RUN   TestAccAWSEc2CapacityReservation_tenancy
    provider_test.go:57: EC2 Capacity Reservations do not currently support dedicated tenancy.
--- SKIP: TestAccAWSEc2CapacityReservation_tenancy (0.00s)
=== CONT  TestAccAWSEc2CapacityReservation_basic
=== CONT  TestAccAWSEc2CapacityReservation_endDateType
=== CONT  TestAccAWSEc2CapacityReservation_ebsOptimized
=== CONT  TestAccAWSEc2CapacityReservation_instanceCount
=== CONT  TestAccAWSEc2CapacityReservation_instanceMatchCriteria
=== CONT  TestAccAWSEc2CapacityReservation_disappears
=== CONT  TestAccAWSEc2CapacityReservation_tags
=== CONT  TestAccAWSEc2CapacityReservation_endDate
=== CONT  TestAccAWSEc2CapacityReservation_instanceType
=== CONT  TestAccAWSEc2CapacityReservation_ephemeralStorage
--- PASS: TestAccAWSEc2CapacityReservation_disappears (25.74s)
--- PASS: TestAccAWSEc2CapacityReservation_ebsOptimized (30.08s)
--- PASS: TestAccAWSEc2CapacityReservation_ephemeralStorage (30.22s)
--- PASS: TestAccAWSEc2CapacityReservation_basic (30.39s)
--- PASS: TestAccAWSEc2CapacityReservation_instanceMatchCriteria (30.40s)
--- PASS: TestAccAWSEc2CapacityReservation_instanceCount (40.92s)
--- PASS: TestAccAWSEc2CapacityReservation_endDate (43.05s)
--- PASS: TestAccAWSEc2CapacityReservation_instanceType (44.63s)
--- PASS: TestAccAWSEc2CapacityReservation_endDateType (57.02s)
--- PASS: TestAccAWSEc2CapacityReservation_tags (58.78s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	62.099s

@ewbankkit
Copy link
Contributor

@richardjennings Thanks for the contribution 🎉 👏.

@ewbankkit ewbankkit merged commit 10935ba into hashicorp:main May 26, 2021
@github-actions github-actions bot added this to the v3.43.0 milestone May 26, 2021
@FireballDWF
Copy link

@richardjennings Thanks for the PR, and @ewbankkit thanks for the review and merge. I can facilitate access to the AWS Outpost Test Lab (no cost), or do the testing myself or by one of my peers.

@richardjennings richardjennings deleted the 19509 branch June 1, 2021 14:33
@ghost
Copy link

ghost commented Jun 1, 2021

This has been released in version 3.43.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!

@github-actions
Copy link

github-actions bot commented Jul 3, 2021

I'm going to lock this pull request 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 related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 3, 2021
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. service/ec2 Issues and PRs that pertain to the ec2 service. size/XS 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.

r/aws_ec2_capacity_reservation outpost_arn attribute support
3 participants