Account | Component Needed | Account Level Access Permissions Required | Usage |
---|---|---|---|
Service Account |
|
| Enables the IAM Service Principle to assume the Roles to read the CUR Report and Resource and Resource metrics from Billing Accounts and Sub Accounts |
Billing Account |
|
| To read CUR Report and Resource and Resource Metrics |
Sub Account (Asset) |
|
| To read Resource and Resource Metrics |
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::<CAM Account ID>:root" }, "Action": "sts:AssumeRole" } ] }
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::<CAM Account ID>:root" }, "Action": "sts:AssumeRole" } ] }
Input | Usage |
---|---|
Billing Account Number | The billing account where the CUR data is generated |
Role Name | The name of the Role that will be created in the Billing Account The role can be defined by Service Account owner i.e CAM_KYNDRYL_ROLE An ARN can formulated as follows: arn:aws:iam:: Billing Account Number :role/ Role Name In an example if the Billing Account Number is 366287565622 The ARN is arn:aws:iam:: 366287565622 /role/CAM_KYNDRYL_ROLE |
Input | Usage |
---|---|
AWS Role | The role to asign the IAM Service Principle in the next step |
Role ARN |
|
{ "ReportName": "KyndrylCAM_CostUsageReport", "TimeUnit": "DAILY", "Format": "textORcsv", "Compression": "GZIP", "AdditionalSchemaElements": [ "RESOURCES". ], "S3Bucket": "my-cur-bucket", "S3Prefix": "cost-usage-reports/", "S3Region": "us-east-1", "ReportVersioning": "OVERWRITE_REPORT" }
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "s3:GetObject", "s3:ListBucket" ], "Resource": [ "arn:aws:s3:::my-cur-bucket", "arn:aws:s3:::my-cur-bucket/*" ] } ] }
Input | Field Usage |
---|---|
Billing Account Number | Account Number field The billing account where the CUR data is generatedhttps://pages.github.kyndryl.net/ModernOps/cam-architecture/OnboardingAccounts/onboarding_template/#billing-account |
S3 Path | Cost and Usage Report Path |
S3 Bucket name | S3 Bucket |
Role ARN | Delegated Access |
IAM Service Principle
| Access Key ID Secret Access Key |