Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(@aws-cdk/aws-gamelift-alpha): Build Construct uploading files with 0 bytes #27974

Open
khushail opened this issue Nov 13, 2023 · 0 comments
Open
Labels
@aws-cdk/aws-gamelift Related to Amazon GameLift bug This issue is a bug. effort/medium Medium work item – several days of effort p3

Comments

@khushail
Copy link
Contributor

khushail commented Nov 13, 2023

Describe the bug

SIM - V1081677033

Customer is using the construct Build[1] but however , the stack is successful but it uploads the file with 0 bytes. When we create the build via the CLI , it was able to successfully build and we were able to see the build file size with actual size. Below is the sample code snippet

  const b1 = new gf.Build(this,'samplebuild',{
        buildName: 'sample-build',
        operatingSystem: gf.OperatingSystem.AMAZON_LINUX_2,
        content: gf.Content.fromAsset(path.join(__dirname, 'docker')),
        buildVersion: '1.0.0',

      })

CX tried to upload Gamelift builds include:

Uploading a folder directly from my PC using Content.from_asset
Uploading a zip file directly from my PC using Content.from_asset
Uploading a zip file from an S3 bucket using Content.from_bucket

All of these result in a build being created in Gamelift of 0 size.

[1] https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-gamelift-alpha.Build.html#rolespan-classapi-icon-api-icon-experimental-titlethis-api-element-is-experimental-it-may-change-without-noticespan
[2] https://github.com/aws/aws-cdk/blob/main/packages/%40aws-cdk/aws-gamelift-alpha/lib/build.ts

Expected Behavior

It should be uploaded successfully

Current Behavior

Using fromAsset(), data is not uploaded

Reproduction Steps

  const b1 = new gf.Build(this,'samplebuild',{
        buildName: 'sample-build',
        operatingSystem: gf.OperatingSystem.AMAZON_LINUX_2,
        content: gf.Content.fromAsset(path.join(__dirname, 'docker')),
        buildVersion: '1.0.0',

      })

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.103.0 (build d0d7547)

Framework Version

No response

Node.js Version

v18

OS

Mac

Language

TypeScript

Language Version

No response

Other information

No response

@khushail khushail added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Nov 13, 2023
@github-actions github-actions bot added the package/tools Related to AWS CDK Tools or CLI label Nov 13, 2023
@khushail khushail added p2 effort/medium Medium work item – several days of effort and removed needs-triage This issue or PR still needs to be triaged. labels Nov 13, 2023
@vinayak-kukreja vinayak-kukreja added @aws-cdk/aws-gamelift Related to Amazon GameLift and removed package/tools Related to AWS CDK Tools or CLI labels Apr 12, 2024
@pahud pahud added p3 and removed p2 labels Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-gamelift Related to Amazon GameLift bug This issue is a bug. effort/medium Medium work item – several days of effort p3
Projects
None yet
Development

No branches or pull requests

3 participants