Skip to content

Instantly share code, notes, and snippets.

@rssnyder
Created March 13, 2024 18:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rssnyder/5421ff1fa14b08c91bf7d5e6fa55071b to your computer and use it in GitHub Desktop.
Save rssnyder/5421ff1fa14b08c91bf7d5e6fa55071b to your computer and use it in GitHub Desktop.
create a harness aws ccm connector for your master payer with terraform
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