Skip to content

Commit

Permalink
Rename AWS_DEFAULT_REGION
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexRuiz7 committed Apr 22, 2024
1 parent b66ada1 commit a3c3cce
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ output {
id => "output.s3"
access_key_id => "${AWS_ACCESS_KEY_ID}"
secret_access_key => "${AWS_SECRET_ACCESS_KEY}"
region => "${AWS_DEFAULT_REGION}"
region => "${AWS_REGION}"
endpoint => "${AWS_ENDPOINT}"
bucket => "${AUX_BUCKET}"
codec => "json_lines"
Expand Down
6 changes: 3 additions & 3 deletions integrations/amazon-security-lake/src/lambda_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
service_name='s3',
aws_access_key_id=os.environ.get('AWS_ACCESS_KEY_ID'),
aws_secret_access_key=os.environ.get('AWS_SECRET_ACCESS_KEY'),
region_name=os.environ.get('AWS_DEFAULT_REGION'),
region_name=os.environ.get('AWS_REGION'),
endpoint_url=os.environ.get('AWS_ENDPOINT'),
)
else:
Expand Down Expand Up @@ -124,7 +124,7 @@ def lambda_handler(event, context):

# Define required environment variables
required_variables = ['AWS_BUCKET',
'SOURCE_LOCATION', 'ACCOUNT_ID', 'AWS_DEFAULT_REGION']
'SOURCE_LOCATION', 'ACCOUNT_ID', 'AWS_REGION']

# Check if all required environment variables are set
if not check_environment_variables(required_variables):
Expand All @@ -134,7 +134,7 @@ def lambda_handler(event, context):
dst_bucket = os.environ['AWS_BUCKET']
src_location = os.environ['SOURCE_LOCATION']
account_id = os.environ['ACCOUNT_ID']
region = os.environ['AWS_DEFAULT_REGION']
region = os.environ['AWS_REGION']

# Extract bucket and key from S3 event
src_bucket = event['Records'][0]['s3']['bucket']['name']
Expand Down
6 changes: 3 additions & 3 deletions integrations/docker/amazon-security-lake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ services:
LOG_LEVEL: trace
LOGSTASH_KEYSTORE_PASS: "SecretPassword"
MONITORING_ENABLED: false
AWS_ACCESS_KEY_ID: "AKIAIOSFODNN7EXAMPLE"
AWS_ACCESS_KEY_ID: "AKIAYIPNU4FPODY4DHNS"
AWS_SECRET_ACCESS_KEY: "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
AWS_DEFAULT_REGION: "us-east-1"
AWS_REGION: "us-east-1"
AUX_BUCKET: "wazuh-indexer-aux-bucket"
AWS_BUCKET: "wazuh-indexer-amazon-security-lake-bucket"
AWS_ENDPOINT: "http://s3.ninja:9000"
Expand Down Expand Up @@ -117,7 +117,7 @@ services:
environment:
AWS_ACCESS_KEY_ID: "AKIAIOSFODNN7EXAMPLE"
AWS_SECRET_ACCESS_KEY: "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
AWS_DEFAULT_REGION: "us-east-1"
AWS_REGION: "us-east-1"
AWS_BUCKET: "wazuh-indexer-amazon-security-lake-bucket"
AWS_ENDPOINT: "http://s3.ninja:9000"
SOURCE_LOCATION: "wazuh"
Expand Down

0 comments on commit a3c3cce

Please sign in to comment.