Architecture overview
This section provides a reference implementation architecture diagram for the components deployed with this solution.
Architecture diagram
Deploying this solution with the default parameters builds the following environment in the AWS Cloud.
Workload Discovery on AWS architecture
The high-level process flow for the solution components deployed with the AWS CloudFormation template is as follows:
-
HTTP Strict-Transport-Security (HSTS)
adds security headers to each response from the Amazon CloudFront distribution. -
An Amazon Simple Storage Service
(Amazon S3) bucket hosts the web UI, which is distributed with Amazon CloudFront. Amazon Cognito authenticates user access to the web UI. -
AWS WAF
protects the AppSync API from common exploits and bots that can affect availability, compromise security, or consume excessive resources. -
AWS AppSync
endpoints allow the web UI component to request resource relationship data, query costs, import new AWS Regions, and update preferences. AWS AppSync also allows the discovery component to store persistent data in the solution’s databases. -
AWS AppSync uses JSON Web Tokens
(JWTs) provisioned by Amazon Cognito to authenticate each request. -
The
Settings
AWS Lambdafunction persists imported Regions and other configurations to Amazon DynamoDB . -
The solution deploys AWS Amplify
and an Amazon S3 bucket as the storage management component to store user preferences and saved architecture diagrams. -
The data component uses the
Gremlin Resolver
AWS Lambda function to query and return data from an Amazon Neptunedatabase. -
The data component uses the
Search Resolver
Lambda function to query and persist resource data into an Amazon OpenSearch Servicedomain. -
The
Cost
Lambda function uses Amazon Athenato query AWS Cost and Usage Reports (AWS CUR) to provide estimated cost data to the web UI. -
Amazon Athena runs queries on AWS CUR.
-
AWS CUR delivers the reports to the
CostAndUsageReportBucket
Amazon S3 bucket. -
The
Cost
Lambda function stores the Amazon Athena results in theAthenaResultsBucket
Amazon S3 bucket. -
AWS CodeBuild
builds the discovery component container image in the image deployment component. -
Amazon Elastic Container Registry
(Amazon ECR) contains a Docker image provided by the image deployment component. -
Amazon Elastic Container Service
(Amazon ECS) manages the AWS Fargate task and provides the configuration required to run the task. AWS Fargate runs a container task every 15 minutes to refresh inventory and resource data. -
AWS Config
and AWS SDK calls help the discovery component maintain an inventory of resource data from imported Regions, then store its results in the data component. -
The AWS Fargate task persists the results of the AWS Config and AWS SDK calls into an Amazon Neptune database and an Amazon OpenSearch Service domain with API calls to the AppSync API.