Skip to content

Commit cabc055

Browse files
committed
Removed duplicated directory
1 parent 8c50707 commit cabc055

File tree

23 files changed

+46
-835
lines changed

23 files changed

+46
-835
lines changed

data-collection/deploy/terraform/README.md

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,20 @@ This module deploys the necessary IAM roles to each linked account for monitorin
2424

2525
- Creates standardized IAM roles across member accounts
2626
- Configures granular permissions for various data collection features
27-
- Supports multiple optional monitoring components:
28-
- Trusted Advisor
29-
- Support Cases
30-
- AWS Budgets
31-
- Inventory Collection
32-
- ECS Chargeback
33-
- RDS Utilization
34-
- Transit Gateway
35-
- Service Quotas
36-
3727

3828
### 3. Data Collection Module
3929

4030
This module orchestrates the data collection process and deploys CloudFormation template for data collection as a wrapper
4131

32+
## Version Locking
33+
34+
For production deployments, you should lock module versions to a release tag to better control when and what updates are made.
35+
Use "*tag_version*" variable to select a release tag.
36+
```bash
37+
tag_version = "3.6.2"
38+
```
39+
40+
For a complete list of release tags, visit [https://github.com/awslabs/cid-data-collection-framework/tags]https://github.com/awslabs/cid-data-collection-framework/tags.
4241

4342
## Deployment Process
4443

@@ -102,4 +101,14 @@ Common issues and solutions:
102101
3. **Data Collection Failures**
103102
- Verify S3 bucket permissions
104103
- Check CloudWatch Logs for execution errors
105-
- Ensure correct role ARNs are being used
104+
- Ensure correct role ARNs are being used
105+
106+
## Contributing
107+
108+
Contributions to improve the solution are welcome! Please:
109+
110+
1. Fork the repository
111+
2. Create a feature branch
112+
3. Submit a pull request with detailed description of changes
113+
4. Ensure all existing tests pass
114+
5. Add new tests as needed

data-collection/deploy/terraform/data-collection/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ data "aws_caller_identity" "current" {}
33
data "aws_partition" "current" {}
44

55
locals {
6-
template_url = "https://aws-managed-cost-intelligence-dashboards-${data.aws_region.current.name}.s3.amazonaws.com/cfn/data-collection/deploy-data-collection.yaml"
6+
template_url = "https://aws-managed-cost-intelligence-dashboards-${data.aws_region.current.name}.s3.amazonaws.com/cfn/${var.tag_version}/data-collection/deploy-data-collection.yaml"
77
}
88

99
resource "aws_cloudformation_stack" "data_collection" {

data-collection/deploy/terraform/data-collection/terraform.tfvars

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Default values for variables
22
resource_prefix = "CID-DC-"
3+
tag_version = "3.6.2"
34

45
destination_bucket = "cid-data-"
56
management_account_id = "987654321987" # Required: Add your management account IDs as a comma separated list

data-collection/deploy/terraform/data-collection/variables.tf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,3 +174,14 @@ variable "tags" {
174174
type = map(string)
175175
default = {}
176176
}
177+
178+
variable "tag_version" {
179+
description = "GitHub tag version using for the deployment (e.g. 4.0.7)"
180+
type = string
181+
default = ""
182+
}
183+
184+
validation {
185+
condition = var.tag_version == "" || can(regex("^\\d+\\.\\d+\\.\\d+$", var.tag_version))
186+
error_message = "The tag_version must be in the format X.Y.Z where X, Y, and Z are digits (e.g., 4.0.7)"
187+
}

data-collection/deploy/terraform/management-accounts/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ data "aws_region" "current" {}
22
data "aws_partition" "current" {}
33

44
locals {
5-
template_url = "https://aws-managed-cost-intelligence-dashboards-${data.aws_region.current.name}.s3.amazonaws.com/cfn/data-collection/deploy-in-management-account.yaml"
5+
template_url = "https://aws-managed-cost-intelligence-dashboards-${data.aws_region.current.name}.s3.amazonaws.com/cfn/${var.tag_version}/data-collection/deploy-in-management-account.yaml"
66
}
77

88
# Management account IAM role deployment

data-collection/deploy/terraform/management-accounts/terraform.tfvars

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
resource_prefix = "CID-DC-"
22
management_account_role = "Lambda-Assume-Role-Management-Account"
33
data_collection_account_id = "123456789123"
4+
tag_version = "3.6.2"
45

56
# Module flags
67
backup_module = "yes"

data-collection/deploy/terraform/management-accounts/variables.tf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,14 @@ variable "service_quotas_module" {
6262
type = string
6363
default = "no"
6464
}
65+
66+
variable "tag_version" {
67+
description = "GitHub tag version using for the deployment (e.g. 4.0.7)"
68+
type = string
69+
default = ""
70+
}
71+
72+
validation {
73+
condition = var.tag_version == "" || can(regex("^\\d+\\.\\d+\\.\\d+$", var.tag_version))
74+
error_message = "The tag_version must be in the format X.Y.Z where X, Y, and Z are digits (e.g., 4.0.7)"
75+
}

terraform/README.md

Lines changed: 0 additions & 114 deletions
This file was deleted.

terraform/data-collection/main.tf

Lines changed: 0 additions & 50 deletions
This file was deleted.

terraform/data-collection/outputs.tf

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)