내용으로 건너뛰기

Deploy failure 와 오래된 코드로의 deploy

0

안녕하세요

Https 연결하기전까지는 정상 작동하였습니다. 설정 과정에서부터 코드가 가장 신규 코드로 업데이트가 되지 않습니다.

Https 연결 정상 완료하였고 테스트도 성공하였습니다.

그런데 Github 에 push하면 여전히 deploy 가 failure로 뜨고 AWS EB에는 severe 상태로 바뀌었다가 Ok로 status가 변경되면거 현재 코드가 아니라 일주일 이전 버전의 코드로만 deploy 됩니다.

그리고 정상작동은 안되고 있는데 현재 과금만 계속 되고 있어서 과금문제와 deploy 오류 문제에 대해서 도움을 구하고 싶습니다.

질문됨 4달 전48회 조회
1개 답변
0

Based on your description, you're experiencing two main issues: deployment failures and the system reverting to an older version of your code.

For the deployment failures:

  1. The error you're seeing could be related to a validation issue in your AWS CloudFormation template or custom resource. When deploying infrastructure as code, validation errors can cause deployments to fail and roll back to previous versions.

  2. Check your CloudFormation stack status in the AWS Console. If it's in a ROLLBACK_FAILED state, you may need to manually delete the stack from the AWS console before attempting to deploy again.

  3. If you're using AWS CDK or a similar tool, you might need to add output path specifications to limit the response size from custom resources, as large response objects can cause deployment failures.

For the reversion to older code:

  1. Elastic Beanstalk might be rolling back to the last known good deployment when it encounters errors with your newer code.

  2. Check your deployment logs to understand why the newer version is failing to deploy properly.

Regarding billing concerns:

  1. Even when applications are in a "Severe" state, AWS resources remain provisioned and continue to incur charges.

  2. Consider temporarily shutting down unnecessary resources while troubleshooting if cost is a concern.

To resolve these issues:

  1. Review your deployment logs for specific error messages.

  2. Validate your configuration files and application code.

  3. If using custom resources in CloudFormation, ensure they're properly configured with appropriate output paths.

  4. Consider using infrastructure as code tools like Terraform or AWS CDK for more predictable deployments.

  5. If the issue persists, you may need to create a new environment and deploy your application there instead of trying to update the problematic one.
    Sources
    Deploying Stack throws error at CreateKeysAndCertificate | AWS re:Post
    𝗪𝗵𝘆 𝗧𝗲𝗿𝗿𝗮𝗳𝗼𝗿𝗺 𝗶𝘀 𝗮 𝗚𝗮𝗺𝗲-𝗖𝗵𝗮𝗻𝗴𝗲𝗿 | AWS re:Post

답변함 4달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

관련 콘텐츠