Skip to content

Commit

Permalink
refactor(ory_hydra): formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Roy Scheeren <[email protected]>
  • Loading branch information
royscheeren committed Feb 14, 2024
1 parent 60ee062 commit 497e840
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion apps/ory-hydra/containers/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "3"
version: '3'

services:
hydra-migrate:
Expand Down
11 changes: 6 additions & 5 deletions apps/ory-hydra/sst.config.ts
Original file line number Diff line number Diff line change
@@ -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() {
Expand All @@ -10,6 +11,6 @@ export default {
}
},
stacks(app) {
app.stack(OryHydra);
}
} satisfies SSTConfig;
app.stack(OryHydra)
},
} satisfies SSTConfig
9 changes: 4 additions & 5 deletions apps/ory-hydra/stacks/OryHydra.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand All @@ -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', {
Expand Down Expand Up @@ -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', {
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 497e840

Please sign in to comment.