salmon-rocket-40180
06/16/2023, 2:22 AMpulumi
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/#resolverruntime
• https://docs.aws.amazon.com/appsync/latest/devguide/tutorial-js-resolvers.html
When I try to create the following object:
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:
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?No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by