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 ssm_parameters_by_path #9615

Conversation

katainaka0503
Copy link
Contributor

@katainaka0503 katainaka0503 commented Aug 4, 2019

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" comments, they generate extra noise for pull request followers and do not help prioritize the request

Closes #9429.
Closes #11318.

Release note for CHANGELOG:

New Data Source: aws_ssm_parameters_by_path

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccAWSSsmParametersByPathDataSource_basic'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./... -v -parallel 20 -run=TestAccAWSSsmParametersByPathDataSource_basic -timeout 120m
?       github.com/terraform-providers/terraform-provider-aws   [no test files]
=== RUN   TestAccAWSSsmParametersByPathDataSource_basic
=== PAUSE TestAccAWSSsmParametersByPathDataSource_basic
=== CONT  TestAccAWSSsmParametersByPathDataSource_basic
--- PASS: TestAccAWSSsmParametersByPathDataSource_basic (32.50s)
PASS
ok      github.com/terraform-providers/terraform-provider-aws/aws       32.551s

@katainaka0503 katainaka0503 requested a review from a team August 4, 2019 02:46
@ghost ghost added size/L Managed by automation to categorize the size of a PR. provider Pertains to the provider itself, rather than any interaction with AWS. service/ssm Issues and PRs that pertain to the ssm service. documentation Introduces or discusses updates to documentation. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Aug 4, 2019
@katainaka0503 katainaka0503 force-pushed the add-aws-ssm-parameters-by-path-data-source branch 2 times, most recently from 1bd6e9d to a01b4f1 Compare August 4, 2019 03:06
@katainaka0503 katainaka0503 changed the title [WIP] Add datasource ssm_parameters_by_path Add datasource ssm_parameters_by_path Aug 4, 2019
aws/provider.go Outdated
@@ -261,6 +261,7 @@ func Provider() terraform.ResourceProvider {
"aws_sqs_queue": dataSourceAwsSqsQueue(),
"aws_ssm_document": dataSourceAwsSsmDocument(),
"aws_ssm_parameter": dataSourceAwsSsmParameter(),
"aws_ssm_parameters_by_path": dataSourceAwsSsmParametersByPath(),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I could not determine which naming is better aws_ssm_parameters_by_path or simply aws_ssm_parameters.

Choose a reason for hiding this comment

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

IMO aws_ssm_parameters is cleaner but I'd prefer aligning with the aws-cli so aws_ssm_parameters_by_path is the wiser choice.

Choose a reason for hiding this comment

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

differentiating this feature and the single parameter only with one trailing "s" sounds like problematic user/developer experience :)

@cmeisinger
Copy link

Any updates here?

@Dgadavin
Copy link

Dgadavin commented May 4, 2020

Hey guys. This is very useful things. I'm very appreciate any movement in this PR.

@DmitriyLyalyuev
Copy link

Guys, we need this. Please merge :)

@katainaka0503
Copy link
Contributor Author

katainaka0503 commented May 7, 2020

I've rebased and fixed dependency

@katainaka0503 katainaka0503 force-pushed the add-aws-ssm-parameters-by-path-data-source branch 2 times, most recently from 4c016ae to a4e3a6c Compare May 7, 2020 15:48
@katainaka0503 katainaka0503 removed the request for review from a team May 8, 2020 02:34
@katainaka0503 katainaka0503 reopened this May 8, 2020
@vlefr
Copy link

vlefr commented Jun 12, 2020

do you know when should be release please ? It would be very useful feature :)

@teamterraform
Copy link

Notification of Recent and Upcoming Changes to Contributions

Thank you for this contribution! There have been a few recent development changes that affect this pull request. We apologize for the inconvenience, especially if there have been long review delays up until now. Please note that this is automated message from an unmonitored account. See the FAQ for additional information on the maintainer team and review prioritization.

If you are unable to complete these updates, please leave a comment for the community and maintainers so someone can potentially continue the work. The maintainers will encourage other contributors to use the existing contribution as the base for additional changes as appropriate. Otherwise, contributions that do not receive updated code or comments from the original contributor may be closed in the future so the maintainers can focus on active items.

For the most up to date information about Terraform AWS Provider development, see the Contributing Guide. Additional technical debt changes can be tracked with the technical-debt label on issues.

As part of updating a pull request with these changes, the most current unit testing and linting will run. These may report issues that were not previously reported.

Terraform 0.12 Syntax

Reference: #8950
Reference: #14417

Version 3 and later of the Terraform AWS Provider, which all existing contributions would potentially be added, only supports Terraform 0.12 and later. Certain syntax elements of Terraform 0.11 and earlier show deprecation warnings during runs with Terraform 0.12. Documentation and test configurations, such as those including deprecated string interpolations (some_attribute = "${aws_service_thing.example.id}") should be updated to the newer syntax (some_attribute = aws_service_thing.example.id). Contribution testing will automatically fail on older syntax in the near future. Please see the referenced issues for additional information.

Action Required: Terraform Plugin SDK Version 2

Reference: #14551

The Terraform AWS Provider has been upgraded to the latest version of the Terraform Plugin SDK. Generally, most changes to contributions should only involve updating Go import paths in source code files. Please see the referenced issue for additional information.

Action Required: Removal of website/aws.erb File

Reference: #14712

Any changes to the website/aws.erb file are no longer necessary and should be removed from this contribution to prevent merge issues in the near future when the file is removed from the repository. Please see the referenced issue for additional information.

Upcoming Change of Git Branch Naming

Reference: #14292

Development environments will need their upstream Git branch updated from master to main in the near future. Please see the referenced issue for additional information and scheduling.

Upcoming Change of GitHub Organization

Reference: #14715

This repository will be migrating from https://github.com/terraform-providers/terraform-provider-aws to https://github.com/hashicorp/terraform-provider-aws. No practitioner or developer action is anticipated and most GitHub functionality will automatically redirect to the new location. Go import paths including terraform-providers can remain for now. Please see the referenced issue for additional information and scheduling.

@tsalinguepumpkin
Copy link

@katainaka0503 do you know if this gonna be merged ?

@katainaka0503
Copy link
Contributor Author

katainaka0503 commented Sep 1, 2020

@tsalinguepumpkin I don't know how this repo's mainteners wish to deal with this PR at all.

Maybe this PR won't ever be merged, since there is no comment from the mainteners here on this PR.

@melvinkcx
Copy link

We need this feature too! The workaround I have is utterly ugly RN

@maulik-vimond
Copy link

Is there any chance that this will be merged any time soon? This is a very useful feature.

@itays333
Copy link

Was surprised to find out this feature doesn't exist yet, I need this as well.

@theuves
Copy link

theuves commented Dec 6, 2020

This is very useful! Merge it, please!!!

@tsalinguepumpkin
Copy link

any updates on the subject ?

Base automatically changed from master to main January 23, 2021 00:56
@breathingdust breathingdust requested a review from a team as a code owner January 23, 2021 00:56
@anGie44 anGie44 added the new-data-source Introduces a new data source. label Mar 16, 2021
@fatbasstard
Copy link
Contributor

Just found this PR since I also "need" this datasource. Any chance this can/will get any support?

@katainaka0503 You're still monitoring this?

@katainaka0503
Copy link
Contributor Author

Yes. If maintainors are still monitoring this PR, I'm ready to rewrite this PR as it fits current code base.

@fatbasstard
Copy link
Contributor

Going to tag some of the recent contibuters: @anGie44 @ewbankkit @bflad

This is feature people want (including myself 😉 ) and @katainaka0503 is willing to finish up the PR. Can this PR get some ❤️ ?

@yuklia
Copy link

yuklia commented Jul 4, 2021

hi! any news? this feature is really great and we all waiting for the release 👍

@jbcom
Copy link

jbcom commented Jul 27, 2021

Is there anything I could do to help with this? Right now the approach we're using is hacky as heck involving awscli and I would massively love to not be doing that.

@nickperkins
Copy link

Yes. If maintainors are still monitoring this PR, I'm ready to rewrite this PR as it fits current code base.

It might be worth closing this and creating a new PR with the updates rom #9615 (comment).

@ewbankkit ewbankkit force-pushed the add-aws-ssm-parameters-by-path-data-source branch from 5dfab2d to ac4b98b Compare September 30, 2021 20:32
Acceptance test output:

% make testacc TESTARGS='-run=TestAccAWSSsmParametersByPathDataSource_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSSsmParametersByPathDataSource_ -timeout 180m
=== RUN   TestAccAWSSsmParametersByPathDataSource_basic
=== PAUSE TestAccAWSSsmParametersByPathDataSource_basic
=== CONT  TestAccAWSSsmParametersByPathDataSource_basic
--- PASS: TestAccAWSSsmParametersByPathDataSource_basic (16.99s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	21.585s
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 TESTARGS='-run=TestAccAWSSsmParametersByPathDataSource_'        
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSSsmParametersByPathDataSource_ -timeout 180m
=== RUN   TestAccAWSSsmParametersByPathDataSource_basic
=== PAUSE TestAccAWSSsmParametersByPathDataSource_basic
=== CONT  TestAccAWSSsmParametersByPathDataSource_basic
--- PASS: TestAccAWSSsmParametersByPathDataSource_basic (17.70s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	20.858s
GovCloud
% make testacc TESTARGS='-run=TestAccAWSSsmParametersByPathDataSource_' 
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSSsmParametersByPathDataSource_ -timeout 180m
=== RUN   TestAccAWSSsmParametersByPathDataSource_basic
=== PAUSE TestAccAWSSsmParametersByPathDataSource_basic
=== CONT  TestAccAWSSsmParametersByPathDataSource_basic
--- PASS: TestAccAWSSsmParametersByPathDataSource_basic (20.37s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	25.193s

@ewbankkit
Copy link
Contributor

@katainaka0503 Thanks for the contribution 🎉 👏.

@ewbankkit ewbankkit merged commit 7d5b779 into hashicorp:main Sep 30, 2021
@github-actions github-actions bot added this to the v3.61.0 milestone Sep 30, 2021
@github-actions
Copy link

github-actions bot commented Oct 7, 2021

This functionality has been released in v3.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. Thank you!

@github-actions
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 Jun 17, 2022
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. provider Pertains to the provider itself, rather than any interaction with AWS. service/ssm Issues and PRs that pertain to the ssm service. size/L 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