Created
March 13, 2024 18:39
-
-
Save rssnyder/5421ff1fa14b08c91bf7d5e6fa55071b to your computer and use it in GitHub Desktop.
create a harness aws ccm connector for your master payer with terraform
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
terraform { | |
required_providers { | |
harness = { | |
source = "harness/harness" | |
} | |
} | |
} | |
provider "harness" {} | |
resource "harness_platform_connector_awscc" "master_payer" { | |
identifier = "master_payer" | |
name = "master_payer" | |
account_id = "<master payer account id>" | |
report_name = "<name of CUR>" | |
s3_bucket = "<s3 bucket name in which the CUR data is being delivered>" | |
features_enabled = [ | |
"BILLING", | |
] | |
cross_account_access { | |
role_arn = "<aws iam role arn you created to give harness access to cur data>" | |
external_id = "<external id you used when creating the aws role for harness>" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment