From 0ab1690bec76799d471ecb7054004b1c53eb79ad Mon Sep 17 00:00:00 2001 From: Roy Scheeren Date: Mon, 19 Feb 2024 15:52:59 +0100 Subject: [PATCH] feat(ory-hydra): first config round Signed-off-by: Roy Scheeren --- apps/ory-hydra/containers/docker-compose.yaml | 6 +++--- apps/ory-hydra/stacks/OryHydra.ts | 18 +++++++++--------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/apps/ory-hydra/containers/docker-compose.yaml b/apps/ory-hydra/containers/docker-compose.yaml index 45537129..323b20c5 100644 --- a/apps/ory-hydra/containers/docker-compose.yaml +++ b/apps/ory-hydra/containers/docker-compose.yaml @@ -1,4 +1,4 @@ -version: "3.7" +version: '3.7' services: hydra-migrate: @@ -33,7 +33,7 @@ services: ports: - 6379:6379 restart: unless-stopped - profiles: ["development"] + profiles: ['development'] postgresd: image: postgres:16 @@ -46,7 +46,7 @@ services: - POSTGRES_PASSWORD=${DB_PASSWORD} - POSTGRES_DB=${DB_NAME} restart: on-failure - profiles: ["development"] + profiles: ['development'] networks: ory-hydra-network: diff --git a/apps/ory-hydra/stacks/OryHydra.ts b/apps/ory-hydra/stacks/OryHydra.ts index 5cc0949f..46da3012 100644 --- a/apps/ory-hydra/stacks/OryHydra.ts +++ b/apps/ory-hydra/stacks/OryHydra.ts @@ -13,11 +13,11 @@ export function OryHydra({ stack }: StackContext) { const sg = aws_ec2.SecurityGroup.fromLookupById(stack, 'HydraSG', 'sg-0e32398ab57f2a85d') /* - * Create RDS Secret - */ + * Create RDS Secret + */ const rdsSecret = new aws_rds.DatabaseSecret(this, 'HydraRDSSecret', { username: 'postgres', - excludeCharacters: "%+~`#$&*()|[]{}:;<>?!'/@\"\\^,=.", + excludeCharacters: '%+~`#$&*()|[]{}:;<>?!\'/@"\\^,=.', }) /* @@ -93,21 +93,21 @@ export function OryHydra({ stack }: StackContext) { }) /* - * Create Hydra secret - */ + * Create Hydra secret + */ const hydraSecret = new aws_secretsmanager.Secret(this, 'HydraSecret', { generateSecretString: { secretStringTemplate: JSON.stringify({}), generateStringKey: 'hydra_secret', - excludeCharacters: "%+~`#$&*()|[]{}:;<>?!'/@\"\\^,=.", + excludeCharacters: '%+~`#$&*()|[]{}:;<>?!\'/@"\\^,=.', }, }) /* - * Create Hydra ECS Service - */ + * Create Hydra ECS Service + */ const cluster = new aws_ecs.Cluster(this, 'HydraCluster', { vpc }) cluster.addCapacity('DefaultAutoScalingGroupCapacity', { - instanceType: new aws_ec2.InstanceType("t2.small"), + instanceType: new aws_ec2.InstanceType('t2.small'), desiredCapacity: 1, }) const taskDefinition = new aws_ecs.Ec2TaskDefinition(stack, 'HydraTask', {