-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: korjaa ilmoitustaulusyötteen oikeuspuutteet (#287)
- Loading branch information
1 parent
96cc8c2
commit 7118da4
Showing
6 changed files
with
53 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Construct } from "@aws-cdk/core"; | ||
import { Domain } from "@aws-cdk/aws-opensearchservice"; | ||
import { Config } from "./config"; | ||
import { AccountStackOutputs } from "./hassu-account"; | ||
|
||
export async function getOpenSearchDomain(scope: Construct, accountStackOutputs: AccountStackOutputs) { | ||
if (Config.env !== "localstack") { | ||
return Domain.fromDomainAttributes(scope, "DomainEndPoint", { | ||
domainEndpoint: accountStackOutputs.SearchDomainEndpointOutput, | ||
domainArn: accountStackOutputs.SearchDomainArnOutput, | ||
}); | ||
} else { | ||
return Domain.fromDomainEndpoint(scope, "DomainEndPoint", "http://not-used-with-localstack"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters