Terraform resource for managing an AWS CodeGuru Profiler Profiling Group.
resource "aws_codeguruprofiler_profiling_group" "example" {
name = "example"
compute_platform = "Default"
agent_orchestration_config {
profiling_enabled = true
}
}
The following arguments are required:
agent_orchestration_config
- (Required) Specifies whether profiling is enabled or disabled for the created profiling. See Agent Orchestration Config for more details.name
- (Required) Name of the profiling group.The following arguments are optional:
compute_platform
- (Optional) Compute platform of the profiling group.tags
- (Optional) A map of tags assigned to the WorkSpaces Connection Alias. If configured with a provider default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.This resource exports the following attributes in addition to the arguments above:
arn
- ARN of the profiling group.id
- Name of the profiling group.tags_all
- A map of tags assigned to the resource, including those inherited from the provider default_tags
configuration block.profiling_enabled
- (Required) Boolean that specifies whether the profiling agent collects profiling data orIn Terraform v1.5.0 and later, use an import
block to import CodeGuru Profiler Profiling Group using the id
. For example:
import {
to = aws_codeguruprofiler_profiling_group.example
id = "profiling_group-name-12345678"
}
Using terraform import
, import CodeGuru Profiler Profiling Group using the id
. For example:
% terraform import aws_codeguruprofiler_profiling_group.example profiling_group-name-12345678