Open vigneshwar221B opened 1 year ago
Hi,
Unfortunately getting InternalFailure from CloudFormation can be hard to diagnose.
It can be caused by a syntax error in the template. This would not be the case for your issue unless you modified the template or code that feeds parameters to CloudFormation. See here.
To help investigate, you might find a failed API call in cloudTrail. This article describes this for creating and updating stacks, but it is also useful for creating change sets.
https://repost.aws/knowledge-center/cloudformation-internal-failure-error
Hi, I tried looking at the cloudtrail events but couldn't find anything useful
{ "eventVersion": "1.08", "userIdentity": { "type": "IAMUser", "principalId": "AIDAWQOORLB2W6WZLZXQO", "arn": "arn:aws:iam::447646619765:user/full-access", "accountId": "447646619765", "accessKeyId": "AKIAWQOORLB25FBFR3NZ", "userName": "full-access" }, "eventTime": "2023-05-23T06:55:33Z", "eventSource": "cloudformation.amazonaws.com", "eventName": "CreateChangeSet", "awsRegion": "us-east-1", "sourceIPAddress": "122.187.88.146", "userAgent": "Boto3/1.26.99 Python/3.8.13 Darwin/22.1.0 Botocore/1.29.109 aws-sam-cli/1.83.0/cf898c46-b743-4698-a04a-3d7dfb33d9a8", "errorCode": "InternalFailure", "errorMessage": "An unknown error occurred", "requestParameters": null, "responseElements": null, "requestID": "602705ef-1fed-4c76-ac92-a694377efddc", "eventID": "5347bc02-b306-49d2-8817-08540b60a7a3", "readOnly": false, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "447646619765", "eventCategory": "Management", "tlsDetails": { "tlsVersion": "TLSv1.3", "cipherSuite": "TLS_AES_128_GCM_SHA256", "clientProvidedHostHeader": "cloudformation.us-east-1.amazonaws.com" } }
Same goes for looking at the outputs of CF stack. But anyhow when I deleted the stack manually and run the sh script again, it worked! I'm yet to find the cause for the initial failure but this issue is closed for me.
When i run the sh file
./bin/bash/deploy-tre.sh -r us-east-1
it throws the following error:This is what the output file has:
Initiating deployment
Error: Failed to create changeset for the stack: SAM-TRE, An error occurred (InternalFailure) when calling the CreateChangeSet operation (reached max retries: 4): Unknown