|
8 | 8 | "SumoLogGroupLambdaConnector", |
9 | 9 | "Arn" |
10 | 10 | ] |
| 11 | + }, |
| 12 | + "Export" : { |
| 13 | + "Name" : { "Fn::Join": [ "-", [ "SumoLogGroupLambdaConnectorArn", { "Fn::Select" : [ "2", {"Fn::Split" : [ "/" , { "Ref": "AWS::StackId" } ]}] } ] ] } |
11 | 14 | } |
12 | 15 | } |
13 | 16 | }, |
| 17 | + "Mappings" : { |
| 18 | + "RegionMap" : { |
| 19 | + "us-east-1": {"bucketname": "appdevzipfiles-us-east-1"}, |
| 20 | + "us-east-2": {"bucketname": "appdevzipfiles-us-east-2"}, |
| 21 | + "us-west-1": {"bucketname": "appdevzipfiles-us-west-1"}, |
| 22 | + "us-west-2": {"bucketname": "appdevzipfiles-us-west-2"}, |
| 23 | + "ap-south-1": {"bucketname": "appdevzipfiles-ap-south-1"}, |
| 24 | + "ap-northeast-2": {"bucketname": "appdevzipfiles-ap-northeast-2"}, |
| 25 | + "ap-southeast-1": {"bucketname": "appdevzipfiles-ap-southeast-1"}, |
| 26 | + "ap-southeast-2": {"bucketname": "appdevzipfiles-ap-southeast-2"}, |
| 27 | + "ap-northeast-1": {"bucketname": "appdevzipfiles-ap-northeast-1"}, |
| 28 | + "ca-central-1": {"bucketname": "appdevzipfiles-ca-central-1"}, |
| 29 | + "eu-central-1": {"bucketname": "appdevzipfiles-eu-central-1"}, |
| 30 | + "eu-west-1": {"bucketname": "appdevzipfiles-eu-west-1"}, |
| 31 | + "eu-west-2": {"bucketname": "appdevzipfiles-eu-west-2"}, |
| 32 | + "eu-west-3": {"bucketname": "appdevzipfiles-eu-west-3"}, |
| 33 | + "sa-east-1": {"bucketname": "appdevzipfiles-sa-east-1"} |
| 34 | + } |
| 35 | + }, |
14 | 36 | "Resources": { |
15 | 37 | "SumoLogGroupLambdaConnector": { |
16 | 38 | "Type": "AWS::Lambda::Function", |
17 | 39 | "Properties": { |
18 | 40 | "Code": { |
19 | | - "S3Bucket": "appdevstore", |
20 | | - "S3Key": "6bef113d950a9923b446dd438116f2a1" |
| 41 | + "S3Bucket": {"Fn::FindInMap" : [ "RegionMap", { "Ref" : "AWS::Region" }, "bucketname"]}, |
| 42 | + "S3Key": "loggroup-lambda-connector.zip" |
21 | 43 | }, |
22 | 44 | "Tags": [ |
23 | 45 | { |
|
58 | 80 | ], |
59 | 81 | "Policies": [ |
60 | 82 | { |
61 | | - "PolicyName": "SumoLogGroupLambdaConnectorRolePolicy0", |
| 83 | + "PolicyName": { "Fn::Join": [ "-", [ "SumoLogGroupLambdaConnectorPolicy", { "Fn::Select" : [ "2", {"Fn::Split" : [ "/" , { "Ref": "AWS::StackId" } ]}] } ] ] }, |
62 | 84 | "PolicyDocument": { |
63 | 85 | "Statement": [ |
64 | 86 | { |
|
0 commit comments