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

AWS CloudFormation templates do not wait for role creation to complete, resulting in errors on subsequent steps (e.g. Lambda function creation) #289

Open
1 of 3 tasks
cybr-ajm opened this issue Aug 26, 2021 · 2 comments

Comments

@cybr-ajm
Copy link

cybr-ajm commented Aug 26, 2021

Summary

AWS CloudFormation templates do not wait for role creation to complete, resulting in errors on subsequent steps (e.g. Lambda function creation.

Steps to Reproduce

Use the v12.2.1 FullDeployment yaml to create a new environment with default settings.

Expected Results

CloudFormation template should complete fully and create all necessary resources.

Actual Results

CloudFormation template fails with errors such as:
The following resource(s) failed to create: [StorePasswordLambda, DeletePasswordLambda, RemovePermissionLambda]. Rollback requested by user.
Template error: IAM role pasoncloud-LambdaDeployRole-1TNJXSYRDHUMR doesn't exist
Template error: IAM role pasoncloud-LambdaRemovePermissionsRole-LPI7QK528XKR doesn't exist

Reproducible

  • Always - Tried 6 times in a row with same error
  • Sometimes
  • Non-Reproducible

Version/Tag number

12.2.1 CFT

Environment setup

Fresh AWS account environment

Additional Information

When the CloudFormation template fails with those errors, I can go to IAM and see that the roles were perfectly created. I think the issue is that it can take IAM a few seconds to make the role fully available, but the CloudFormation template does not wait for this to occur and just attempts to immediately use the roles which causes it to fail if there is any delay in IAM.

@cybr-ajm cybr-ajm changed the title AWS CloudFormation templates do not wait for role creation to complete, resulting in errors on subsequent steps (e.g. Lambda function creation. AWS CloudFormation templates do not wait for role creation to complete, resulting in errors on subsequent steps (e.g. Lambda function creation) Aug 26, 2021
@pelegor
Copy link
Collaborator

pelegor commented Jan 5, 2022

I can't manage to reproduce this issue, everything seems to work fine. Are you still having this issue? Have you tried using 12.2.3 version?

@cybr-ajm
Copy link
Author

cybr-ajm commented Jan 5, 2022 via email

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

No branches or pull requests

3 participants