Skip to content

Commit

Permalink
feat(ory-hydra): first config round
Browse files Browse the repository at this point in the history
Signed-off-by: Roy Scheeren <[email protected]>
  • Loading branch information
royscheeren committed Feb 19, 2024
1 parent bf4cf9a commit 0ab1690
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions apps/ory-hydra/containers/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "3.7"
version: '3.7'

services:
hydra-migrate:
Expand Down Expand Up @@ -33,7 +33,7 @@ services:
ports:
- 6379:6379
restart: unless-stopped
profiles: ["development"]
profiles: ['development']

postgresd:
image: postgres:16
Expand All @@ -46,7 +46,7 @@ services:
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=${DB_NAME}
restart: on-failure
profiles: ["development"]
profiles: ['development']

networks:
ory-hydra-network:
Expand Down
18 changes: 9 additions & 9 deletions apps/ory-hydra/stacks/OryHydra.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: '%+~`#$&*()|[]{}:;<>?!\'/@"\\^,=.',
})

/*
Expand Down Expand Up @@ -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', {
Expand Down

0 comments on commit 0ab1690

Please sign in to comment.