logo
Menu
Effortlessly Create myApplications Dashboards with Terraform Automation!

Effortlessly Create myApplications Dashboards with Terraform Automation!

An Easier way to create a holistic view of your AWS resources in the console using terraform

Published Dec 9, 2023
In a world where a lot of resources might be created in a single AWS account, It’s essential to have a clear way of accessing all of the critical information of the resources related to that application resources.
With the new release of myApplications in AWS now, this task is getting easier, streamlining the process of creating and maintaining comprehensive monitoring dashboards and enhancing operational efficiency.
So, what is my application? It is a feature within the AWS Management Console designed to streamline the management and monitoring of applications hosted on AWS. It’s an extension of Console Home that provides a comprehensive view of your applications, allowing you to monitor their cost, health, security posture, and performance easily.
You can read this blog post to learn more about the service, but that still requires manually creating the application in the console or through an API and then adding resources.

Imagine This can be automated with a couple of lines!!

Currently, Terraform doesn’t support (yet) the creation of the application resource; I just opened an issue related to this resource and starting to implement it. So, what would this be like after this feature is added to Terraform?
For each application, you will need to create the following resource.
1
2
3
resource "aws_servicecatalog_application" "demo_application" {
name = "DemoApplication"
}
Now, after the resource has already been created, all you have to do is use the tag value provided by the previous resource and tag all resources with it. If you are already using `default_tags` or shared tags across your resources for a single application like this
1
2
3
4
5
locals {
common_tags = {
"Repository" = "test/application"
"Terraform" = "true"
}
Your new tags would be like this.
1
2
3
4
5
6
locals {
common_tags = {
"Repository" = "test/application"
"Terraform" = "true"
"awsApplication" = aws_servicecatalog_application.demo_application.applicationTag
}
By adopting this approach, you streamline the process, setting up your resources just once to ensure they all appear in a unified dashboard. This simplification enhances manageability and oversight. If you find this integration with the Terraform provider valuable, consider supporting its addition by upvoting the relevant issue.

Comments