Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanstitt committed Dec 10, 2024
1 parent c41c5f8 commit e162537
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/server/aws.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@ import { createHash } from 'crypto'
import { CodeManifest, MinimalRunInfo, MinimalRunResultsInfo } from '@/lib/types'
import { getECRPolicy } from './aws-ecr-policy'


export type { PresignedPost }

export function objectToAWSTags(tags: Record<string, string>) {
const Environment = AWS_ACCOUNT_ENVIRONMENT[process.env.AWS_ACCOUNT_ID || ''] || 'Unknown'
return Object.entries({ ...tags, Environment, Application: 'MangementApp' }).map(([Key, Value]) => ({
Key,
Value: strToAscii(Value).replace(/[^a-zA-Z0-9]/g, "").slice(0, 256),
Value: strToAscii(Value)
.replace(/[^a-zA-Z0-9]/g, '')
.slice(0, 256),
}))
}

Expand Down

0 comments on commit e162537

Please sign in to comment.