This template retrieves all configuration profiles for a specified AppConfig application and iterates over them to access individual configuration profile details.

Terraform Template

data "aws_appconfig_configuration_profile" "example" {
  application_id = "aws_appconfig_application.example.id"
  configuration_profile_id = each.value
  for_each = data.aws_appconfig_configuration_profiles.example.configuration_profile_ids
}

data "aws_appconfig_configuration_profiles" "example" {
  application_id = "a1d3rpe"
}