Skip to content

Commit

Permalink
update connections yaml files with new image uri
Browse files Browse the repository at this point in the history
  • Loading branch information
aimethed committed Oct 23, 2024
1 parent 20f7b0f commit 6b99732
Show file tree
Hide file tree
Showing 30 changed files with 150 additions and 30 deletions.
6 changes: 5 additions & 1 deletion athena-aws-cmdb/athena-aws-cmdb-connection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ Conditions:
HasKmsKeyId: !Not [ !Equals [ !Ref KmsKeyId, "" ] ]
NotHasLambdaRole: !Equals [ !Ref LambdaRoleArn, "" ]
CreateKmsPolicy: !And [ !Condition HasKmsKeyId, !Condition NotHasLambdaRole ]
IsRegionBAH: !Equals [!Ref "AWS::Region", "me-south-1"]
IsRegionHKG: !Equals [!Ref "AWS::Region", "ap-east-1"]

Resources:
ConnectorConfig:
Expand All @@ -46,7 +48,9 @@ Resources:
glue_connection: !Ref GlueConnection
FunctionName: !Ref LambdaFunctionName
PackageType: "Image"
ImageUri: !Sub '292517598671.dkr.ecr.${AWS::Region}.amazonaws.com/athena-federation-repository-aws-cmdb:2022.47.1'
ImageUri: !Sub
- '${Account}.dkr.ecr.${AWS::Region}.amazonaws.com/athena-federation-repository-aws-cmdb:2022.47.1'
- Account: !If [IsRegionBAH, 084828588479, !If [IsRegionHKG, 183295418215, 292517598671]]
Description: "Enables Amazon Athena to communicate with various AWS Services, making your resource inventories accessible via SQL."
Timeout: 900
MemorySize: 3008
Expand Down
6 changes: 5 additions & 1 deletion athena-cloudera-hive/athena-cloudera-hive-connection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ Conditions:
NotHasLambdaRole: !Equals [ !Ref LambdaRoleArn, "" ]
HasKmsKeyId: !Not [ !Equals [ !Ref KmsKeyId, "" ] ]
CreateKmsPolicy: !And [!Condition NotHasLambdaRole, !Condition HasKmsKeyId]
IsRegionBAH: !Equals [!Ref "AWS::Region", "me-south-1"]
IsRegionHKG: !Equals [!Ref "AWS::Region", "ap-east-1"]
Resources:
JdbcConnectorConfig:
Type: 'AWS::Serverless::Function'
Expand All @@ -53,7 +55,9 @@ Resources:
glue_connection: !Ref GlueConnection
FunctionName: !Ref LambdaFunctionName
PackageType: "Image"
ImageUri: !Sub '292517598671.dkr.ecr.${AWS::Region}.amazonaws.com/athena-federation-repository-cloudera-hive:2022.47.1'
ImageUri: !Sub
- '${Account}.dkr.ecr.${AWS::Region}.amazonaws.com/athena-federation-repository-cloudera-hive:2022.47.1'
- Account: !If [IsRegionBAH, 084828588479, !If [IsRegionHKG, 183295418215, 292517598671]]
ImageConfig:
Command: [ "com.amazonaws.athena.connectors.cloudera.HiveCompositeHandler" ]
Description: "Enables Amazon Athena to communicate with Cloudera Hive using JDBC"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ Conditions:
HasKmsKeyId: !Not [ !Equals [ !Ref KmsKeyId, "" ] ]
NotHasLambdaRole: !Equals [ !Ref LambdaRoleArn, "" ]
CreateKmsPolicy: !And [!Condition NotHasLambdaRole, !Condition HasKmsKeyId]
IsRegionBAH: !Equals [!Ref "AWS::Region", "me-south-1"]
IsRegionHKG: !Equals [!Ref "AWS::Region", "ap-east-1"]
Resources:
JdbcConnectorConfig:
Type: 'AWS::Serverless::Function'
Expand All @@ -53,7 +55,9 @@ Resources:
glue_connection: !Ref GlueConnection
FunctionName: !Ref LambdaFunctionName
PackageType: "Image"
ImageUri: !Sub '292517598671.dkr.ecr.${AWS::Region}.amazonaws.com/athena-federation-repository-cloudera-impala:2022.47.1'
ImageUri: !Sub
- '${Account}.dkr.ecr.${AWS::Region}.amazonaws.com/athena-federation-repository-cloudera-impala:2022.47.1'
- Account: !If [IsRegionBAH, 084828588479, !If [IsRegionHKG, 183295418215, 292517598671]]
ImageConfig:
Command: [ "com.amazonaws.athena.connectors.cloudera.ImpalaCompositeHandler" ]
Description: "Enables Amazon Athena to communicate with Cloudera Impala using JDBC"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ Conditions:
HasKmsKeyId: !Not [ !Equals [ !Ref KmsKeyId, "" ] ]
NotHasLambdaRole: !Equals [ !Ref LambdaRoleArn, "" ]
CreateKmsPolicy: !And [ !Condition HasKmsKeyId, !Condition NotHasLambdaRole ]
IsRegionBAH: !Equals [!Ref "AWS::Region", "me-south-1"]
IsRegionHKG: !Equals [!Ref "AWS::Region", "ap-east-1"]

Resources:
ConnectorConfig:
Expand All @@ -46,7 +48,9 @@ Resources:
glue_connection: !Ref GlueConnection
FunctionName: !Ref LambdaFunctionName
PackageType: "Image"
ImageUri: !Sub '292517598671.dkr.ecr.${AWS::Region}.amazonaws.com/athena-federation-repository-cloudwatch-metrics:2022.47.1'
ImageUri: !Sub
- '${Account}.dkr.ecr.${AWS::Region}.amazonaws.com/athena-federation-repository-cloudwatch-metrics:2022.47.1'
- Account: !If [IsRegionBAH, 084828588479, !If [IsRegionHKG, 183295418215, 292517598671]]
Description: "Enables Amazon Athena to communicate with Cloudwatch Metrics, making your metrics data accessible via SQL"
Timeout: 900
MemorySize: 3008
Expand Down
6 changes: 5 additions & 1 deletion athena-cloudwatch/athena-cloudwatch-connection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ Conditions:
HasKmsKeyId: !Not [!Equals [!Ref KmsKeyId, ""]]
NotHasLambdaRole: !Equals [!Ref LambdaRole, ""]
CreateKmsPolicy: !And [ !Condition HasKmsKeyId, !Condition NotHasLambdaRole ]
IsRegionBAH: !Equals [!Ref "AWS::Region", "me-south-1"]
IsRegionHKG: !Equals [!Ref "AWS::Region", "ap-east-1"]

Resources:
ConnectorConfig:
Expand All @@ -46,7 +48,9 @@ Resources:
glue_connection: !Ref GlueConnection
FunctionName: !Ref LambdaFunctionName
PackageType: "Image"
ImageUri: !Sub '292517598671.dkr.ecr.${AWS::Region}.amazonaws.com/athena-federation-repository-cloudwatch:2022.47.1'
ImageUri: !Sub
- '${Account}.dkr.ecr.${AWS::Region}.amazonaws.com/athena-federation-repository-cloudwatch:2022.47.1'
- Account: !If [IsRegionBAH, 084828588479, !If [IsRegionHKG, 183295418215, 292517598671]]
Description: "Enables Amazon Athena to communicate with Cloudwatch, making your log accessible via SQL"
Timeout: 900
MemorySize: 3008
Expand Down
6 changes: 5 additions & 1 deletion athena-datalakegen2/athena-datalakegen2-connection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ Conditions:
HasKmsKeyId: !Not [ !Equals [ !Ref KmsKeyId, "" ] ]
NotHasLambdaRole: !Equals [ !Ref LambdaRoleArn, "" ]
CreateKmsPolicy: !And [ !Condition HasKmsKeyId, !Condition NotHasLambdaRole ]
IsRegionBAH: !Equals [!Ref "AWS::Region", "me-south-1"]
IsRegionHKG: !Equals [!Ref "AWS::Region", "ap-east-1"]

