-
Notifications
You must be signed in to change notification settings - Fork 824
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
app deploy fails with "lambda execution role already exists", while in reality it doesn't #13567
Comments
Hey @alonsnir 👋 thanks for raising this! Does the output of the AWS CLI command change without the trailing space on the role name? - aws iam list-roles --query 'Roles[?RoleName==`aruggaLambdaRole5704a3e1-test `].RoleName'
+ aws iam list-roles --query 'Roles[?RoleName==`aruggaLambdaRole5704a3e1-test`].RoleName' As a few follow-up questions:
|
hey @josefaidt
It looks like there are some leftovers after environment deletion which prevents re-deployment with the same name |
Hey @alonsnir can you try removing the orphaned role and re-attempt deployment? |
Hi @josefaidt |
Hey @alonsnir ah yes, that's right. Would you mind sharing the project ID output from Additionally, do you see multiple stack events for this execution role in the AWS CloudFormation console, or multiple references to these two roles? Lastly, can you try removing and re-adding the affected Functions? |
Hi @josefaidt What are slack events in this context? Where do I see them in the CF console? I have removed and then re-added the functions but same result:
|
Hey @alonsnir there's an "Events" tab when you select a CloudFormation stack |
@josefaidt so I have found the leftover resources and after manual deletion all back to normal. |
|
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
v20.9.0
Amplify CLI Version
12.10.1
What operating system are you using?
Ubintu
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No
Describe the bug
already exists? let me check:
an empty list returned.
Same if i search for that role in the Console - there is no such a role exists
Expected behavior
provide correct information
Reproduction steps
init an application, add lambda function, push
Project Identifier
No response
Log output
Additional information
No response
Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: