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

fix(core): append file extension to s3 asset key in new style synthesizer #12765

Merged
merged 2 commits into from
Feb 4, 2021

Conversation

kokachev
Copy link
Contributor

@kokachev kokachev commented Jan 29, 2021

  • This change fixes the issue with new style synthesizer, when s3 files assets are uploaded without file extension. This was breaking integration with some services, in particular Glue, which requires jar files to have "jar" extension in order to compile.
  • Legacy synthesizer was creating s3 key with extension, so this change effectively aligns old and new synthesizers.

fixes #12740


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

…izer

- This change fixes the issue with new style synthesizer, when s3 files assets are uploaded without file extension. This was breaking integration with some services, in particular Glue, which requires jar files to have "jar" extension in order to compile.
- Legacy synthesizer was uploading files with extensions, so this changes effectively aligns old and new synthesizers.
fixes aws#12740
@gitpod-io
Copy link

gitpod-io bot commented Jan 29, 2021

@github-actions github-actions bot added the @aws-cdk/core Related to core CDK functionality label Jan 29, 2021
rix0rrr
rix0rrr previously approved these changes Feb 4, 2021
@mergify mergify bot dismissed rix0rrr’s stale review February 4, 2021 16:51

Pull request has been modified.

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: c2c010c
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify
Copy link
Contributor

mergify bot commented Feb 4, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit 77b9d39 into aws:master Feb 4, 2021
rix0rrr added a commit that referenced this pull request Feb 5, 2021
In #12765, a bug was introduced where there was a mismatch between
the file entry written to the asset manifest for the stack template,
and the template location written to the cloud assembly, thereby
causing all deployments to fail.

The error was "Access Denied" (because that's what S3 says when it
doesn't want to tell you "File not found").

Fix the inconsistency.
mergify bot pushed a commit that referenced this pull request Feb 5, 2021
In #12765, a bug was introduced where there was a mismatch between
the file entry written to the asset manifest for the stack template,
and the template location written to the cloud assembly, thereby
causing all deployments to fail.

The error was "Access Denied" (because that's what S3 says when it
doesn't want to tell you "File not found").

Fix the inconsistency.


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
NovakGu pushed a commit to NovakGu/aws-cdk that referenced this pull request Feb 18, 2021
…izer (aws#12765)

- This change fixes the issue with new style synthesizer, when s3 files assets are uploaded without file extension. This was breaking integration with some services, in particular Glue, which requires jar files to have "jar" extension in order to compile.
- Legacy synthesizer was creating s3 key with extension, so this change effectively aligns old and new synthesizers.

fixes aws#12740


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
NovakGu pushed a commit to NovakGu/aws-cdk that referenced this pull request Feb 18, 2021
In aws#12765, a bug was introduced where there was a mismatch between
the file entry written to the asset manifest for the stack template,
and the template location written to the cloud assembly, thereby
causing all deployments to fail.

The error was "Access Denied" (because that's what S3 says when it
doesn't want to tell you "File not found").

Fix the inconsistency.


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/core Related to core CDK functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(core): newStyleStackSynthesis=true causes files upload to s3 without file extension
3 participants