Resources:
JdbcConnectorConfig:
Expand All @@ -61,7 +63,9 @@ Resources:
glue_connection: !Ref GlueConnection
FunctionName: !Ref LambdaFunctionName
PackageType: "Image"
ImageUri: !Sub '292517598671.dkr.ecr.${AWS::Region}.amazonaws.com/athena-federation-repository-datalakegen2:2022.47.1'
ImageUri: !Sub
- '${Account}.dkr.ecr.${AWS::Region}.amazonaws.com/athena-federation-repository-datalakegen2:2022.47.1'
- Account: !If [IsRegionBAH, 084828588479, !If [IsRegionHKG, 183295418215, 292517598671]]
ImageConfig:
Command: [ "com.amazonaws.athena.connectors.datalakegen2.DataLakeGen2CompositeHandler" ]
Description: "Enables Amazon Athena to communicate with DataLake Gen2 using JDBC"
Expand Down
6 changes: 5 additions & 1 deletion athena-db2-as400/athena-db2-as400-connection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ Conditions:
HasKmsKeyId: !Not [!Equals [!Ref KmsKeyId, ""]]
NotHasLambdaRole: !Equals [!Ref LambdaRoleArn, ""]
CreateKmsPolicy: !And [!Condition HasKmsKeyId, !Condition NotHasLambdaRole]
IsRegionBAH: !Equals [!Ref "AWS::Region", "me-south-1"]
IsRegionHKG: !Equals [!Ref "AWS::Region", "ap-east-1"]

Resources:
JdbcConnectorConfig:
Expand All @@ -62,7 +64,9 @@ Resources:
glue_connection: !Ref GlueConnection
FunctionName: !Ref LambdaFunctionName
PackageType: "Image"
ImageUri: !Sub '292517598671.dkr.ecr.${AWS::Region}.amazonaws.com/athena-federation-repository-db2-as400:2022.47.1'
ImageUri: !Sub
- '${Account}.dkr.ecr.${AWS::Region}.amazonaws.com/athena-federation-repository-db2-as400:2022.47.1'
- Account: !If [IsRegionBAH, 084828588479, !If [IsRegionHKG, 183295418215, 292517598671]]
ImageConfig:
Command: [ "com.amazonaws.athena.connectors.db2as400.Db2As400CompositeHandler" ]
Description: "Enables Amazon Athena to communicate with DB2 on iSeries (AS400) using JDBC"
Expand Down
6 changes: 5 additions & 1 deletion athena-db2/athena-db2-connection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ Conditions:
HasKmsKeyId: !Not [ !Equals [ !Ref KmsKeyId, "" ] ]
NotHasLambdaRole: !Equals [ !Ref LambdaRoleArn, "" ]
CreateKmsPolicy: !And [ !Condition HasKmsKeyId, !Condition NotHasLambdaRole ]
IsRegionBAH: !Equals [!Ref "AWS::Region", "me-south-1"]
IsRegionHKG: !Equals [!Ref "AWS::Region", "ap-east-1"]

