Skip to content

r/rum: Add platform support to aws_rum_app_monitor and new aws_rum_resource_policy resource#48026

Open
gcpuser1 wants to merge 2 commits into
hashicorp:mainfrom
gcpuser1:add-rum-platform-and-resource-policy
Open

r/rum: Add platform support to aws_rum_app_monitor and new aws_rum_resource_policy resource#48026
gcpuser1 wants to merge 2 commits into
hashicorp:mainfrom
gcpuser1:add-rum-platform-and-resource-policy

Conversation

@gcpuser1
Copy link
Copy Markdown

@gcpuser1 gcpuser1 commented May 22, 2026

Rollback Plan

If a change needs to be reverted, we will publish an updated version of the library.

Changes to Security Controls

No changes to security controls.

Description

This pull request introduces the following enhancements to the CloudWatch RUM (Real User Monitoring) service support:

  1. platform argument for aws_rum_app_monitor:

    • Added support for the platform parameter (Web, iOS, or Android), defaulting to Web when not specified.
    • Enforced ForceNew: true as the AWS RUM API's UpdateAppMonitor does not support updating the platform.
    • Added TestAccRUMAppMonitor_Platform acceptance test to cover this field.
    • Updated documentation for aws_rum_app_monitor to detail this parameter.
  2. New aws_rum_resource_policy resource:

    • Implemented CRUD support using the AWS SDK for Go v2 PutResourcePolicy, GetResourcePolicy, and DeleteResourcePolicy APIs.
    • Registered the new resource in the RUM service package.
    • Handled standard errors (ResourceNotFoundException and PolicyNotFoundException) gracefully during Read and Delete operations.
    • Added TestAccRUMResourcePolicy_basic acceptance test.
    • Added resource documentation under website/docs/r/rum_resource_policy.html.markdown.

Relations

Closes #48028

References

Output from Acceptance Testing

Acceptance tests were not executed locally due to the absence of AWS credentials in the environment. However, the package compiled and build/format/imports checks passed:

$ go build ./internal/service/rum
(successful, exit 0)

@gcpuser1 gcpuser1 requested a review from a team as a code owner May 22, 2026 10:59
@dosubot dosubot Bot added enhancement Requests to existing resources that expand the functionality or scope. new-resource Introduces a new resource. labels May 22, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Community Guidelines

This comment is added to every new Pull Request to provide quick reference to how the Terraform AWS Provider is maintained. Please review the information below, and thank you for contributing to the community that keeps the provider thriving! 🚀

Voting for Prioritization

  • Please vote on this Pull Request by adding a 👍 reaction to the original post to help the community and maintainers prioritize it.
  • Please see our prioritization guide for additional information on how the maintainers handle prioritization.
  • Please do not leave +1 or other comments that do not add relevant new information or questions; they generate extra noise for others following the Pull Request and do not help prioritize the request.

Pull Request Authors

  • Review the contribution guide relating to the type of change you are making to ensure all of the necessary steps have been taken.
  • Whether or not the branch has been rebased will not impact prioritization, but doing so is always a welcome surprise.

@github-actions
Copy link
Copy Markdown
Contributor

⚠️ Our automation has detected the following potential issues with your pull request


❌ Changelog Entry Required (Click to expand)

The proposed change requires a changelog entry. Please see the Changelog Process section of the contributing guide for information on the changelog generation process.

Tip: This check is not triggered for draft pull requests, since the pull request number is not known until the pull request is opened and is required to create a changelog entry. Opening a pull request first as a draft, adding the requisite changelog entry file, and then marking the pull request as ready for review will prevent future warnings.

@github-actions github-actions Bot added needs-triage Waiting for first response or review from a maintainer. documentation Introduces or discusses updates to documentation. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. generators Relates to code generators. service/rum Issues and PRs that pertain to the rum service. size/XL Managed by automation to categorize the size of a PR. labels May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Introduces or discusses updates to documentation. enhancement Requests to existing resources that expand the functionality or scope. generators Relates to code generators. needs-triage Waiting for first response or review from a maintainer. new-resource Introduces a new resource. service/rum Issues and PRs that pertain to the rum 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.

resource/aws_rum_app_monitor: Add platform and resource_policy support

1 participant