Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ jobs:
TITILER_PGSTAC_API_CUSTOM_DOMAIN_NAME: ${{ vars.TITILER_PGSTAC_API_CUSTOM_DOMAIN_NAME }}
USER_STAC_ITEM_GEN_ROLE_ARN: ${{ vars.USER_STAC_ITEM_GEN_ROLE_ARN }}
USER_STAC_ALLOWED_PUBLISHER_ACCOUNT_BUCKET_PAIRS: ${{ vars.USER_STAC_ALLOWED_PUBLISHER_ACCOUNT_BUCKET_PAIRS }}
USER_STAC_STAC_API_CUSTOM_DOMAIN_NAME: ${{ vars.USER_STAC_STAC_API_CUSTOM_DOMAIN_NAME }}
USER_STAC_TITILER_PGSTAC_API_CUSTOM_DOMAIN_NAME: ${{ vars.USER_STAC_TITILER_PGSTAC_API_CUSTOM_DOMAIN_NAME }}
WEB_ACL_ARN: ${{ vars.WEB_ACL_ARN }}

steps:
Expand Down
7 changes: 5 additions & 2 deletions cdk/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ const {
titilerPgStacApiCustomDomainName,
userStacAllowedPublisherAccountBucketPairs,
userStacItemGenRoleArn,
userStacStacApiCustomDomainName,
userStacTitilerPgStacApiCustomDomainName,
version,
webAclArn,
} = new Config();
Expand Down Expand Up @@ -93,6 +95,7 @@ new PgStacInfra(app, buildStackName("userSTAC"), {
stage,
type: "internal",
version,
certificateArn,
webAclArn,
loggingBucketArn: common.loggingBucket.bucketArn,
pgstacDbConfig: {
Expand All @@ -102,12 +105,12 @@ new PgStacInfra(app, buildStackName("userSTAC"), {
subnetPublic: false,
},
stacApiConfig: {
// customDomainName: stacApiCustomDomainName,
customDomainName: userStacStacApiCustomDomainName,
},
titilerPgstacConfig: {
mosaicHost,
bucketsPath: "./titiler_buckets.yaml",
// customDomainName: titilerPgStacApiCustomDomainName,
customDomainName: userStacTitilerPgStacApiCustomDomainName,
dataAccessRoleArn: titilerDataAccessRoleArn,
},
// stacBrowserConfig: {
Expand Down
4 changes: 4 additions & 0 deletions cdk/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ export class Config {
readonly webAclArn: string;
readonly userStacItemGenRoleArn: string;
readonly userStacAllowedPublisherAccountBucketPairs: Array<{accountId: string; bucketArn: string}> | undefined;
readonly userStacStacApiCustomDomainName: string | undefined;
readonly userStacTitilerPgStacApiCustomDomainName: string | undefined;

constructor() {
// These are required environment variables and cannot be undefined
Expand Down Expand Up @@ -117,6 +119,8 @@ export class Config {
this.pgstacVersion = process.env.PGSTAC_VERSION!;
this.webAclArn = process.env.WEB_ACL_ARN!;
this.userStacItemGenRoleArn = process.env.USER_STAC_ITEM_GEN_ROLE_ARN!;
this.userStacStacApiCustomDomainName = process.env.USER_STAC_STAC_API_CUSTOM_DOMAIN_NAME;
this.userStacTitilerPgStacApiCustomDomainName = process.env.USER_STAC_TITILER_PGSTAC_API_CUSTOM_DOMAIN_NAME;

if (process.env.USER_STAC_ALLOWED_PUBLISHER_ACCOUNT_BUCKET_PAIRS) {
try {
Expand Down