{"id":21957064,"url":"https://github.com/trussworks/terraform-aws-trusted-advisor-refresh","last_synced_at":"2025-04-23T15:49:09.619Z","repository":{"id":35380567,"uuid":"217412382","full_name":"trussworks/terraform-aws-trusted-advisor-refresh","owner":"trussworks","description":"Trusted Advisor Refresh","archived":false,"fork":false,"pushed_at":"2023-06-08T20:50:09.000Z","size":33,"stargazers_count":5,"open_issues_count":0,"forks_count":6,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-03-30T01:11:18.807Z","etag":null,"topics":["aws","aws-trusted-advisor","terraform","terraform-modules"],"latest_commit_sha":null,"homepage":"https://registry.terraform.io/modules/trussworks/trusted-advisor-refresh","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trussworks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-24T23:26:48.000Z","updated_at":"2022-08-02T06:06:37.000Z","dependencies_parsed_at":"2024-11-29T08:49:21.981Z","dependency_job_id":"28277b5c-c251-48bd-8ea3-204f17dbdc92","html_url":"https://github.com/trussworks/terraform-aws-trusted-advisor-refresh","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trussworks%2Fterraform-aws-trusted-advisor-refresh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trussworks%2Fterraform-aws-trusted-advisor-refresh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trussworks%2Fterraform-aws-trusted-advisor-refresh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trussworks%2Fterraform-aws-trusted-advisor-refresh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trussworks","download_url":"https://codeload.github.com/trussworks/terraform-aws-trusted-advisor-refresh/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250465156,"owners_count":21435148,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","aws-trusted-advisor","terraform","terraform-modules"],"created_at":"2024-11-29T08:49:15.031Z","updated_at":"2025-04-23T15:49:09.595Z","avatar_url":"https://github.com/trussworks.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"Creates an AWS Lambda function to update Trusted Advisor\non a scheduled interval using [truss-aws-tools](https://github.com/trussworks/truss-aws-tools).\n\nCreates the following resources:\n\n* IAM role for Lambda function to access Trusted Advisor.\n* CloudWatch Event to trigger function on a schedule.\n* AWS Lambda function to actually call Trusted Advisor APIs.\n\n## Usage\n\n```hcl\nmodule \"trusted-advisor-refresh\" {\n  source  = \"trussworks/trusted-advisor-refresh/aws\"\n  version = \"1.0.0\"\n\n  environment       = \"prod\"\n  interval_minutes  = \"5\"\n  s3_bucket         = \"lambda-builds-us-east-1\"\n  version_to_deploy = \"1.0\"\n}\n```\n\n\u003c!-- BEGIN_TF_DOCS --\u003e\n## Requirements\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"requirement_terraform\"\u003e\u003c/a\u003e [terraform](#requirement\\_terraform) | \u003e= 1.0 |\n| \u003ca name=\"requirement_aws\"\u003e\u003c/a\u003e [aws](#requirement\\_aws) | \u003e= 3.0 |\n\n## Providers\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"provider_aws\"\u003e\u003c/a\u003e [aws](#provider\\_aws) | \u003e= 3.0 |\n\n## Modules\n\nNo modules.\n\n## Resources\n\n| Name | Type |\n|------|------|\n| [aws_cloudwatch_event_rule.main](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_event_rule) | resource |\n| [aws_cloudwatch_event_target.main](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_event_target) | resource |\n| [aws_cloudwatch_log_group.main](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_log_group) | resource |\n| [aws_iam_role.main](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role) | resource |\n| [aws_iam_role_policy.main](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy) | resource |\n| [aws_lambda_function.main](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lambda_function) | resource |\n| [aws_lambda_permission.main](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lambda_permission) | resource |\n| [aws_caller_identity.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity) | data source |\n| [aws_iam_policy_document.assume_role](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |\n| [aws_iam_policy_document.main](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |\n| [aws_partition.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/partition) | data source |\n| [aws_region.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/region) | data source |\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| \u003ca name=\"input_cloudwatch_encryption_key_arn\"\u003e\u003c/a\u003e [cloudwatch\\_encryption\\_key\\_arn](#input\\_cloudwatch\\_encryption\\_key\\_arn) | The arn of the encryption key to be used for the cloudwatch logs | `string` | `\"\"` | no |\n| \u003ca name=\"input_cloudwatch_logs_retention_days\"\u003e\u003c/a\u003e [cloudwatch\\_logs\\_retention\\_days](#input\\_cloudwatch\\_logs\\_retention\\_days) | Number of days to keep logs in AWS CloudWatch. | `string` | `90` | no |\n| \u003ca name=\"input_environment\"\u003e\u003c/a\u003e [environment](#input\\_environment) | Environment tag, e.g prod. | `any` | n/a | yes |\n| \u003ca name=\"input_interval_minutes\"\u003e\u003c/a\u003e [interval\\_minutes](#input\\_interval\\_minutes) | How often to update Trusted Advisor. | `string` | `60` | no |\n| \u003ca name=\"input_s3_bucket\"\u003e\u003c/a\u003e [s3\\_bucket](#input\\_s3\\_bucket) | The name of the S3 bucket used to store the Lambda builds. | `string` | n/a | yes |\n| \u003ca name=\"input_version_to_deploy\"\u003e\u003c/a\u003e [version\\_to\\_deploy](#input\\_version\\_to\\_deploy) | The version the Lambda function to deploy. | `string` | n/a | yes |\n\n## Outputs\n\nNo outputs.\n\u003c!-- END_TF_DOCS --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrussworks%2Fterraform-aws-trusted-advisor-refresh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrussworks%2Fterraform-aws-trusted-advisor-refresh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrussworks%2Fterraform-aws-trusted-advisor-refresh/lists"}