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.

How to update AWS::AppSync::GraphQLApi authorization type to AWS_IAM?

See original GitHub issue

** Which Category is your question related to? ** api

** What AWS Services are you utilizing? ** AWS AppSync

** Provide additional details e.g. code snippets ** I try to edit the cloudformation-template.json as below:

        "GraphQLAPI": {
            "Type": "AWS::AppSync::GraphQLApi",
            "Properties": {
                "Name": {
                    "Ref": "AppSyncApiName"
                },
                "AuthenticationType": "AWS_IAM"
            }
        },

And run amplify push. But the gql-compile transform always generate a new cloudformation template with API_KEY (or AMAZON_COGNITOR_USER_POOLS) as previous CLI configuration. So how to update AWS::AppSync::GraphQLApi authorization type to AWS_IAM?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
kaustavghosh06commented, Sep 19, 2019

We launched multi-auth support for AppSync API (which included public APIs - with API Keys + IAM) as a part of our CLI version 3.8+. Please take a look at our documentation around it out here for more info - https://aws-amplify.github.io/docs/cli-toolchain/graphql#public-authorization

0reactions
github-actions[bot]commented, May 27, 2021

This issue has been automatically locked since there hasn’t been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels for those types of questions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How AWS AppSync works with IAM
Attribute-based access control (ABAC) is an authorization strategy that defines permissions based on attributes. In AWS, these attributes are called tags. You ...
Read more >
Using multiple authorization types with AWS AppSync ...
To add more authorization types using the AWS AppSync console, launch the console, choose your GraphQL API, then choose Settings and scroll to ......
Read more >
GraphQL API Security with AWS AppSync and Amplify
AppSync APIs must have a default authorization mode defined globally. It is possible to add additional authorization modes in the same API as ......
Read more >
Authorization use cases - AWS AppSync
AWS AppSync uses resources in your own account and threads identity (user/role) information into the GraphQL request and response as a context object,...
Read more >
Introducing Lambda authorization for AWS AppSync GraphQL ...
Setting up AWS Lambda as authorization mode in AppSync · Go to the Settings section of your AppSync API from the left side...
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