AB
Size: a a a
AB
AS
AS
AS
VS
AP
VM
VM
AP
AS
Ds
S
make apply ENV="dev"
cd terraform/layers/lambdas && \
terraform apply "tfplan" && \
rm -f tfplan
Error: Cycle: aws_api_gateway_deployment.deployment, aws_api_gateway_deployment.deployment (destroy deposed 948ce211), aws_api_gateway_integration.lambda["example2"] (destroy)
S
S
S
resource "aws_api_gateway_deployment" "deployment" {
depends_on = [aws_api_gateway_integration.lambda]
rest_api_id = data.aws_api_gateway_rest_api.rest-api.id
stage_name = var.env
triggers = {
redeployment = sha1(jsonencode(aws_api_gateway_integration.lambda))
}
lifecycle {
create_before_destroy = true
}
}
make apply ENV="dev"
cd terraform/layers/lambdas && \
terraform apply "tfplan" && \
rm -f tfplan
aws_lambda_permission.apigw["example2"]: Destroying... [id=kaplan-dev-aws-java-simple-http-endpoint-new-statement]
aws_cloudwatch_log_group.lambdas["example2"]: Destroying... [id=/aws/lambda/kaplan-dev-aws-java-simple-http-endpoint-new]
aws_api_gateway_deployment.deployment: Destroying... [id=jeflkt]
aws_cloudwatch_log_group.lambdas["example2"]: Destruction complete after 0s
aws_lambda_permission.apigw["example2"]: Destruction complete after 1s
Error: error deleting API Gateway Deployment (jeflkt): BadRequestException: Active stages pointing to this deployment must be moved or deleted
S
S
S
AK