Skip to content

Commit 146997e

Browse files
authored
fix: add dynamodb resource in env variable name (#20)
1 parent 5481c55 commit 146997e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/commands/types/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ export async function handler(_argv: ReturnType<typeof builder>['argv']): Promis
4747
for (const resource of eitherHandler.right.resources ?? []) {
4848
if ('dynamodb' in resource) {
4949
const _tableId = resource.dynamodb.tableId.replace(/[^a-zA-Z0-9]+/g, '_')
50-
constants[camelcase(`dynamodb_${_tableId}`)] = `STARCHART_${_tableId.toUpperCase()}_TABLE_NAME`
50+
constants[camelcase(`dynamodb_${_tableId}`)] = `STARCHART_DYNAMODB_${_tableId.toUpperCase()}_TABLE_NAME`
5151
} else if ('s3' in resource) {
5252
const _bucketId = resource.s3.bucketId.replace(/[^a-zA-Z0-9]+/g, '_')
53-
constants[camelcase(`s3_${_bucketId}`)] = `STARCHART_${_bucketId.toUpperCase()}_BUCKET_NAME`
53+
constants[camelcase(`s3_${_bucketId}`)] = `STARCHART_S3_${_bucketId.toUpperCase()}_BUCKET_NAME`
5454
}
5555

5656
// @todo add secrets and parameters

0 commit comments

Comments
 (0)