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

Add Datasource for COIP Pool(s) (Outpost) #12852

Merged
merged 3 commits into from
May 1, 2020
Merged

Add Datasource for COIP Pool(s) (Outpost) #12852

merged 3 commits into from
May 1, 2020

Conversation

johnbarney
Copy link
Contributor

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

Relates #12302

Release note for CHANGELOG:

Add Datasource for COIP Pool(s)

Output from acceptance testing:

$ AWS_COIP_POOL_ID=ipv4pool-coip-<snip> make testacc TEST=./aws TESTARGS='-run=TestAccDataSourceAwsCoipPool'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccDataSourceAwsCoipPool -timeout 120m
=== RUN   TestAccDataSourceAwsCoipPool_basic
=== PAUSE TestAccDataSourceAwsCoipPool_basic
=== RUN   TestAccDataSourceAwsCoipPools_basic
=== PAUSE TestAccDataSourceAwsCoipPools_basic
=== RUN   TestAccDataSourceAwsCoipPools_filters
=== PAUSE TestAccDataSourceAwsCoipPools_filters
=== CONT  TestAccDataSourceAwsCoipPool_basic
=== CONT  TestAccDataSourceAwsCoipPools_basic
=== CONT  TestAccDataSourceAwsCoipPools_filters
--- PASS: TestAccDataSourceAwsCoipPools_basic (50.75s)
--- PASS: TestAccDataSourceAwsCoipPool_basic (50.75s)
--- PASS: TestAccDataSourceAwsCoipPools_filters (51.23s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	53.534s

@johnbarney johnbarney requested a review from a team April 16, 2020 13:19
@ghost ghost added needs-triage Waiting for first response or review from a maintainer. size/XL Managed by automation to categorize the size of a PR. provider Pertains to the provider itself, rather than any interaction with AWS. documentation Introduces or discusses updates to documentation. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Apr 16, 2020
@johnbarney
Copy link
Contributor Author

$ AWS_COIP_POOL_ID=ipv4pool-coip-040963628a75e6954 make testacc TEST=./aws TESTARGS='-run=TestAccDataSourceAwsCoipPool'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccDataSourceAwsCoipPool -timeout 120m
=== RUN   TestAccDataSourceAwsCoipPool_basic
=== PAUSE TestAccDataSourceAwsCoipPool_basic
=== RUN   TestAccDataSourceAwsCoipPools_basic
=== PAUSE TestAccDataSourceAwsCoipPools_basic
=== RUN   TestAccDataSourceAwsCoipPools_filters
=== PAUSE TestAccDataSourceAwsCoipPools_filters
=== CONT  TestAccDataSourceAwsCoipPool_basic
=== CONT  TestAccDataSourceAwsCoipPools_basic
=== CONT  TestAccDataSourceAwsCoipPools_filters
--- PASS: TestAccDataSourceAwsCoipPools_filters (53.27s)
--- PASS: TestAccDataSourceAwsCoipPool_basic (53.27s)
--- PASS: TestAccDataSourceAwsCoipPools_basic (53.27s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	55.730s

@bflad bflad added new-data-source Introduces a new data source. service/ec2 Issues and PRs that pertain to the ec2 service. and removed needs-triage Waiting for first response or review from a maintainer. labels Apr 29, 2020
@bflad bflad self-assigned this May 1, 2020
@bflad bflad added this to the v2.61.0 milestone May 1, 2020
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.

Hi @johnbarney 👋 Thank you for submitting this as well! Overall it was looking pretty good. Please note that we're trying to sneak these in while we have an Outpost available for testing for a limited time so pulling this in with some slight modifications in a followup commit (rather than our normal back-and-forth during review):

  • Renaming everything to include the service name, EC2. aws_ec2_coip_pool, AwsEc2CoipPool, etc. We are trying to get very rigid with naming everything in the Terraform AWS Provider with aws_SERVICE_THING. This may be strictly enforced with some code and tooling work we have planned. EC2 just happens to include lots of anti-examples until we get around to aliasing/fixing the data sources and resources from the oldest versions of Terraform. 😅
  • Consistently using the AWS_OUTPOST_ARN environment variable as the gatekeeper for any testing requiring an Outpost. We run our testing in a lot of different environments, so keeping it to one environment variable to skip or run this testing will make it easiest hopefully for everyone. 😄

Thanks again, this is great! Folks will really appreciate this going forward.

Output from acceptance testing:

--- PASS: TestAccDataSourceAwsEc2CoipPool_Id (17.77s)
--- PASS: TestAccDataSourceAwsEc2CoipPool_Filter (17.85s)

--- PASS: TestAccDataSourceAwsEc2CoipPools_basic (15.76s)
--- PASS: TestAccDataSourceAwsEc2CoipPools_Filter (17.70s)

@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 May 31, 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 May 31, 2020
@justinretzolk justinretzolk added the partner Contribution from a partner. label May 16, 2024
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. new-data-source Introduces a new data source. partner Contribution from a partner. provider Pertains to the provider itself, rather than any interaction with AWS. service/ec2 Issues and PRs that pertain to the ec2 service. size/XL 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.

4 participants