Skip to content

Commit 9bfd774

Browse files
committed
fix: make stack work
1 parent 4aa969a commit 9bfd774

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.github/workflows/test-and-release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
- name: Generate Stack ID
5252
run: |
5353
RANDOM_STRING=`node -e "const crypto = require('crypto'); process.stdout.write(crypto.randomBytes(Math.ceil(8 * 0.5)).toString('hex').slice(0, 8));"`
54-
echo "STACK_NAME=nrf-guide-test-${RANDOM_STRING}" >> $GITHUB_ENV
54+
echo "STACK_NAME=ppr-${RANDOM_STRING}" >> $GITHUB_ENV
5555
5656
- name: Deploy solution stack
5757
run: npx cdk deploy --require-approval never

cdk/RegistryStack.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { App, CfnOutput, Stack } from 'aws-cdk-lib'
1+
import { App, CfnOutput, aws_s3 as S3, Stack } from 'aws-cdk-lib'
22
import type { RegistryLambdas } from './RegistryLambdas.js'
33
import { STACK_NAME } from './stackConfig.js'
44

@@ -13,10 +13,15 @@ export class RegistryStack extends Stack {
1313
) {
1414
super(parent, STACK_NAME)
1515

16+
const bucket = new S3.Bucket(this, 'registryBucket', {
17+
publicReadAccess: true,
18+
websiteIndexDocument: 'registry.json',
19+
})
20+
1621
new CfnOutput(this, 'registryEndpoint', {
1722
exportName: `${this.stackName}:registryEndpoint`,
1823
description: 'Endpoint used for fetch the parameters',
19-
value: '', // FIXME,
24+
value: bucket.bucketWebsiteUrl,
2025
})
2126
}
2227
}

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
"keywords": [
2020
"nordicsemiconductor",
2121
"cellular-iot",
22-
"nrf-guide",
2322
"aws",
2423
"cdk"
2524
],

0 commit comments

Comments
 (0)