Skip to content

Conversation

glennsarti-hashi
Copy link

@glennsarti-hashi glennsarti-hashi commented Jul 14, 2025

Description

This commit adds the new tfe_organization_audit_configuration data source which
gives infomration about auditing. Note that this resource requires HCP Terraform,
the audit_logging entitlement and be an owner of the specified organization.

Testing plan

Handled by unit tests.

Can be manually tested:

  • Create an organization with an appropriate billing plan (which enables audit logging)
  • Create an Organization token or something with owner rights.
  • Output the tfe_organization_audit_configuration values as per the documentation

External links

Include any links here that might be helpful for people reviewing your PR. If there are none, feel free to delete this section.

Output from acceptance tests

Please run applicable acceptance tests locally and include the output here. See testing.md to learn how to run acceptance tests.

If you are an external contributor, your contribution(s) will first be reviewed before running them against the project's CI pipeline.

=== RUN   TestAccTFEOrganizationAuditConfigurationDataSource_basic
...
--- PASS: TestAccTFEOrganizationAuditConfigurationDataSource_basic (5.30s)
=== RUN   TestAccTFEOrganizationAuditConfigurationDataSource_disallowed
--- PASS: TestAccTFEOrganizationAuditConfigurationDataSource_disallowed (2.97s)
PASS
ok  	github.com/hashicorp/terraform-provider-tfe/internal/provider	8.735s
?   	github.com/hashicorp/terraform-provider-tfe/internal/provider/helpers	[no test files]
?   	github.com/hashicorp/terraform-provider-tfe/internal/provider/planmodifiers	[no test files]
?   	github.com/hashicorp/terraform-provider-tfe/internal/provider/validators	[no test files]
...

Rollback Plan

Not applicable

Changes to Security Controls

Not applicable

@glennsarti-hashi glennsarti-hashi self-assigned this Jul 14, 2025
@glennsarti-hashi glennsarti-hashi changed the title {Work in progress} Add audit configuration data source {Work in progress} Add Org. Audit Configuration data source Jul 30, 2025
This commit adds the new tfe_organization_audit_configuration data source which
gives infomration about auditing. Note that this resource requires HCP Terraform,
the audit_logging entitlement and be an owner of the specified organization.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant