Skip to content

Add Resource Manager stack resource support - #2537

Open
yashodhanf wants to merge 2 commits into
oracle:masterfrom
yashodhanf:yfadnavi-resourcemanager-stack-resource
Open

Add Resource Manager stack resource support#2537
yashodhanf wants to merge 2 commits into
oracle:masterfrom
yashodhanf:yfadnavi-resourcemanager-stack-resource

Conversation

@yashodhanf

Copy link
Copy Markdown

Summary

This PR adds support for managing OCI Resource Manager stacks as a Terraform resource.

Included in this change:

  • adds oci_resourcemanager_stack resource support
  • preserves ZIP-uploaded Terraform config during read/refresh by calling GetStackTfConfig
  • aligns the singular stack data source so ZIP-backed config remains usable there as well
  • adds docs and an example for the new resource
  • adds acceptance coverage for CRUD and incremental updates
  • fixes duplicate database DB system sweeper registration that was blocking the integration test package

Current scope is intentionally limited to ZIP-uploaded stack config.

Validation

Executed successfully:

  • go test ./internal/service/resourcemanager/...
  • TF_ACC=1 go test ./internal/integrationtest -run TestResourcemanagerStackResource_crud -count=1 -v
  • TF_ACC=1 go test ./internal/integrationtest -run TestResourcemanagerStackResource_basic -count=1 -v
  • TF_ACC=1 go test ./internal/integrationtest -run TestResourcemanagerStackResource_incrementalUpdates -count=1 -v

Acceptance tests were run with Phoenix profile / security token auth.

Notes

  • resource refresh/import reconstructs ZIP config using GetStackTfConfig
  • incremental update coverage verifies tag-only, variable-only, and config ZIP-only updates without recreation
  • docs and example were added for the new resource workflow

Signed-off-by: Yashodhan Fadnavis <yashodhan.fadnavis@oracle.com>
Signed-off-by: Yashodhan Fadnavis <yashodhan.fadnavis@oracle.com>
@oracle-contributor-agreement

Copy link
Copy Markdown

Thank you for your pull request and welcome to our community! To contribute, please sign the Oracle Contributor Agreement (OCA).
The following contributors of this PR have not signed the OCA:

  • PR author: yashodhanf

To sign the OCA, please create an Oracle account and sign the OCA in Oracle's Contributor Agreement Application.

When signing the OCA, please provide your GitHub username. After signing the OCA and getting an OCA approval from Oracle, this PR will be automatically updated.

If you are an Oracle employee, please make sure that you are a member of the main Oracle GitHub organization, and your membership in this organization is public.

@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Required At least one contributor does not have an approved Oracle Contributor Agreement. label Apr 9, 2026
@tf-oci-pub tf-oci-pub added the Pending Test Pending Test label for PRs label Apr 9, 2026
@tf-oci-pub

Copy link
Copy Markdown
Member

Thank you for your valuable contribution. We greatly appreciate your efforts in submitting this pull request. However, I regret to inform you that we are unable to merge it directly on GitHub at this time.

Our internal policy requires that all pull requests undergo thorough local testing and review before they can be merged into the main codebase. This process ensures the quality and stability of Terraform-Provider-OCI.

We understand that this may cause some inconvenience, but please rest assured that your contribution is highly valued. Our team will carefully review and test your changes locally to ensure they meet our standards.

We appreciate your understanding and patience in this matter. If you have any questions or need further assistance, please don't hesitate to reach out. Thank you once again for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Required At least one contributor does not have an approved Oracle Contributor Agreement. Pending Test Pending Test label for PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants