diff --git a/apps/ory-hydra/containers/docker-compose.yaml b/apps/ory-hydra/containers/docker-compose.yaml index 33c00b4f..796bc597 100644 --- a/apps/ory-hydra/containers/docker-compose.yaml +++ b/apps/ory-hydra/containers/docker-compose.yaml @@ -1,4 +1,4 @@ -version: "3" +version: '3' services: hydra-migrate: diff --git a/apps/ory-hydra/sst.config.ts b/apps/ory-hydra/sst.config.ts index 958b625a..91dd48dd 100644 --- a/apps/ory-hydra/sst.config.ts +++ b/apps/ory-hydra/sst.config.ts @@ -1,5 +1,6 @@ -import { SSTConfig } from "sst"; -import { OryHydra } from "./stacks/OryHydra"; +import { SSTConfig } from 'sst' + +import { OryHydra } from './stacks/OryHydra' export default { config() { @@ -10,6 +11,6 @@ export default { } }, stacks(app) { - app.stack(OryHydra); - } -} satisfies SSTConfig; + app.stack(OryHydra) + }, +} satisfies SSTConfig diff --git a/apps/ory-hydra/stacks/OryHydra.ts b/apps/ory-hydra/stacks/OryHydra.ts index 1fda9ca8..61387ac2 100644 --- a/apps/ory-hydra/stacks/OryHydra.ts +++ b/apps/ory-hydra/stacks/OryHydra.ts @@ -3,8 +3,7 @@ import * as cdk from 'aws-cdk-lib/core' import { StackContext } from 'sst/constructs' export function OryHydra({ stack }: StackContext) { - - /* + /* * Retrieve VPC */ const vpc = aws_ec2.Vpc.fromLookup(stack, 'Vpc', { @@ -13,7 +12,7 @@ export function OryHydra({ stack }: StackContext) { const sg = aws_ec2.SecurityGroup.fromLookupById(stack, 'HydraSG', 'sg-0e32398ab57f2a85d') - /* + /* * Create RDS Cluster */ const rdsCluster = new aws_rds.DatabaseCluster(stack, 'Hydra', { @@ -45,7 +44,7 @@ export function OryHydra({ stack }: StackContext) { const ecSubnetGroup = new aws_elasticache.CfnSubnetGroup(this, 'HydraElastiCacheSubnetGroup', { description: 'Hydra Elasticache Subnet Group', subnetIds: vpc.selectSubnets({ subnetType: aws_ec2.SubnetType.PUBLIC }).subnetIds, - cacheSubnetGroupName: 'HydraRedisSubnetGroup' + cacheSubnetGroupName: 'HydraRedisSubnetGroup', }) const SecurityGroup = new aws_ec2.SecurityGroup(this, 'HydraRedisSG', { @@ -74,7 +73,7 @@ export function OryHydra({ stack }: StackContext) { new cdk.CfnOutput(this, `HydraRedisCacheEndpointUrl${stack.stage}`, { value: redis.attrEndpointAddress, - }); + }) new cdk.CfnOutput(this, `HydraRedisCachePort${stack.stage}`, { value: redis.attrReaderEndpointPort,