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

feat(amplify): Add support for custom headers in the App #17102

Merged
merged 6 commits into from
Oct 25, 2021
Merged

feat(amplify): Add support for custom headers in the App #17102

merged 6 commits into from
Oct 25, 2021

Conversation

ayush987goyal
Copy link
Contributor

feat(amplify): Add support for custom headers in the App

closes #17084

Refs:

  1. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-app.html#cfn-amplify-app-customheaders
  2. https://docs.aws.amazon.com/amplify/latest/userguide/custom-headers.html
  3. https://www.npmjs.com/package/yaml

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

@gitpod-io
Copy link

gitpod-io bot commented Oct 21, 2021

@github-actions github-actions bot added the @aws-cdk/aws-amplify Related to AWS Amplify label Oct 21, 2021
@ayush987goyal
Copy link
Contributor Author

@skinny85 I made the appropriate changes related to hoisting and NOTICE file but still seeing errors in the @aws-cdk/aws-amplify-alpha build regarding the same. Could you please help me out on what needs to be done apart from the current changes?

@skinny85
Copy link
Contributor

@ayush987goyal I think you're very close. What you need to do is add the following lines to the root package.json:

      "@aws-cdk-alpha/aws-amplify-alpha/yaml",
      "@aws-cdk-alpha/aws-amplify-alpha/yaml/**",

This needs to be done in addition to the lines you already added there, for @aws-cdk/aws-amplify/yaml.

Copy link
Contributor

@skinny85 skinny85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Putting in "Request changes" to clear this one from my To-Do list. @ayush987goyal please re-request my review when this is ready!

@mergify mergify bot dismissed skinny85’s stale review October 23, 2021 02:07

Pull request has been modified.

Copy link
Contributor

@skinny85 skinny85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general looks good @ayush987goyal, but I'd like some changes to the API and naming before we merge this in 🙂.

package.json Outdated Show resolved Hide resolved
packages/@aws-cdk/aws-amplify/lib/app.ts Outdated Show resolved Hide resolved
packages/@aws-cdk/aws-amplify/lib/app.ts Outdated Show resolved Hide resolved
packages/@aws-cdk/aws-amplify/lib/app.ts Outdated Show resolved Hide resolved
packages/@aws-cdk/aws-amplify/lib/app.ts Outdated Show resolved Hide resolved
@mergify mergify bot dismissed skinny85’s stale review October 25, 2021 18:23

Pull request has been modified.

Copy link
Contributor

@skinny85 skinny85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great @ayush987goyal!

@mergify
Copy link
Contributor

mergify bot commented Oct 25, 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).

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

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

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

@mergify mergify bot merged commit 9f3abd7 into aws:master Oct 25, 2021
@mergify
Copy link
Contributor

mergify bot commented Oct 25, 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).

@ayush987goyal ayush987goyal deleted the pr/amplify-custom-headers branch October 26, 2021 02:48
TikiTDO pushed a commit to TikiTDO/aws-cdk that referenced this pull request Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-amplify Related to AWS Amplify
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(aws-amplify): make customHeaders configurable.
3 participants