Resources:
JdbcConnectorConfig:
Expand All @@ -62,7 +64,9 @@ Resources:
glue_connection: !Ref GlueConnection
FunctionName: !Ref LambdaFunctionName
PackageType: "Image"
ImageUri: !Sub '292517598671.dkr.ecr.${AWS::Region}.amazonaws.com/athena-federation-repository-db2:2022.47.1'
ImageUri: !Sub
- '${Account}.dkr.ecr.${AWS::Region}.amazonaws.com/athena-federation-repository-db2:2022.47.1'
- Account: !If [IsRegionBAH, 084828588479, !If [IsRegionHKG, 183295418215, 292517598671]]
ImageConfig:
Command: [ "com.amazonaws.athena.connectors.db2.Db2CompositeHandler" ]
Description: "Enables Amazon Athena to communicate with DB2 using JDBC"
Expand Down
6 changes: 5 additions & 1 deletion athena-docdb/athena-docdb-connection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ Conditions:
HasKmsKeyId: !Not [!Equals [!Ref KmsKeyId, ""]]
NotHasLambdaRole: !Equals [!Ref LambdaRoleArn, ""]
CreateKmsPolicy: !And [!Condition HasKmsKeyId, !Condition NotHasLambdaRole]
IsRegionBAH: !Equals [!Ref "AWS::Region", "me-south-1"]
IsRegionHKG: !Equals [!Ref "AWS::Region", "ap-east-1"]

Resources:
ConnectorConfig:
Expand All @@ -55,7 +57,9 @@ Resources:
glue_connection: !Ref GlueConnection
FunctionName: !Ref LambdaFunctionName
PackageType: "Image"
ImageUri: !Sub '292517598671.dkr.ecr.${AWS::Region}.amazonaws.com/athena-federation-repository-docdb:2022.47.1'
ImageUri: !Sub
- '${Account}.dkr.ecr.${AWS::Region}.amazonaws.com/athena-federation-repository-docdb:2022.47.1'
- Account: !If [IsRegionBAH, 084828588479, !If [IsRegionHKG, 183295418215, 292517598671]]
Description: "Enables Amazon Athena to communicate with DocumentDB, making your DocumentDB data accessible via SQL."
Timeout: 900
MemorySize: 3008
Expand Down
6 changes: 5 additions & 1 deletion athena-dynamodb/athena-dynamodb-connection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ Conditions:
HasKmsKeyId: !Not [!Equals [!Ref KmsKeyId, ""]]
NotHasLambdaRole: !Equals [!Ref LambdaRoleArn, ""]
CreateKmsPolicy: !And [!Condition HasKmsKeyId, !Condition NotHasLambdaRole]
IsRegionBAH: !Equals [!Ref "AWS::Region", "me-south-1"]
IsRegionHKG: !Equals [!Ref "AWS::Region", "ap-east-1"]

Resources:
ConnectorConfig:
Expand All @@ -46,7 +48,9 @@ Resources:
glue_connection: !Ref GlueConnection
FunctionName: !Ref LambdaFunctionName
PackageType: "Image"
ImageUri: !Sub '292517598671.dkr.ecr.${AWS::Region}.amazonaws.com/athena-federation-repository-dynamodb:2022.47.1'
ImageUri: !Sub
- '${Account}.dkr.ecr.${AWS::Region}.amazonaws.com/athena-federation-repository-dynamodb:2022.47.1'
- Account: !If [IsRegionBAH, 084828588479, !If [IsRegionHKG, 183295418215, 292517598671]]
Description: "Enables Amazon Athena to communicate with DynamoDB, making your tables accessible via SQL"
Timeout: 900
MemorySize: 3008
Expand Down
6 changes: 5 additions & 1 deletion athena-elasticsearch/athena-elasticsearch-connection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ Conditions:
HasKmsKeyId: !Not [ !Equals [ !Ref KmsKeyId, "" ] ]
NotHasLambdaRole: !Equals [ !Ref LambdaRoleArn, "" ]
CreateKmsPolicy: !And [ !Condition HasKmsKeyId, !Condition NotHasLambdaRole ]
IsRegionBAH: !Equals [!Ref "AWS::Region", "me-south-1"]
IsRegionHKG: !Equals [!Ref "AWS::Region", "ap-east-1"]

Resources:
ConnectorConfig:
Expand All @@ -63,7 +65,9 @@ Resources:
glue_connection: !Ref GlueConnection
FunctionName: !Ref LambdaFunctionName
PackageType: "Image"
ImageUri: !Sub '292517598671.dkr.ecr.${AWS::Region}.amazonaws.com/athena-federation-repository-elasticsearch:2022.47.1'
ImageUri: !Sub
- '${Account}.dkr.ecr.${AWS::Region}.amazonaws.com/athena-federation-repository-elasticsearch:2022.47.1'
- Account: !If [IsRegionBAH, 084828588479, !If [IsRegionHKG, 183295418215, 292517598671]]
Description: "The Elasticsearch Lambda Connector provides Athena users the ability to query data stored on Elasticsearch clusters."
Timeout: 900
MemorySize: 3008
Expand Down
6 changes: 5 additions & 1 deletion athena-gcs/athena-gcs-connection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ Conditions:
HasKmsKeyId: !Not [!Equals [!Ref KmsKeyId, ""]]
NotHasLambdaRole: !Equals [!Ref LambdaRoleArn, ""]
CreateKmsPolicy: !And [!Condition HasKmsKeyId, !Condition NotHasLambdaRole]
IsRegionBAH: !Equals [!Ref "AWS::Region", "me-south-1"]
IsRegionHKG: !Equals [!Ref "AWS::Region", "ap-east-1"]

Resources:
AthenaGCSConnector:
Expand All @@ -50,7 +52,9 @@ Resources:
glue_connection: !Ref GlueConnection
FunctionName: !Ref LambdaFunctionName
PackageType: "Image"
ImageUri: !Sub '292517598671.dkr.ecr.${AWS::Region}.amazonaws.com/athena-federation-repository-gcs:2022.47.1'
ImageUri: !Sub
- '${Account}.dkr.ecr.${AWS::Region}.amazonaws.com/athena-federation-repository-gcs:2022.47.1'
- Account: !If [IsRegionBAH, 084828588479, !If [IsRegionHKG, 183295418215, 292517598671]]
Description: "Amazon Athena GCS Connector"
Timeout: 900
MemorySize: 3008
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ Conditions:
HasKmsKeyId: !Not [ !Equals [ !Ref KmsKeyId, "" ] ]
NotHasLambdaRole: !Equals [ !Ref LambdaRoleArn, "" ]
CreateKmsPolicy: !And [ !Condition HasKmsKeyId, !Condition NotHasLambdaRole ]
IsRegionBAH: !Equals [!Ref "AWS::Region", "me-south-1"]
IsRegionHKG: !Equals [!Ref "AWS::Region", "ap-east-1"]

Resources:
AthenaBigQueryConnector:
Expand All @@ -63,7 +65,9 @@ Resources:
GOOGLE_APPLICATION_CREDENTIALS: '/tmp/service-account.json'
FunctionName: !Ref LambdaFunctionName
PackageType: "Image"
ImageUri: !Sub '292517598671.dkr.ecr.${AWS::Region}.amazonaws.com/athena-federation-repository-google-bigquery:2022.47.1'
ImageUri: !Sub
- '${Account}.dkr.ecr.${AWS::Region}.amazonaws.com/athena-federation-repository-google-bigquery:2022.47.1'
- Account: !If [IsRegionBAH, 084828588479, !If [IsRegionHKG, 183295418215, 292517598671]]
Description: "Enables Amazon Athena to communicate with BigQuery using Google SDK"
Timeout: 900
MemorySize: 3008
Expand Down
6 changes: 5 additions & 1 deletion athena-hbase/athena-hbase-connection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ Conditions:
HasKmsKeyId: !Not [ !Equals [ !Ref KmsKeyId, "" ] ]
NotHasLambdaRole: !Equals [ !Ref LambdaRoleArn, "" ]
CreateKmsPolicy: !And [ !Condition HasKmsKeyId, !Condition NotHasLambdaRole ]
IsRegionBAH: !Equals [!Ref "AWS::Region", "me-south-1"]
IsRegionHKG: !Equals [!Ref "AWS::Region", "ap-east-1"]

