Skip to content

Commit 79a6138

Browse files
committed
Add documentation for Cost feature
1 parent 4d9eb06 commit 79a6138

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

website/docs/r/monitor_cloud_account.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,22 @@ resource "sysdig_monitor_cloud_account" "sample" {
3838
secret_key = "Xxx5XX2xXx/Xxxx+xxXxXXxXxXxxXXxxxXXxXxXx"
3939
access_key_id = "XXXXX33XXXX3XX3XXX7X"
4040
}
41+
42+
// AWS example with role delegation for Cost feature
43+
resource "sysdig_monitor_cloud_account" "assume_role_cloud_account" {
44+
cloud_provider = "AWS"
45+
integration_type = "Cost"
46+
account_id = "123412341234"
47+
role_name = "SysdigTestRole"
48+
config = {
49+
athena_bucket_name = "AthenaBucketNameTest"
50+
athena_database_name = "AthenaDatabaseNameTest"
51+
athena_region = "AthenaRegion"
52+
athena_workgroup = "AthenaWorkgroupName"
53+
athena_table_name = "AthenaTableName"
54+
spot_prices_bucket_name = "SpotPricesBucketName"
55+
}
56+
}
4157
```
4258

4359
## Argument Reference
@@ -49,6 +65,7 @@ resource "sysdig_monitor_cloud_account" "sample" {
4965
* `secret_key` - (Optional) The the secret key for a AWS connection. It must be provided along `access_key_id` when this auth mode is used.
5066
* `access_key_id` - (Optional) The ID for the access key that has the permissions into the Cloud Account. It must be provided along `secret_key` when this auth mode is used.
5167
* `additional_options` - (Optional) The private key generated when creating a new GCP service account key. Must be in JSON format and base64 encoded.
68+
* `config` - (Optional) Configuration parameters for Athena connection into the Sysdig Cloud Account.
5269

5370
## Attributes Reference
5471

0 commit comments

Comments
 (0)