Closed shamikatamazon closed 2 years ago
While fixing this bug, I came across another one which was a part of the same commit
⠴ Updating resources in the cloud. This may take a few minutes...
CREATE_FAILED rSnsInvokeLambdaSetup AWS::CloudFormation::Stack Mon Sep 27 2021 22:19:44 GMT+0000 (Coordinated Universal Time) Parameters: [env] do not exist in the template
CREATE_IN_PROGRESS rMediaConvertTemplate AWS::CloudFormation::Stack Mon Sep 27 2021 22:19:44 GMT+0000 (Coordinated Universal Time) Resource creation Initiated
CREATE_IN_PROGRESS rS3InputBucket AWS::CloudFormation::Stack Mon Sep 27 2021 22:19:44 GMT+0000 (Coordinated Universal Time) Resource creation Initiated
CREATE_IN_PROGRESS rS3OutputBucket AWS::CloudFormation::Stack Mon Sep 27 2021 22:19:45 GMT+0000 (Coordinated Universal Time) Resource creation Initiated
⠧ Updating resources in the cloud. This may take a few minutes...
Fixing this as a part of this commit also
Wanted to pass this on as the CREATE_FAILED rSnsInvokeLambdaSetup issue is still not corrected. Spent much time trying to figure this is out despite using the latest amplify-category-video merge. The issue I believe is that the template file SnsSetup.template.ejs is actually missing the references to [GraphQLAPIId, GraphQLEndpoint] like they exist in the other template files for InputTriggerLambda.template & OutputTriggerLambda.template. Need to add them back in as below. I tested this out and finally was able to get cloud resources to deploy properly with SNS on.
Also worthy of note, when amplify push'ing each module by one at a time, which I used to troubleshoot this issue (Auth / API / Video), the video resources are not deployed properly (S3 buckets, particularly) unless you do an amplify push for the whole stack.
Parameters:
env:
Type: String
Description: The environment name. e.g. Dev, Test, or Production.
Default: NONE
pS3:
Type: String
Description: Store template and lambda package
AllowedPattern: "[a-zA-Z][a-zA-Z0-9-_]*"
Default: amazonbooth
pSourceFolder:
Type: String
Description: Store template and lambda package
AllowedPattern: "[a-zA-Z][a-zA-Z0-9-_]*"
Default: vod-helpers
pFunctionName:
Type: String
Description: Name of function
Default: arn-default
pFunctionHash:
Type: String
Description: FunctionHash
Default: default
pSnsTopicName:
Type: String
Description: FunctionHash
Default: default
GraphQLAPIId:
Type: String
Description: API ID
Default: NONE
GraphQLEndpoint:
Type: String
Description: API Endpoint URL
Default: NONE
and
rMediaconvertStatusLambda:
Type: AWS::Lambda::Function
Properties:
FunctionName: !Ref pFunctionName
Description: Invoked on MediaConvert status events
Handler: index.handler
Role: !GetAtt rMediaconvertStatusLambdaRole.Arn
Runtime: nodejs14.x
Timeout: 30
Environment:
Variables:
ENV: !Ref env
GRAPHQLID: !Ref GraphQLAPIId
GRAPHQLEP: !Ref GraphQLEndpoint
Code:
S3Bucket: !Ref pS3
S3Key: !Sub
- vod-helpers/MediaConvertStatusLambda-${hash}.zip
- { hash: !Ref pFunctionHash }
While fixing this bug, I came across another one which was a part of the same commit
⠴ Updating resources in the cloud. This may take a few minutes... CREATE_FAILED rSnsInvokeLambdaSetup AWS::CloudFormation::Stack Mon Sep 27 2021 22:19:44 GMT+0000 (Coordinated Universal Time) Parameters: [env] do not exist in the template CREATE_IN_PROGRESS rMediaConvertTemplate AWS::CloudFormation::Stack Mon Sep 27 2021 22:19:44 GMT+0000 (Coordinated Universal Time) Resource creation Initiated CREATE_IN_PROGRESS rS3InputBucket AWS::CloudFormation::Stack Mon Sep 27 2021 22:19:44 GMT+0000 (Coordinated Universal Time) Resource creation Initiated CREATE_IN_PROGRESS rS3OutputBucket AWS::CloudFormation::Stack Mon Sep 27 2021 22:19:45 GMT+0000 (Coordinated Universal Time) Resource creation Initiated ⠧ Updating resources in the cloud. This may take a few minutes...
Fixing this as a part of this commit also
This is fixed in #324
Deploying it soon
Describe the bug amplify push fails with error
A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
Expected behavior Amplify push succeeds
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.