Resources:
ConnectorConfig:
Expand All @@ -55,7 +57,9 @@ Resources:
glue_connection: !Ref GlueConnection
FunctionName: !Ref LambdaFunctionName
PackageType: "Image"
ImageUri: !Sub '292517598671.dkr.ecr.${AWS::Region}.amazonaws.com/athena-federation-repository-hbase:2022.47.1'
ImageUri: !Sub
- '${Account}.dkr.ecr.${AWS::Region}.amazonaws.com/athena-federation-repository-hbase:2022.47.1'
- Account: !If [IsRegionBAH, 084828588479, !If [IsRegionHKG, 183295418215, 292517598671]]
Description: "Enables Amazon Athena to communicate with HBase, making your HBase data accessible via SQL"
Timeout: 900
MemorySize: 3008
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ Conditions:
HasKmsKeyId: !Not [ !Equals [ !Ref KmsKeyId, "" ] ]
NotHasLambdaRole: !Equals [ !Ref LambdaRoleArn, "" ]
CreateKmsPolicy: !And [ !Condition HasKmsKeyId, !Condition NotHasLambdaRole ]
IsRegionBAH: !Equals [!Ref "AWS::Region", "me-south-1"]
IsRegionHKG: !Equals [!Ref "AWS::Region", "ap-east-1"]

Resources:
JdbcConnectorConfig:
Expand All @@ -59,7 +61,9 @@ Resources:
glue_connection: !Ref GlueConnection
FunctionName: !Ref LambdaFunctionName
PackageType: "Image"
ImageUri: !Sub '292517598671.dkr.ecr.${AWS::Region}.amazonaws.com/athena-federation-repository-hortonworks-hive:2022.47.1'
ImageUri: !Sub
- '${Account}.dkr.ecr.${AWS::Region}.amazonaws.com/athena-federation-repository-hortonworks-hive:2022.47.1'
- Account: !If [IsRegionBAH, 084828588479, !If [IsRegionHKG, 183295418215, 292517598671]]
ImageConfig:
Command: [ "com.amazonaws.athena.connectors.hortonworks.HiveCompositeHandler" ]
Description: "Enables Amazon Athena to communicate with Hortonworks Hive using JDBC"
Expand Down
6 changes: 5 additions & 1 deletion athena-msk/athena-msk-connection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ Conditions:
HasKmsKeyId: !Not [ !Equals [ !Ref KmsKeyId, "" ] ]
NotHasLambdaRole: !Equals [ !Ref LambdaRoleArn, "" ]
CreateKmsPolicy: !And [ !Condition HasKmsKeyId, !Condition NotHasLambdaRole ]
IsRegionBAH: !Equals [!Ref "AWS::Region", "me-south-1"]
IsRegionHKG: !Equals [!Ref "AWS::Region", "ap-east-1"]

Resources:
AthenaMSKConnector:
Expand All @@ -61,7 +63,9 @@ Resources:
glue_connection: !Ref GlueConnection
FunctionName: !Ref LambdaFunctionName
PackageType: "Image"
ImageUri: !Sub '292517598671.dkr.ecr.${AWS::Region}.amazonaws.com/athena-federation-repository-msk:2022.47.1'
ImageUri: !Sub
- '${Account}.dkr.ecr.${AWS::Region}.amazonaws.com/athena-federation-repository-msk:2022.47.1'
- Account: !If [IsRegionBAH, 084828588479, !If [IsRegionHKG, 183295418215, 292517598671]]
Description: "Enables Amazon Athena to communicate with MSK clusters"
Timeout: 900
MemorySize: 3008
Expand Down
6 changes: 5 additions & 1 deletion athena-mysql/athena-mysql-connection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ Conditions:
HasKmsKeyId: !Not [ !Equals [ !Ref KmsKeyId, "" ] ]
NotHasLambdaRole: !Equals [ !Ref LambdaRoleArn, "" ]
CreateKmsPolicy: !And [ !Condition HasKmsKeyId, !Condition NotHasLambdaRole ]
IsRegionBAH: !Equals [!Ref "AWS::Region", "me-south-1"]
IsRegionHKG: !Equals [!Ref "AWS::Region", "ap-east-1"]

