日記作成Lambda から FlowerSelectLambda を呼び出す設定をCD #20
deploy.yml
on: push
node-lint
/
biome
26s
set-environment
0s
pr-agent
/
pr-agent
actions-timeline
3s
Annotations
2 errors
test/snapshot.test.ts > Snapshot test:
src/backend/test/snapshot.test.ts#L18
Error: Template is undeployable, these resources have a dependency cycle: ApiDiaryApiDeploymentCA0DCBF532677587787cfd0f4a098a1bce3727a4 -> ApiDiaryApidiaryPOST0B03467C -> DiarydiaryCreateLambda0AD0EFFF -> FlowerflowerSelectFunctionD7EEBADA -> FlowerflowerSelectFunctionServiceRoleDefaultPolicy7F8366A3 -> DiarydiaryCreateLambda0AD0EFFF:
{
"ApiDiaryApiDeploymentCA0DCBF532677587787cfd0f4a098a1bce3727a4": {
"Type": "AWS::ApiGateway::Deployment",
"Properties": {
"Description": "Automatically created by the RestApi construct",
"RestApiId": {
"Ref": "ApiDiaryApi1E03348A"
}
},
"DependsOn": [
"ApiDiaryApibouquetGET7AC93032",
"ApiDiaryApibouquetPOST2DEB7999",
"ApiDiaryApibouquet8BAEBF58",
"ApiDiaryApidiaryDELETE81EA9C37",
"ApiDiaryApidiaryGET9A212B54",
"ApiDiaryApidiaryOPTIONS118FD5D0",
"ApiDiaryApidiaryPOST0B03467C",
"ApiDiaryApidiaryPUT140468F7",
"ApiDiaryApidiary4B91FACA",
"ApiDiaryApiflowerGETEAC01B09",
"ApiDiaryApiflowerOPTIONS2A81112B",
"ApiDiaryApiflower7C61878D",
"ApiDiaryApititleGET40FCE039",
"ApiDiaryApititle5FEB75D0",
"ApiDiaryApiRequestValidator4DFB42AA",
"ApiDiaryApivalidator04323B87"
]
},
"ApiDiaryApidiaryPOST0B03467C": {
"Type": "AWS::ApiGateway::Method",
"Properties": {
"AuthorizationType": "COGNITO_USER_POOLS",
"AuthorizerId": {
"Ref": "ApiCognitoAuthorizer23B91BA2"
},
"HttpMethod": "POST",
"Integration": {
"IntegrationHttpMethod": "POST",
"Type": "AWS_PROXY",
"Uri": {
"Fn::Join": [
"",
[
"arn:",
{
"Ref": "AWS::Partition"
},
":apigateway:",
{
"Ref": "AWS::Region"
},
":lambda:path/2015-03-31/functions/",
{
"Fn::GetAtt": [
"DiarydiaryCreateLambda0AD0EFFF",
"Arn"
]
},
"/invocations"
]
]
}
},
"ResourceId": {
"Ref": "ApiDiaryApidiary4B91FACA"
},
"RestApiId": {
"Ref": "ApiDiaryApi1E03348A"
}
}
},
"DiarydiaryCreateLambda0AD0EFFF": {
"Type": "AWS::Lambda::Function",
"Properties": {
"Code": {
"S3Bucket": {
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
},
"S3Key": "e096c41f2419696d6fbcbf04fba3826c4bd9754822841bd1141830e34bfdee35.zip"
},
"Environment": {
"Variables": {
"TABLE_NAME": {
"Ref": "FlowerdiaryContentsTableCA7C6940"
},
"FLOWER_SELECT_FUNCTION_NAME": {
"Ref": "FlowerflowerSelectFunctionD7EEBADA"
}
}
},
"Handler": "diary_create.lambda_handler",
"Role": {
"Fn::GetAtt": [
"DiarydiaryCreateLambdaServiceRole86C8152B",
"Arn"
]
},
"Runtime": "python3.11"
},
"DependsOn": [
"DiarydiaryCreateLambdaServiceRoleDefaultPolicy0A19DF93",
"DiarydiaryCreateLambdaServiceRole86C8152B"
]
},
"FlowerflowerSelectFunctionD7EEBADA": {
"Type": "AWS::Lambda::Function",
"Properties": {
"Code": {
"S3Bucket": {
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
},
"S3Key": "7baf741907aadc827c280da233b5746f492141588435c1586fe4a3e0a0d45323.zip"
},
"Environment": {
"Variables": {
"DIARY_TABLE_NAME": {
"Ref": "FlowerdiaryContentsTableCA7C6940"
},
"GENERATIVE_AI_TABLE_NAME": {
"Ref": "FlowergenerativeAiTable021268D8"
},
"FLOWER_BUCKET_NAME": {
"Ref": "FlowerflowerImageBucket46E60C76"
}
}
},
"Handler": "flower_select.lambda_handler",
"Role": {
"Fn::GetAtt": [
"FlowerflowerSelectFunctionServiceRoleDF0A249F",
|
node-test / test
Process completed with exit code 1.
|