https://pulumi.com logo
#aws
Title
# aws
s

salmon-rocket-40180

06/16/2023, 2:22 AM
Hello there! I've been using
pulumi
for ~1 year now and I'm running into an issue trying to create an AppSync Javascript resolver: • https://www.pulumi.com/registry/packages/aws/api-docs/appsync/resolver/#resolverruntimehttps://docs.aws.amazon.com/appsync/latest/devguide/tutorial-js-resolvers.html When I try to create the following object:
Copy code
aws.appsync.Resolver(
        f"{stack_name}-update-organization",
        api_id=graphql_api.id,
        field="updateOrganization",
        type="Mutation",
        data_source=ddb_datasource.name,
        code=open("resources/appsync/resolvers/src/update_chatbot.js").read(),
        runtime=aws.appsync.ResolverRuntimeArgs(
            name="APPSYNC_JS", runtime_version="1.0.0"
        ),
    )
I get hit with:
Copy code
aws:appsync:Resolver (kiminoban-staging-update-organization-chatbot-config):
    error: 1 error occurred:
    	* updating urn:pulumi:staging::kiminoban-backend::aws:appsync/resolver:Resolver::kiminoban-staging-update-organization-chatbot-config: 1 error occurred:
    	* updating AppSync Resolver (vz5xziugr5h4bpv3dhlhfzkrji-Mutation-updateOrganizationChatbotConfig): BadRequestException: The provided runtime is not supported.
    {
      RespMetadata: {
        StatusCode: 400,
        RequestID: "8d552e14-d39c-4295-8174-8a3a89921f2d"
      },
      Message_: "The provided runtime is not supported."
    }
This is despite the two runtime values being literally the only ones supported according to Pulumi (see attached screenshot). I'm not finding anything in Github issues or anywhere really, anybody has any experience with this?
19 Views