Resources:
JdbcConnectorConfig:
Expand All @@ -55,7 +57,9 @@ Resources:
glue_connection: !Ref GlueConnection
FunctionName: !Ref LambdaFunctionName
PackageType: "Image"
ImageUri: !Sub '292517598671.dkr.ecr.${AWS::Region}.amazonaws.com/athena-federation-repository-mysql:2022.47.1'
ImageUri: !Sub
- '${Account}.dkr.ecr.${AWS::Region}.amazonaws.com/athena-federation-repository-mysql:2022.47.1'
- Account: !If [IsRegionBAH, 084828588479, !If [IsRegionHKG, 183295418215, 292517598671]]
ImageConfig:
Command: [ "com.amazonaws.athena.connectors.mysql.MySqlCompositeHandler" ]
Description: "Enables Amazon Athena to communicate with MySQL using JDBC"
Expand Down
6 changes: 5 additions & 1 deletion athena-neptune/athena-neptune-connection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ Conditions:
HasKmsKeyId: !Not [ !Equals [ !Ref KmsKeyId, "" ] ]
NotHasLambdaRole: !Equals [ !Ref LambdaRoleArn, "" ]
CreateKmsPolicy: !And [ !Condition HasKmsKeyId, !Condition NotHasLambdaRole ]
IsRegionBAH: !Equals [!Ref "AWS::Region", "me-south-1"]
IsRegionHKG: !Equals [!Ref "AWS::Region", "ap-east-1"]

Resources:
ConnectorConfig:
Expand All @@ -58,7 +60,9 @@ Resources:
SERVICE_REGION: !Ref AWS::Region
FunctionName: !Ref LambdaFunctionName
PackageType: "Image"
ImageUri: !Sub '292517598671.dkr.ecr.${AWS::Region}.amazonaws.com/athena-federation-repository-neptune:2022.47.1'
ImageUri: !Sub
- '${Account}.dkr.ecr.${AWS::Region}.amazonaws.com/athena-federation-repository-neptune:2022.47.1'
- Account: !If [IsRegionBAH, 084828588479, !If [IsRegionHKG, 183295418215, 292517598671]]
Description: "Enables Amazon Athena to communicate with Neptune, making your Neptune graph data accessible via SQL."
Timeout: 900
MemorySize: 3008
Expand Down
6 changes: 5 additions & 1 deletion athena-oracle/athena-oracle-connection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ Conditions:
HasKmsKeyId: !Not [ !Equals [ !Ref KmsKeyId, "" ] ]
NotHasLambdaRole: !Equals [ !Ref LambdaRoleArn, "" ]
CreateKmsPolicy: !And [ !Condition HasKmsKeyId, !Condition NotHasLambdaRole ]
IsRegionBAH: !Equals [!Ref "AWS::Region", "me-south-1"]
IsRegionHKG: !Equals [!Ref "AWS::Region", "ap-east-1"]
Resources:
JdbcConnectorConfig:
Type: 'AWS::Serverless::Function'
Expand All @@ -56,7 +58,9 @@ Resources:
glue_connection: !Ref GlueConnection
FunctionName: !Ref LambdaFunctionName
PackageType: "Image"
ImageUri: !Sub '292517598671.dkr.ecr.${AWS::Region}.amazonaws.com/athena-federation-repository-oracle:2022.47.1'
ImageUri: !Sub
- '${Account}.dkr.ecr.${AWS::Region}.amazonaws.com/athena-federation-repository-oracle:2022.47.1'
- Account: !If [IsRegionBAH, 084828588479, !If [IsRegionHKG, 183295418215, 292517598671]]
ImageConfig:
Command: [ "com.amazonaws.athena.connectors.oracle.OracleCompositeHandler" ]
Description: "Enables Amazon Athena to communicate with ORACLE using JDBC"
Expand Down
Loading

0 comments on commit 6b99732

Please sign in to comment.