|
16 | 16 | 'Key': "new-relic-log-forwarder-folder/new-relic-log-forwarder.zip"
|
17 | 17 | }
|
18 | 18 |
|
| 19 | +mappings = { |
| 20 | + 'RegionToS3Bucket': { |
| 21 | + 'us-east-1': {'BucketArn': 'unified-logging-lambda-code-us-east-1'}, |
| 22 | + 'us-east-2': {'BucketArn': 'unified-logging-lambda-code-us-east-2'}, |
| 23 | + 'eu-west-1': {'BucketArn': 'unified-logging-lambda-code-eu-west-1'}, |
| 24 | + 'eu-west-2': {'BucketArn': 'unified-logging-lambda-code-eu-west-2'}, |
| 25 | + 'us-west-1': {'BucketArn': 'unified-logging-lambda-code-us-west-1'}, |
| 26 | + 'us-west-2': {'BucketArn': 'unified-logging-lambda-code-us-west-2'}, |
| 27 | + 'af-south-1': {'BucketArn': 'unified-logging-lambda-code-af-south-1'}, |
| 28 | + 'ap-south-1': {'BucketArn': 'unified-logging-lambda-code-ap-south-1'}, |
| 29 | + 'ap-northeast-3': {'BucketArn': 'unified-logging-lambda-code-ap-northeast-3'}, |
| 30 | + 'ap-northeast-2': {'BucketArn': 'unified-logging-lambda-code-ap-northeast-2'}, |
| 31 | + 'ap-southeast-1': {'BucketArn': 'unified-logging-lambda-code-ap-southeast-1'}, |
| 32 | + 'ap-southeast-2': {'BucketArn': 'unified-logging-lambda-code-ap-southeast-2'}, |
| 33 | + 'ap-northeast-1': {'BucketArn': 'unified-logging-lambda-code-ap-northeast-1'}, |
| 34 | + 'ca-central-1': {'BucketArn': 'unified-logging-lambda-code-ca-central-1'}, |
| 35 | + 'ca-west-1': {'BucketArn': 'unified-logging-lambda-code-ca-west-1'}, |
| 36 | + 'eu-central-1': {'BucketArn': 'unified-logging-lambda-code-eu-central-1'}, |
| 37 | + 'eu-south-1': {'BucketArn': 'unified-logging-lambda-code-eu-south-1'}, |
| 38 | + 'eu-west-3': {'BucketArn': 'unified-logging-lambda-code-eu-west-3'}, |
| 39 | + 'eu-south-2': {'BucketArn': 'unified-logging-lambda-code-eu-south-2'}, |
| 40 | + 'eu-north-1': {'BucketArn': 'unified-logging-lambda-code-eu-north-1'}, |
| 41 | + 'eu-central-2': {'BucketArn': 'unified-logging-lambda-code-eu-central-2'}, |
| 42 | + 'me-south-1': {'BucketArn': 'unified-logging-lambda-code-me-south-1'}, |
| 43 | + 'me-central-1': {'BucketArn': 'unified-logging-lambda-code-me-central-1'}, |
| 44 | + 'ap-east-1': {'BucketArn': 'unified-logging-lambda-code-ap-east-1'}, |
| 45 | + 'ap-south-2': {'BucketArn': 'unified-logging-lambda-code-ap-south-2'}, |
| 46 | + 'ap-southeast-3': {'BucketArn': 'unified-logging-lambda-code-ap-southeast-3'}, |
| 47 | + 'ap-southeast-5': {'BucketArn': 'unified-logging-lambda-code-ap-southeast-5'}, |
| 48 | + 'ap-southeast-4': {'BucketArn': 'unified-logging-lambda-code-ap-southeast-4'}, |
| 49 | + 'il-central-1': {'BucketArn': 'unified-logging-lambda-code-il-central-1'}, |
| 50 | + 'sa-east-1': {'BucketArn': 'unified-logging-lambda-code-sa-east-1'}, |
| 51 | + } |
| 52 | +} |
| 53 | + |
| 54 | +data['Mappings'] = mappings |
| 55 | + |
19 | 56 | with open(file_path, 'w') as file:
|
20 | 57 | yaml.dump(data, file)
|
21 | 58 |
|
|
0 commit comments