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

r/medialive_input: export destinations attribute #36243

Conversation

chrisandrews7
Copy link
Contributor

Description

Destination attributes are not currently exported on the medialive_input resource.
And with no data source available, its not possible to access the url, port, ip of the endpoints associated with the input.

References

Output from Acceptance Testing

% make testacc TESTS=TestAccMediaLiveInput_ PKG=medialive 
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/medialive/... -v -count 1 -parallel 20 -run='TestAccMediaLiveInput_'  -timeout 360m
=== RUN   TestAccMediaLiveInput_basic
=== PAUSE TestAccMediaLiveInput_basic
=== RUN   TestAccMediaLiveInput_destinations
=== PAUSE TestAccMediaLiveInput_destinations
=== RUN   TestAccMediaLiveInput_update
=== PAUSE TestAccMediaLiveInput_update
=== RUN   TestAccMediaLiveInput_updateTags
=== PAUSE TestAccMediaLiveInput_updateTags
=== RUN   TestAccMediaLiveInput_disappears
=== PAUSE TestAccMediaLiveInput_disappears
=== CONT  TestAccMediaLiveInput_basic
=== CONT  TestAccMediaLiveInput_disappears
=== CONT  TestAccMediaLiveInput_update
=== CONT  TestAccMediaLiveInput_destinations
=== CONT  TestAccMediaLiveInput_updateTags
--- PASS: TestAccMediaLiveInput_disappears (60.35s)
--- PASS: TestAccMediaLiveInput_basic (64.54s)
--- PASS: TestAccMediaLiveInput_destinations (76.24s)
--- PASS: TestAccMediaLiveInput_updateTags (87.87s)
--- PASS: TestAccMediaLiveInput_update (107.61s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/medialive  107.693s

Copy link

github-actions bot commented Mar 6, 2024

Community Note

Voting for Prioritization

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

For Submitters

  • Review the contribution guide relating to the type of change you are making to ensure all of the necessary steps have been taken.
  • For new resources and data sources, use skaff to generate scaffolding with comments detailing common expectations.
  • Whether or not the branch has been rebased will not impact prioritization, but doing so is always a welcome surprise.

@github-actions github-actions bot added size/M Managed by automation to categorize the size of a PR. documentation Introduces or discusses updates to documentation. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. service/medialive Issues and PRs that pertain to the medialive service. labels Mar 6, 2024
@terraform-aws-provider terraform-aws-provider bot added the needs-triage Waiting for first response or review from a maintainer. label Mar 6, 2024
@chrisandrews7
Copy link
Contributor Author

@jar-b Sorry I know I've probably reached my quota for today ;)

@johnsonaj johnsonaj self-assigned this Mar 7, 2024
@johnsonaj johnsonaj 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 Mar 7, 2024
@terraform-aws-provider terraform-aws-provider bot added the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label Mar 7, 2024
@johnsonaj
Copy link
Contributor

Hi @chrisandrews7 thank you for the contribution! After reviewing this resource it looks like adding a data source is the ideal approach to retrieve the destinations output.

the aws_medialive_input destination attribute has different values than what is returned by the output. Adding the additional attributes here would cause unexpected drift in the resource for any configured destinations.

I'll close out this PR with the addition of a data source for the input resource.

@chrisandrews7
Copy link
Contributor Author

Yep absolutely makes sense. Thanks @johnsonaj

@chrisandrews7 chrisandrews7 deleted the f-aws_medialive_input-destinations-output branch March 12, 2024 09:53
Copy link

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 Apr 12, 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. prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. service/medialive Issues and PRs that pertain to the medialive 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.

2 participants