Skip to content

[BUG] SIGKILL 9 error on StaticWebsite construct #909

Closed
@ShutoAraki

Description

@ShutoAraki

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy