serverless-application-model: Template error: IAM role stack-Lambda-XXXXX doesn't exist
Description:
This is a re-open of issue #641 as we are experiencing this issue again.
Creating a IAM Role resource and referencing properties (.arn) causes error
Template error: IAM role stack-Lambda-XXXXX doesn't exist
Steps to reproduce:
Run CFN template with IAM Role resource and resource referencing the IAM Role arn.
Observed result:
Resource referencing the iam role arn throws error Template error: IAM role stack-Lambda-XXXXX doesn’t exist
Expected result:
Creation of IAM role followed by secondary resource with IAM role arn reference.
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
- OS: N/A
- If using SAM CLI,
sam --version
: - AWS region: eu-central-1
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 14
- Comments: 20 (3 by maintainers)
same issue - i am directly using Cloudformation. I have an IAM Role and ECS Task Definition specified within same template. Task definition references the role so the Role obviously gets created before the Task definition.
I do not see any problem on health page yet.
I’ve opened ticket with AWS just to make sure they notice
To anyone only reading the bottom of the thread - whenever this happens, it’s because there’s some sort of IAM issue/outage.
See also #641
Working for me now. Try again
Same issue - happening while deploying CF which creates IAM Roles for front end deployment. Verified the health page too, same as @simi-obs nothing yet.
In the past this has been an issue on AWS’s side of things (see #641 ). I don’t use this library, I was using Cloudformation directly and was googling this error and came across this issue.
Don’t worry folks, AWS Dashboard says no error. It must be karma.
BTW - us-east-1 failing too
Also struggling with a similar issue in us-east-2
It seems like it is global across all-region, same error in us-west-2.