Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resource with id [CommentOnPullRequestFunction] is invalid #1

Open
condescendent opened this issue Aug 20, 2020 · 3 comments
Open

Resource with id [CommentOnPullRequestFunction] is invalid #1

condescendent opened this issue Aug 20, 2020 · 3 comments

Comments

@condescendent
Copy link

Jasons-Air:codebuild-webinar jason$ aws cloudformation deploy --template-file ./templates/infrastructure.yaml --stack-name $STACK_NAME --capabilities CAPABILITY_IAM

Waiting for changeset to be created..

Failed to create the changeset: Waiter ChangeSetCreateComplete failed: Waiter encountered a terminal failure state Status: FAILED. Reason: Transform AWS::Serverless-2016-10-31 failed with: Invalid Serverless Application Specification document. Number of errors found: 2. Resource with id [CommentOnPullRequestFunction] is invalid. 'CodeUri' is not a valid S3 Uri of the form 's3://bucket/key' with optional versionId query parameter. Resource with id [ValidateAndMergePullRequestFunction] is invalid. 'CodeUri' is not a valid S3 Uri of the form 's3://bucket/key' with optional versionId query parameter.
Jasons-Air:codebuild-webinar jason$

@condescendent
Copy link
Author

I tried to provision the whole resource with the template but failed with the above 2 erros, any help on this? I would like to know how to integrate step function with code build to to automatic unit testing. Thanks in advance.

@richardhboyd
Copy link
Owner

Oh, sorry. it should be sam deploy --guided then follow the prompts.

@condescendent
Copy link
Author

so this template is for sam instead of cloudformation ? I watched your video and would like to reproduce the envionrment to learn codebuild and step function. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants