jlhood / github-codebuild-logs

Serverless App that publishes CodeBuild build logs to a publicly accessible location
MIT License
88 stars 22 forks source link

Deployment fails with "AWS::Events::Rule does not support attribute {Arn}" error #7

Closed trivikr closed 5 years ago

trivikr commented 5 years ago

Describe the bug Deployment of the Serverless Application Repository fails with the following error:

[Error] /Resources/ProcessBuildEventsBuildStatusPermission/Properties/SourceArn/Fn::GetAtt: Resource type AWS::Events::Rule does not support attribute {Arn}. Rollback requested by user.

To Reproduce

Expected behavior The Cloudformation stack serverlessrepo-github-codebuild-logs gets deployed

Screenshots Screen Shot 2019-10-03 at 3 50 07 PM

trivikr commented 5 years ago

I was able to deploy it on my personal account, the error appears on team account where CodeBuild build script is

jlhood commented 5 years ago

@trivikr What region were you deploying this in? The error you're pointing out was by resources generated by SAM. It's possible this is a bug in this app, but I'm also concerned, because SAM just had a new release, and I hope this isn't a regression. Can you retry deploying to your personal account and see if you can still successfully deploy it?

jlhood commented 5 years ago

Did some more digging. This isn't a SAM issue, but seems like it could be a CloudFormation issue. I've contacted the CloudFormation team to take a look asap.

trivikr commented 5 years ago

What region were you deploying this in?

us-west-2

Can you retry deploying to your personal account and see if you can still successfully deploy it?

Deletion of Cloudformation stack, and deploy of Serverless Application Repository is successful on my personal account

jlhood commented 5 years ago

The CloudFormation issue causing this error has been resolved. You should be able to deploy the app successfully now. Sorry for the inconvenience!

trivikr commented 5 years ago

Thank you @jlhood for a quick follow up!