question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[aws-appsync] Adding AuthorizationConfig within construction HttpDataSource of the appsync module.

See original GitHub issue

Adding AuthorizationConfig within construction HttpDataSource of the appsync module.

Use Case

Integrating AWS StepFunctions to the appsync as HTTP Datasource. Current(24, August 2021) AWS CDK can not configure the authorizationConfig during creating data source. Currently, That can do only from the AWS-CLI. (create-data-source command) https://docs.aws.amazon.com/cli/latest/reference/appsync/create-data-source.html

Related AWS Blogs. https://aws.amazon.com/blogs/mobile/invoke-aws-services-directly-from-aws-appsync/

Proposed Solution

I’d like to call the addHttpDataSource method with authorizationConfig object.

    api.addHttpDataSource('ds', endpoint, {
      name: 'custom',
      description: 'custom description',
      authorizationConfig: {
        authorizationType: 'AWS_IAM',
        awsIamConfig: {
          signingRegion: 'us-east-1',
          signingServiceName: 'states'
        }
      }
    });

Other

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change

This is a 🚀 Feature Request

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
haruharuharubycommented, Aug 25, 2020

@BryanPan342 I added PR for this issue. I need to fix some CI checks. I will fix it later.

https://github.com/aws/aws-cdk/pull/9971

1reaction
BryanPan342commented, Aug 25, 2020

nvm it looks like you did it already

Read more comments on GitHub >

github_iconTop Results From Across the Web

AWS::AppSync::DataSource AuthorizationConfig
The AuthorizationConfig property type specifies the authorization type and configuration for an AWS AppSync http data source.
Read more >
appsync to appsync integration - http datasource - AWS IAM
Question: How to setup the role / roles / appsync so it's working when module A and module B are in different AWS...
Read more >
Lessons learned: AWS AppSync Subscriptions
We are using AppSync in our Purple Apps to power application APIs. Learn more in Purple Stack API docs. The AppSync Subscriptions. First...
Read more >
terraform-aws-modules/appsync/aws
Terraform module to create AWS AppSync resources ... aims to simplify all operations when working with the serverless in Terraform.
Read more >
AWS AppSync: Implementing the Simple Web Service - AWS Tip
The popular Simple Web Service pattern in Serverless is typically implemented with a RESTful API Gateway endpoint, a Lambda proxy integration and a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found