Skip to content

Commit

Permalink
Update examples for the shipper lambda (#151)
Browse files Browse the repository at this point in the history
* Update examples for the shipper lambda and update the  minimum terraform required version for the module

* remove test file
  • Loading branch information
guyrenny authored Mar 20, 2024
1 parent a383231 commit 448fe6d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
29 changes: 15 additions & 14 deletions examples/coralogix-aws-shipper/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ To run this example you need to save this code in Terraform file, and change the
```bash
provider "aws" {}

module "coralogix-shipper-s3"
{
module "coralogix-shipper-s3" {
source = "coralogix/aws/coralogix//modules/coralogix-aws-shipper"

coralogix_region = "EU1"
Expand All @@ -21,13 +20,14 @@ module "coralogix-shipper-s3"
application_name = "s3"
subsystem_name = "logs"
s3_bucket_name = "test-bucket-name"
s3_key_prefix = "files/example"
s3_key_suffix = ".txt"
}
```

### Use the cloudtrail-sns integration
```bash
module "coralogix-shipper-cloudtrail"
{
module "coralogix-shipper-cloudtrail" {
source = "coralogix/aws/coralogix//modules/coralogix-aws-shipper"

coralogix_region = "EU1"
Expand All @@ -43,8 +43,7 @@ module "coralogix-shipper-cloudtrail"
### Use the S3Csv integration
#### In this example we show how to use the S3Csv option, we also use an option that allows us to not save the api_key as text in the lambda but direct it to the secret that continues the secret.
```bash
module "coralogix-shipper-S3Csv"
{
module "coralogix-shipper-S3Csv" {
source = "coralogix/aws/coralogix//modules/coralogix-aws-shipper"

coralogix_region = "EU1"
Expand All @@ -71,8 +70,7 @@ module "coralogix-shipper-S3Csv"
#### the value of the subsystem will be "Subsystem name"

```bash
module "coralogix-shipper-sns"
{
module "coralogix-shipper-sns" {
source = "coralogix/aws/coralogix//modules/coralogix-aws-shipper"

coralogix_region = "EU1"
Expand All @@ -88,8 +86,7 @@ module "coralogix-shipper-sns"
### Use the cloudtrail integration with the dynamic subsystem name
#### When you set the subsystem to $.eventSource then the value of subsystem will be the name of your Trail.
```bash
module "coralogix-shipper-cloudtrail"
{
module "coralogix-shipper-cloudtrail" {
source = "coralogix/aws/coralogix//modules/coralogix-aws-shipper"

coralogix_region = "EU1"
Expand All @@ -104,8 +101,7 @@ module "coralogix-shipper-cloudtrail"
### Use the cloudwatch integration with a private link
#### For more information about how to use private link click [here](https://coralogix.com/docs/coralogix-amazon-web-services-aws-privatelink-endpoints/)
```bash
module "coralogix-shipper-cloudwatch"
{
module "coralogix-shipper-cloudwatch" {
source = "coralogix/aws/coralogix//modules/coralogix-aws-shipper"

coralogix_region = "EU1"
Expand All @@ -121,8 +117,7 @@ module "coralogix-shipper-cloudwatch"

### Use the multiple s3 integrations at once using the integration_info variable
```bash
module "coralogix-shipper-multiple-s3-integrations"
{
module "coralogix-shipper-multiple-s3-integrations" {
source = "coralogix/aws/coralogix//modules/coralogix-aws-shipper"

coralogix_region = "EU1"
Expand All @@ -139,6 +134,12 @@ module "coralogix-shipper-multiple-s3-integrations"
application_name = "VpcFlow_application"
subsystem_name = "logs_from_vpcflow"
}
"S3_integration" = {
integration_type = "S3"
application_name = "s3_application"
subsystem_name = "s3_vpcflow"
s3_key_prefix = "s3_prefix"
}
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion modules/coralogix-aws-shipper/versions.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
terraform {
required_version = ">= 0.13.1"
required_version = ">= 1.3.0"

required_providers {
aws = {
Expand Down
2 changes: 2 additions & 0 deletions modules/provisioning/s3-archive/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,5 @@ resource "aws_s3_bucket_server_side_encryption_configuration" "metrics_encryptio
bucket_key_enabled = true
}
}


0 comments on commit 448fe6d

Please sign in to comment.