Skip to content

Commit

Permalink
bump to 1.0.0, add example
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Aug 13, 2025
1 parent 95aaff5 commit 79c5233
Show file tree
Hide file tree
Showing 6 changed files with 143 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ logs
common/README.md

OLD/
X
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Versions

* v1.0.0 -- {{ yyyy-mm-dd }}
- 1.0.0 -- 2025-08-13
- initial creation

48 changes: 48 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,54 @@
<!-- BEGIN_TF_DOCS -->
# About aws-app-ditd-darhts-s3-transfer

# Usage

```hcl
module "darhts-s3-transfer" {
source = "git@github.e.it.census.gov:terraform-modules/aws-app-ditd-darhts-s3-transfer.git"
api_client_id = "3M1234.12343x"
api_client_secret = "C1D66"
environment_label = "ite"
secret_name = "/app/ditd-darhts/ite/salesforce-api"
secret_key_name = "ditd-darhts-ite-salesforce-api"
input_resource_label = "ditd-darhts-ite"
output_resource_label = "adsd-dapps-ite"
input_resource_tags = {
finops_project_number = "fs1234567890"
finops_project_name = "adsd_darhts"
}
output_resource_tags = {
finops_project_number = "fs0123456789"
finops_project_name = "adsd_dapps"
}
settings = {
guardduty-move = {}
guardduty-notify = {
environment = "ite"
secret_name = "/app/ditd-darhts/ite/salesforce-api"
auth_url = "https://census-darhts--ite.sandbox.my.salesforce.com/services/oauth2/token"
salesforce_api_version = "64.0"
platform_event_name = "GuardDutyObjectScan__e"
}
s3-tag = {
environment = "ite"
trigger_tags = {
GuardDutyMalwareScanStatus = "NO_THREATS_FOUND"
darhts_certified = "true"
}
}
s3 = {
environment = "ite"
secret_name = "/app/ditd-darhts/ite/salesforce-api"
auth_url = "https://census-darhts--ite.sandbox.my.salesforce.com/services/oauth2/token"
salesforce_api_version = "64.0"
platform_event_name = "DARHTSCleanCreateObjectEvent__e"
}
}
}
```

## Requirements

| Name | Version |
Expand Down
44 changes: 44 additions & 0 deletions examples/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
module "darhts-s3-transfer" {
source = "git@github.e.it.census.gov:terraform-modules/aws-app-ditd-darhts-s3-transfer.git"

api_client_id = "3M1234.12343x"
api_client_secret = "C1D66"
environment_label = "ite"
secret_name = "/app/ditd-darhts/ite/salesforce-api"
secret_key_name = "ditd-darhts-ite-salesforce-api"
input_resource_label = "ditd-darhts-ite"
output_resource_label = "adsd-dapps-ite"
input_resource_tags = {
finops_project_number = "fs1234567890"
finops_project_name = "adsd_darhts"
}
output_resource_tags = {
finops_project_number = "fs0123456789"
finops_project_name = "adsd_dapps"
}
settings = {
guardduty-move = {}
guardduty-notify = {
environment = "ite"
secret_name = "/app/ditd-darhts/ite/salesforce-api"
auth_url = "https://census-darhts--ite.sandbox.my.salesforce.com/services/oauth2/token"
salesforce_api_version = "64.0"
platform_event_name = "GuardDutyObjectScan__e"
}
s3-tag = {
environment = "ite"
trigger_tags = {
GuardDutyMalwareScanStatus = "NO_THREATS_FOUND"
darhts_certified = "true"
}
}
s3 = {
environment = "ite"
secret_name = "/app/ditd-darhts/ite/salesforce-api"
auth_url = "https://census-darhts--ite.sandbox.my.salesforce.com/services/oauth2/token"
salesforce_api_version = "64.0"
platform_event_name = "DARHTSCleanCreateObjectEvent__e"
}
}
}

48 changes: 48 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,53 @@
/*
* # About aws-app-ditd-darhts-s3-transfer
*
* # Usage
*
* ```hcl
* module "darhts-s3-transfer" {
* source = "git@github.e.it.census.gov:terraform-modules/aws-app-ditd-darhts-s3-transfer.git"
*
* api_client_id = "3M1234.12343x"
* api_client_secret = "C1D66"
* environment_label = "ite"
* secret_name = "/app/ditd-darhts/ite/salesforce-api"
* secret_key_name = "ditd-darhts-ite-salesforce-api"
* input_resource_label = "ditd-darhts-ite"
* output_resource_label = "adsd-dapps-ite"
* input_resource_tags = {
* finops_project_number = "fs1234567890"
* finops_project_name = "adsd_darhts"
* }
* output_resource_tags = {
* finops_project_number = "fs0123456789"
* finops_project_name = "adsd_dapps"
* }
* settings = {
* guardduty-move = {}
* guardduty-notify = {
* environment = "ite"
* secret_name = "/app/ditd-darhts/ite/salesforce-api"
* auth_url = "https://census-darhts--ite.sandbox.my.salesforce.com/services/oauth2/token"
* salesforce_api_version = "64.0"
* platform_event_name = "GuardDutyObjectScan__e"
* }
* s3-tag = {
* environment = "ite"
* trigger_tags = {
* GuardDutyMalwareScanStatus = "NO_THREATS_FOUND"
* darhts_certified = "true"
* }
* }
* s3 = {
* environment = "ite"
* secret_name = "/app/ditd-darhts/ite/salesforce-api"
* auth_url = "https://census-darhts--ite.sandbox.my.salesforce.com/services/oauth2/token"
* salesforce_api_version = "64.0"
* platform_event_name = "DARHTSCleanCreateObjectEvent__e"
* }
* }
* }
* ```
*/

locals {
Expand All @@ -16,3 +63,4 @@ locals {
"boc:tf_module_name" = local._module_name
}
}

2 changes: 1 addition & 1 deletion version.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
locals {
_module_name = "aws-app-ditd-darhts-s3-transfer"
_module_version = "0.9.12"
_module_version = "1.0.0"
}

0 comments on commit 79c5233

Please sign in to comment.