1

Trying to add mapping for an integration to pass the websocket connectionId to my http backend. Below command works fine in cloud shell but fails in AWS CLI on Windows.

aws apigatewayv2 update-integration --integration-id foobar --api-id fooapi --request-parameters 'integration.request.header.connectionId'='context.connectionId'

This is the error message

Error parsing parameter '--request-parameters': Expected: '=', received: ''' for input:
'integration.request.header.connectionId'='context.connectionId'

Does anyone know the right syntax to issue in CLI? I tried escaping and double escaping the single quotes. No luck. Making it double quotes will execute but the intended result (the mapping being created) does not happen

4

2 Answers 2

1

I discovered that simply using double quotes instead of single quotes worked:

--request-parameters "integration.request.header.connectionId"="context.connectionId"
Sign up to request clarification or add additional context in comments.

Comments

0

Please Don't use ' in between of '; you used there four times '.

you can write this command like this

--request-parameters 'integration.request.header.connectionId=context.connectionId'

because you are using here argument --request-parameters

1 Comment

This gives the same error

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.