Skip to content

Commit

Permalink
deployed telemetry zip to multiple regions
Browse files Browse the repository at this point in the history
  • Loading branch information
himsharma01 committed Jun 27, 2024
1 parent a7b8b80 commit 162d32b
Showing 1 changed file with 51 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,55 @@ Mappings:
InventorySourceCategory: "aws/observability/inventory"
XraySourceCategory: "aws/observability/xray"
ELBLogsSourceCategory: "aws/observability/clb/logs"
RegionMap:
us-east-1:
bucketname: appdevzipfiles-us-east-1
us-east-2:
bucketname: appdevzipfiles-us-east-2
us-west-1:
bucketname: appdevzipfiles-us-west-1
us-west-2:
bucketname: appdevzipfiles-us-west-2
ap-south-1:
bucketname: appdevzipfiles-ap-south-1
ap-northeast-2:
bucketname: appdevzipfiles-ap-northeast-2
ap-southeast-1:
bucketname: appdevzipfiles-ap-southeast-1
ap-southeast-2:
bucketname: appdevzipfiles-ap-southeast-2
ap-northeast-1:
bucketname: appdevzipfiles-ap-northeast-1
ca-central-1:
bucketname: appdevzipfiles-ca-central-1
eu-central-1:
bucketname: appdevzipfiles-eu-central-1
eu-west-1:
bucketname: appdevzipfiles-eu-west-1
eu-west-2:
bucketname: appdevzipfiles-eu-west-2
eu-west-3:
bucketname: appdevzipfiles-eu-west-3
eu-north-1:
bucketname: appdevzipfiles-eu-north-1s
sa-east-1:
bucketname: appdevzipfiles-sa-east-1
ap-east-1:
bucketname: appdevzipfiles-ap-east-1s
af-south-1:
bucketname: appdevzipfiles-af-south-1s
eu-south-1:
bucketname: appdevzipfiles-eu-south-1
me-south-1:
bucketname: appdevzipfiles-me-south-1s
me-central-1:
bucketname: appdevzipfiles-me-central-1
eu-central-2:
bucketname: appdevzipfiles-eu-central-2ss
ap-northeast-3:
bucketname: appdevzipfiles-ap-northeast-3s
ap-southeast-3:
bucketname: appdevzipfiles-ap-southeast-3

Resources:
LambdaRole:

Check warning on line 539 in aws-observability/templates/sumologic_observability.master.template.yaml

View workflow job for this annotation

GitHub Actions / Validatation (cfn-lint)

W3011 Both UpdateReplacePolicy and DeletionPolicy are needed to protect Resources/LambdaRole from deletion
Expand Down Expand Up @@ -542,8 +591,8 @@ Resources:
Handler: lambda_function.lambda_handler
Runtime: python3.12
Code:
S3Bucket: hsharma-codes
S3Key: 'telemetry.zip'
S3Bucket: !FindInMap [ RegionMap, !Ref 'AWS::Region', bucketname ]
S3Key: "sumologic-aws-observability/apps/SumoLogicAWSObservabilityHelper/telemetryv1.0.0.zip"
MemorySize: 128
Timeout: 900
Role: !GetAtt LambdaRole.Arn
Expand Down

0 comments on commit 162d32b

Please sign in to comment.