CDK deployment failure reason unclear

0

Hi,

My CDK deployment failed with Internal Failure as the reason, and on the CloudFormation console, the events only shows

The following resource(s) failed to create: [xxxxBucketEncryptionKeyAlias824C7758, xxxxMyPipelineEA4026F6]

with no additional information.

Where can I see the reasons behind failures to create those resources? Thank you!

1 Answer
0

Hi, I'd suggest to run aws cloudformation describe-stack-events (see https://awscli.amazonaws.com/v2/documentation/api/latest/reference/cloudformation/describe-stack-events.html) It may provide you additional details on the root cause of your issue.

The value of --stack-name should be the name of the failing stack that was deployed by CDK: you'll find it in the logs of your cdk deploy

Best,

Didier

profile pictureAWS
EXPERT
answered 9 months ago
  • Thanks for the response. Having done that, I still don't see any logs indicating the cause of the error. Is there another source for looking up the failure logs?

  • This is the only event that's not on the cloud formation console i think. {"ArtifactStore":{"Type":"S3","EncryptionKey":{"Type":"KMS","Id":"arn:aws:kms:us-west-2:363938657611:key/86e85521-abd2-4935-be8f-3ab2d68a5b23"},"Location":"momentnowbackendproducti-ecscicdmypipelineartifac-1ktu594fn2g6h"},"Stages":[{"Actions":[{"ActionTypeId":{"Owner":"ThirdParty","Category":"Source","Version":"1","Provider":"GitHub"},"Configuration":{"OAuthToken":"{{resolve:secretsmanager:github-oauth-token:SecretString:::}}","PollForSourceChanges":"false","Owner":"moment-now","Repo":"backend-python","Branch":"production"},"OutputArtifacts":[{"Name":"Artifact_Source_GitHub_Source"}],"RunOrder":"1","Name":"GitHub_Source"}],"Name":"Source"},{"Actions":[{"ActionTypeId":{"Owner":"AWS","Category":"Build","Version":"1","Provider":"CodeBuild"},"Configuration":{"EnvironmentVariables":"[{\"name\":\"ECR_IMAGE_URI\",\"type\":\"PLAINTEXT\",\"value\":\"363938657611.dkr.ecr.us-west-2.amazonaws.com/backend-python:prod\"}]","ProjectName":"ECSCICDFastAPIBuildProjectC-LJ0BXpnin1ou"},"InputArtifacts":[{"Name":"Artifact_Source_GitHub_Source"}],"OutputArtifacts":[{"Name":"Artifact_Build_FastAPI_Build"}],"RoleArn":"arn:aws:iam::363938657611:role/MomentNowBackendProductio-ECSCICDMyPipelineBuildFa-LYEP4C3XVIP2","RunOrder":"1\

    ......

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions