> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/application-security/terraform-workflows/manage-resources/manage-compliance-assessment-profiles.md).

# Manage compliance assessment profiles

Automate recurring compliance audits for your IaC repositories and CI/CD assets by managing Compliance Assessment Profiles through Terraform. As new Asset Groups are provisioned, Terraform automatically schedules audits and configures report distribution.

{% hint style="info" %}

### Note

For a complete list of supported IaC and CI/CD compliance standards, as well as rule mapping logic and available scan types, refer to [Compliance for Cortex Cloud Application Security](/application-security/application-security-posture-management-aspm/compliance-for-cortex-cloud-application-security.md).
{% endhint %}

### Prerequisite

You must have an existing Asset Group ID (representing your IaC repos or CI/CD pipelines) and the ID of the Compliance Standard you wish to assess against.

### Configuration

Use the `cortexcloud_compliance_assessment_profile` resource to define the target standard, the assets to scan, and the automated reporting schedule using standard Cron syntax.

```terraform
 # Compliance assessment profile for IaC
resource "cortexcloud_compliance_assessment_profile" "monthly_iac_compliance" {
  name             = "Monthly IaC Compliance Check"
  standard_id      = cortexcloud_compliance_standard.custom_framework.id
  asset_group_id   = 1
  description      = "Monthly compliance assessment for IaC repositories"
  report_type      = "PDF"
  report_targets   = ["security@example.com"]
  report_frequency = "0 12 1 * *" # First day of month at 12:00
}
```

For compliance schema details, refer to [Compliance assessment profile schema](https://registry.terraform.io/providers/PaloAltoNetworks/cortexcloud/latest/docs/resources/compliance_assessment_profile).

For more information on Compliance, refer to [Compliance for Cortex Cloud Application Security](/application-security/application-security-posture-management-aspm/compliance-for-cortex-cloud-application-security.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://cortex-docs.paloaltonetworks.com/application-security/terraform-workflows/manage-resources/manage-compliance-assessment-profiles.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
