File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -993,7 +993,8 @@ class ServerlessAppsyncPlugin {
993
993
defaultStatements . push ( dbStatement , secretManagerStatement ) ;
994
994
break ;
995
995
}
996
- case 'AMAZON_ELASTICSEARCH' : {
996
+ case 'AMAZON_ELASTICSEARCH' :
997
+ case 'AMAZON_OPENSEARCH_SERVICE' : {
997
998
let arn ;
998
999
if ( ds . config . domain ) {
999
1000
arn = {
@@ -1121,6 +1122,19 @@ class ServerlessAppsyncPlugin {
1121
1122
] ,
1122
1123
} ,
1123
1124
} ;
1125
+ } else if ( ds . type === 'AMAZON_OPENSEARCH_SERVICE' ) {
1126
+ resource . Properties . OpenSearchServiceConfig = {
1127
+ AwsRegion : ds . config . region || config . region ,
1128
+ Endpoint : ds . config . endpoint || {
1129
+ 'Fn::Join' : [
1130
+ '' ,
1131
+ [
1132
+ 'https://' ,
1133
+ { 'Fn::GetAtt' : [ ds . config . domain , 'DomainEndpoint' ] } ,
1134
+ ] ,
1135
+ ] ,
1136
+ } ,
1137
+ } ;
1124
1138
} else if ( ds . type === 'RELATIONAL_DATABASE' ) {
1125
1139
resource . Properties . RelationalDatabaseConfig = {
1126
1140
RdsHttpEndpointConfig : {
You can’t perform that action at this time.
0 commit comments