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

Gets rollback automatically while creating infrastructure #488

Open
viku85 opened this issue Jun 3, 2021 · 14 comments
Open

Gets rollback automatically while creating infrastructure #488

viku85 opened this issue Jun 3, 2021 · 14 comments

Comments

@viku85
Copy link

viku85 commented Jun 3, 2021

When using api-gateway-dev-portal it executes for a while and then gets rollback automatically.

rollback-screenshot

Can someone help out with the reason or any guidelines to resolve it?

@ghost
Copy link

ghost commented Jun 8, 2021

Could you provide more details about the error it's encountering? You should be able to look in the stack and see what resource failed as well as what error caused it to roll back the deployment.

@praveenrengarajan
Copy link

praveenrengarajan commented Jun 21, 2021

@amazon-meaisiah facing the same issue
image
Note: am using my personal AWS account (administrator)

@ghost
Copy link

ghost commented Jun 28, 2021

@praveenrengarajan Could you show me the precise error that first occurred before the rest of the deployment was rolled back?

I see the following were not created:

  • DevPortalSiteS3Bucket
  • CustomersTable
  • CognitoUserPoolClientSettingsBackingFnRole
  • CatalogUpdaterLambdaExecutionRole
  • CloudFrontOriginAccessIdentity
  • AssetUploaderLambdaExecutionRole
  • LambdaEdgeFunctionRole
  • CognitoUserPoolDomainBackingFnRole
  • CloudFrontEdgeReplicatorRple
  • LambdaCommonLayerb90953e8ec
  • PreLoginAccountsTable
  • CognitoPreSignUpTriggerExecutionRole

I see the following were cancelled:

  • DevPortalSiteS3Bucket
  • CognitoUserPoolClientSettingsBackingFnRole
  • CatalogUpdaterLambdaExecutionRole
  • CloudFrontOriginAccessIdentity
  • AssetUploaderLambdaExecutionRole
  • LambdaEdgeFunctionRole
  • CognitoUserPoolDomainBackingFnRole
  • CloudFrontEdgeReplicatorRple
  • LambdaCommonLayerb90953e8ec
  • PreLoginAccountsTable
  • CognitoPreSignUpTriggerExecutionRole

What was the failure reason for CustomersTable?

@mbreuker
Copy link

mbreuker commented Jul 14, 2021

I also get an automatic rollback with this error:

Schermafbeelding 2021-07-14 om 16 25 10

@mbreuker
Copy link

Found the solution to my error in #425

@mbreuker
Copy link

@amazon-meaisiah facing the same issue
image
Note: am using my personal AWS account (administrator)

You need to make sure that the S3 buckets that you specify, don't already exist. The first time I tried deploying the application I used existing buckets which caused a rollback.

@Jyoti-Singh-XFT
Copy link

I am still facing the same issue even after adding the fix mentioned in #425

@ghost
Copy link

ghost commented Aug 11, 2021

@Jyoti-Singh-XFT Have you checked that the above S3 buckets don't already exist? If so, could you give some more details on the precise error you're running into (specifically, what's causing the rollbacks)?

@praveenrengarajan
Copy link

image

Where to update the config in the source code that all resources for dev-portal should be in ap-southeast-2 ??

@ghost
Copy link

ghost commented Sep 15, 2021

@praveenrengarajan What command are you running to try to deploy it? If you're using SAM, you should be able to just use sam package --region ap-southeast-2 + sam deploy --region ap-southeast-2 and call it a day. If you're using node run release per the local development instructions, #505 should unblock you once it's merged.

@praveenrengarajan
Copy link

@amazon-meaisiah will cloudfront lambda@edge deploy in ap-southeast-2 ?

@ghost
Copy link

ghost commented Sep 15, 2021

No, it must be in us-east-1 due to CloudFront restrictions. The custom resource in the template used for creating this essentially exists only to work around this SAM issue, where they don't really have special support for Lambda@Edge beyond a very rudimentary level.

@talipini
Copy link

Hi - I am getting exactly same errors. Any help?

@asheroto
Copy link

I'm having the same error, followed this verbatim, clicked on https://serverlessrepo.aws.amazon.com/applications/arn:aws:serverlessrepo:us-east-1:563878140293:applications~api-gateway-dev-portal (didn't use SAM), except that I got an error that says CognitoDomainNameOrPrefix is required so I set it.

Every time I deploy it it just rolls back.

image

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

6 participants