Creates an AppConfig environment and an AppConfig application with monitoring through CloudWatch.

Terraform Template

resource "aws_appconfig_application" "example" {
  description = "Example AppConfig Application"
  name = "example-application-tf"

  tags = {
    Type = "AppConfig Application"
  }
}

resource "aws_appconfig_environment" "example" {
  application_id = aws_appconfig_application.example.id
  description = "Example AppConfig Environment"

  monitor {
    alarm_arn = "aws_cloudwatch_metric_alarm.example.arn"
    alarm_role_arn = "aws_iam_role.example.arn"
  }
  name = "example-environment-tf"

  tags = {
    Type = "AppConfig Environment"
  }
}