-
Notifications
You must be signed in to change notification settings - Fork 84
[BUG] SIGKILL 9 error on StaticWebsite construct #909
Copy link
Copy link
Closed
Labels
Description
Describe the bug
InfrastructureTsProject with cloudscapeReactTsWebsites deployment fails with the following error.
Received response status [FAILED] from custom resource. Message returned: Command '['/opt/awscli/aws', 's3', 'sync', '--delete', '/tmp/tmpxxxxxx/contents', 's3://infra-dev-sandbox-mywebsitewebsitebucketblahblahblah/']' died with <Signals.SIGKILL: 9>.
Expected Behavior
CloudFormation deployment successful with no errors
Current Behavior
SIGKILL 9 error
Reproduction Steps
npx projen deploy:dev command on the "Your first AWS PDK project" tutorial
Possible Solution
Add bucketDeploymentProps to the StaticWebsite construct in the generated website construct.
const website = new StaticWebsite(this, id, {
websiteContentPath: "../website/build",
bucketDeploymentProps: {
prune: true,
memoryLimit: 1024,
},
runtimeOptions: {
jsonPayload: {
region: Stack.of(this).region,
identityPoolId: props?.userIdentity.identityPool.identityPoolId,
userPoolId: props?.userIdentity.userPool?.userPoolId,
userPoolWebClientId:
props?.userIdentity.userPoolClient?.userPoolClientId,
typeSafeApis: { MyApi: props?.myapi.api.api.urlForPath() },
typeSafeWebSocketApis: {},
},
},
});
Additional Information/Context
No response
PDK version used
0.26.1
What languages are you seeing this issue on?
Typescript
Environment details (OS name and version, etc.)
macOS 15.2, M3
Reactions are currently unavailable