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

remove :* suffix on cloudwatchlog group datasource #22043

Conversation

maquessime
Copy link
Contributor

@maquessime maquessime commented Dec 3, 2021

Closes #15073.

To match what we have on the resource create/read in

d.Set("arn", TrimLogGroupARNWildcardSuffix(aws.StringValue(lg.Arn)))

Potential breaking change since we don't know what string manipulation clients do on their end :/

I'll add acctest output and changelog if that makes since to merge this PR.

Potential refactor : reuse what we do after

lg, err := LookupGroup(conn, d.Id())
in https://github.com/hashicorp/terraform-provider-aws/blame/187f1659a4fef11ac314567273b5470afe6b662f/internal/service/cloudwatchlogs/group_data_source.go#L46 - out of scope of this PR however.

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

@github-actions github-actions bot added needs-triage Waiting for first response or review from a maintainer. service/cloudwatchlogs size/XS Managed by automation to categorize the size of a PR. labels Dec 3, 2021
@ewbankkit ewbankkit added the breaking-change Introduces a breaking change in current functionality; usually deferred to the next major release. label Dec 3, 2021
@ewbankkit ewbankkit added this to the v4.0.0 milestone Dec 3, 2021
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Welcome @maquessime 👋

It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTING guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.

Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.

Thanks again, and welcome to the community! 😃

@anGie44 anGie44 self-assigned this Jan 26, 2022
@anGie44 anGie44 changed the base branch from main to release/4.x January 26, 2022 18:08
@anGie44 anGie44 removed the needs-triage Waiting for first response or review from a maintainer. label Jan 26, 2022
@anGie44
Copy link
Contributor

anGie44 commented Jan 26, 2022

Hi @maquessime , thank you for this PR! I'll be reviewing and updating this PR if needed to get it into our major release, though the code change itself LGTM 👍

@github-actions github-actions bot added tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. size/S 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 Jan 26, 2022
@anGie44 anGie44 marked this pull request as ready for review January 26, 2022 21:18
@anGie44 anGie44 force-pushed the b-remove-two-dot-star-cloudwatch-log-group-data branch from f11a25b to b52b7b5 Compare January 26, 2022 21:24
@anGie44 anGie44 force-pushed the b-remove-two-dot-star-cloudwatch-log-group-data branch from b52b7b5 to ace9bb1 Compare January 26, 2022 21:28
Copy link
Contributor

@anGie44 anGie44 left a comment

Choose a reason for hiding this comment

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

Thanks again @maquessime 🚀 !

Output of acceptance tests:

--- FAIL: TestAccCloudWatchLogsGroup_tagging (92.14s) -- related to empty tags issue https://github.com/hashicorp/terraform-provider-aws/issues/20371 
--- PASS: TestAccCloudWatchLogsGroupDataSource_basic (56.88s)
--- PASS: TestAccCloudWatchLogsGroupDataSource_kms (60.96s)
--- PASS: TestAccCloudWatchLogsGroupDataSource_retention (57.11s)
--- PASS: TestAccCloudWatchLogsGroupDataSource_tags (56.44s)
--- PASS: TestAccCloudWatchLogsGroup_NamePrefix_retention (75.10s)
--- PASS: TestAccCloudWatchLogsGroup_basic (63.20s)
--- PASS: TestAccCloudWatchLogsGroup_disappears (52.01s)
--- PASS: TestAccCloudWatchLogsGroup_generatedName (62.76s)
--- PASS: TestAccCloudWatchLogsGroup_kmsKey (80.69s)
--- PASS: TestAccCloudWatchLogsGroup_multiple (61.82s)
--- PASS: TestAccCloudWatchLogsGroup_namePrefix (62.97s)
--- PASS: TestAccCloudWatchLogsGroup_retentionPolicy (76.66s)
--- PASS: TestAccCloudWatchLogsGroupsDataSource_basic (55.66s)

@anGie44 anGie44 merged commit bbfa631 into hashicorp:release/4.x Jan 26, 2022
anGie44 added a commit that referenced this pull request Jan 28, 2022
anGie44 added a commit that referenced this pull request Jan 28, 2022
@maquessime
Copy link
Contributor Author

cool thanks @anGie44

anGie44 added a commit that referenced this pull request Jan 31, 2022
anGie44 added a commit that referenced this pull request Feb 2, 2022
* version 4 upgrade guide WIP

* Remove `aws_vpn_connection` sections.

The implementation does not set `Default` values on attributes and is backwards compatible.

* add instructions for breaking change introduced in #19198

* add instructions for breaking change introduced in #22043

* add instructions for breaking change introduced in #21771

* add instructions for breaking change introduced in #22253

Co-authored-by: Kit Ewbank <[email protected]>
@github-actions
Copy link

This functionality has been released in v4.0.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 May 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
breaking-change Introduces a breaking change in current functionality; usually deferred to the next major release. size/S 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.

VPC flow log churn using Terraform 0.13
3 participants