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 outpost_arn to instance datasource #12330

Merged
merged 9 commits into from
Apr 29, 2020
Merged

Add outpost_arn to instance datasource #12330

merged 9 commits into from
Apr 29, 2020

Conversation

johnbarney
Copy link
Contributor

@johnbarney johnbarney commented Mar 10, 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

Relates #12302

Release note for CHANGELOG:

Adds Outpost support to instance datasource
Adds Outpost support to instance resource

Output from acceptance testing:

$ make testacc TEST=./aws TESTARGS='-run=TestAccAWSInstanceDataSource_basic'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSInstanceDataSource_basic -timeout 120m
=== RUN   TestAccAWSInstanceDataSource_basic
=== PAUSE TestAccAWSInstanceDataSource_basic
=== CONT  TestAccAWSInstanceDataSource_basic
--- PASS: TestAccAWSInstanceDataSource_basic (194.13s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	195.632s

$ make testacc TEST=./aws TESTARGS='-run=TestAccAWSInstance_basic'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSInstance_basic -timeout 120m
=== RUN   TestAccAWSInstance_basic
=== PAUSE TestAccAWSInstance_basic
=== CONT  TestAccAWSInstance_basic
--- PASS: TestAccAWSInstance_basic (311.96s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	313.473s

@johnbarney johnbarney requested a review from a team March 10, 2020 15:19
@ghost ghost added needs-triage Waiting for first response or review from a maintainer. size/M Managed by automation to categorize the size of a PR. service/ec2 Issues and PRs that pertain to the ec2 service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. documentation Introduces or discusses updates to documentation. labels Mar 10, 2020
@johnbarney
Copy link
Contributor Author

johnbarney commented Mar 10, 2020

Requires #12097 to run test in addition to an Outpost to test with

I wasn't sure if datasources should be tested in this way, or if the test should only cover filters. Happy to remove if needed.

@ewbankkit
Copy link
Contributor

@johnbarney Thanks for this.
You could add a check to some (at least TestAccAWSInstanceDataSource_basic) of the other acceptance tests to check that the outpost_arn attribute is empty.

@johnbarney
Copy link
Contributor Author

Done

$ make testacc TEST=./aws TESTARGS='-run=TestAccAWSInstanceDataSource_basic'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSInstanceDataSource_basic -timeout 120m
=== RUN   TestAccAWSInstanceDataSource_basic
=== PAUSE TestAccAWSInstanceDataSource_basic
=== CONT  TestAccAWSInstanceDataSource_basic
--- PASS: TestAccAWSInstanceDataSource_basic (161.09s)
PASS
ok      github.com/terraform-providers/terraform-provider-aws/aws       162.630s

@ghost ghost added size/S Managed by automation to categorize the size of a PR. and removed size/M Managed by automation to categorize the size of a PR. labels Mar 31, 2020
@ghost ghost added size/XS Managed by automation to categorize the size of a PR. and removed size/S Managed by automation to categorize the size of a PR. labels Mar 31, 2020
@ghost ghost added size/M Managed by automation to categorize the size of a PR. and removed size/XS Managed by automation to categorize the size of a PR. labels Apr 2, 2020
@johnbarney
Copy link
Contributor Author

Requires changes from #12097

$ AWS_OUTPOST_ARN=arn:aws:outposts:us-west-2:<snip>:outpost/op-<snip> make testacc TEST=./aws TESTARGS='-run=TestAccAWSInstance_outpost'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSInstance_outpost -timeout 120m
=== RUN   TestAccAWSInstance_outpost
=== PAUSE TestAccAWSInstance_outpost
=== CONT  TestAccAWSInstance_outpost
--- PASS: TestAccAWSInstance_outpost (273.50s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	275.827s

@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 29, 2020
@bflad bflad self-assigned this Apr 29, 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.

Verified, thanks so much, @johnbarney! 🚀

Output from acceptance testing:

--- PASS: TestAccAWSInstance_basic (176.36s)
--- PASS: TestAccAWSInstance_outpost (105.96s)

--- PASS: TestAccAWSInstanceDataSource_basic (136.32s)

@bflad bflad added this to the v2.60.0 milestone Apr 29, 2020
@bflad bflad merged commit 9398677 into hashicorp:master Apr 29, 2020
bflad added a commit that referenced this pull request Apr 29, 2020
@johnbarney johnbarney deleted the outpost-instance branch April 29, 2020 17:56
@ghost
Copy link

ghost commented May 1, 2020

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

adamdecaf pushed a commit to adamdecaf/terraform-provider-aws that referenced this pull request May 28, 2020
…ata source (hashicorp#12330)

Output from acceptance testing:

```
--- PASS: TestAccAWSInstance_basic (176.36s)
--- PASS: TestAccAWSInstance_outpost (105.96s)

--- PASS: TestAccAWSInstanceDataSource_basic (136.32s)
```
@ghost
Copy link

ghost commented May 30, 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 30, 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. enhancement Requests to existing resources that expand the functionality or scope. partner Contribution from a partner. 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.

4 participants