Вот полная ошибка: < /p>
Код: Выделить всё
Error:
Could not resolve "appsyncUrl" environment variable: Unsupported environment variable format: {'Fn::GetAtt': [ 'GraphQlApi', 'GraphQLUrl' ] }
< /code>
и ошибка определяет конфигурацию из Serverless.yml & invokelocalvar.yml: < /p>
Фактический invokelocalvar.yml: < /p>
PROD:
userPoolId: !ImportValue IQOS-UserPoolId-${self:custom.stage}
appsyncUrl: !GetAtt GraphQlApi.GraphQLUrl
appsyncApiKey: !GetAtt GraphQlApiKeyDefault.ApiKey
clientId: !ImportValue "IQOS-UserWebclient-${self:custom.stage}"
LOCAL_PRE:
userPoolId: ap-southeast-1_UWp5U3ImF
appsyncUrl: https://lgrsmv2pgvdexogm2enpphiwji.appsync-api.ap-southeast- 1.amazonaws.com/graphql
appsyncApiKey: da2-5mu4rrerq5fofcseyfal3zfzm4
clientId: 49jgb26kp598r7g244tlfnh5ie
LOCAL_PROD:
userPoolId: ap-southeast-1_TLwFqBRKT
appsyncUrl: https://dsjyeun425bl7knwvquyejngwu.appsync-api.ap-southeast-1.amazonaws.com/graphql
appsyncApiKey: da2-mwji6z7y3nbovhzwzhnd3ahaeu
clientId: 4obtjmi3sq4lfbvlo1l149359m
< /code>
Это от serverless.yml: < /p>
Фактическая конфигурация из Serverless (в рамках среды) < /p>
appsyncUrl: !GetAtt GraphQlApi.GraphQLUrl
appsyncApiKey: !GetAtt GraphQlApiKeyDefault.ApiKey
Подробнее здесь: https://stackoverflow.com/questions/797 ... serverless