Muito descontente com o curso por falta de orientação e detalhes omitidos nos vídeos que atrasou muito o progresso do aprendizado, muito ruim isso levando em consideração por ser uma plataforma paga e de qualidade, a nota do curso com certeza será baixa da minha parte, mas vamos lá, ainda preciso de ajuda por favor!
Não estou conseguindo realizar o deploy do banco de dados na aws via terminal. O erro era igual deste post: https://cursos.alura.com.br/forum/topico-erro-ao-rodar-o-deploy-do-rds-358011 - na qual ele chama a vpc para retornar uma vpc pública no método
.subnets(vpc.getPublicSubnets())
.
Até ai ok, foi realizado a troca porém após a troca ele reclama que a combinação
DBInstanceClass=db.t2.micro
Engine=mysql
EngineVersion=8.0
não é suportada. Parece que a instância db.t2.micro não é compatível com a versão 8.0 do MySQL no modelo de licença general-public-license.
eu dei um
aws rds describe-db-engine-versions --engine mysql
Para poder verificar quais versões do mysql eu poderia testar como alternativa, fiz teste em todas as versões do mysql e o erro persistiu.
Rds: deploying... [2/2]
Rds: creating CloudFormation changeset...
6:24:47 | CREATE_FAILED | AWS::RDS::DBInstance | RdspedidosF4407238
Resource handler returned message: "RDS does not support creating a DB instance with the following combination: DBInstanceClass=db.t2.micro, Engine=mysql, EngineVersion=8.0.35, LicenseModel=general
-public-license. For supported combinations of instance class and database engine version, see the documentation. (Service: Rds, Status Code: 400, Request ID: 303c17c0-0b70-489f-a264-4965a9adf058)"
(RequestToken: 55e4ac9d-3bb4-a67f-dfcb-f2a129ba9bab, HandlerErrorCode: InvalidRequest)
❌ Rds failed: Error: The stack named Rds failed creation, it may need to be manually deleted from the AWS console: ROLLBACK_COMPLETE: Resource handler returned message: "RDS does not support creating a DB instance with the following combination: DBInstanceClass=db.t2.micro, Engine=mysql, EngineVersion=8.0.35, LicenseModel=general-public-license. For supported combinations of instance class and database engine version, see the documentation. (Service: Rds, Status Code: 400, Request ID: 303c17c0-0b70-489f-a264-4965a9adf058)" (RequestToken: 55e4ac9d-3bb4-a67f-dfcb-f2a129ba9bab, HandlerErrorCode: InvalidRequest)
at FullCloudFormationDeployment.monitorDeployment (/home/brunus/.nvm/versions/node/v18.19.1/lib/node_modules/aws-cdk/lib/index.js:433:10615)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.deployStack2 [as deployStack] (/home/brunus/.nvm/versions/node/v18.19.1/lib/node_modules/aws-cdk/lib/index.js:436:199343)
at async /home/brunus/.nvm/versions/node/v18.19.1/lib/node_modules/aws-cdk/lib/index.js:436:180749
❌ Deployment failed: Error: The stack named Rds failed creation, it may need to be manually deleted from the AWS console: ROLLBACK_COMPLETE: Resource handler returned message: "RDS does not support creating a DB instance with the following combination: DBInstanceClass=db.t2.micro, Engine=mysql, EngineVersion=8.0.35, LicenseModel=general-public-license. For supported combinations of instance class and database engine version, see the documentation. (Service: Rds, Status Code: 400, Request ID: 303c17c0-0b70-489f-a264-4965a9adf058)" (RequestToken: 55e4ac9d-3bb4-a67f-dfcb-f2a129ba9bab, HandlerErrorCode: InvalidRequest)
at FullCloudFormationDeployment.monitorDeployment (/home/brunus/.nvm/versions/node/v18.19.1/lib/node_modules/aws-cdk/lib/index.js:433:10615)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.deployStack2 [as deployStack] (/home/brunus/.nvm/versions/node/v18.19.1/lib/node_modules/aws-cdk/lib/index.js:436:199343)
at async /home/brunus/.nvm/versions/node/v18.19.1/lib/node_modules/aws-cdk/lib/index.js:436:180749
The stack named Rds failed creation, it may need to be manually deleted from the AWS console: ROLLBACK_COMPLETE: Resource handler returned message: "RDS does not support creating a DB instance with the following combination: DBInstanceClass=db.t2.micro, Engine=mysql, EngineVersion=8.0.35, LicenseModel=general-public-license. For supported combinations of instance class and database engine version, see the documentation. (Service: Rds, Status Code: 400, Request ID: 303c17c0-0b70-489f-a264-4965a9adf058)" (RequestToken: 55e4ac9d-3bb4-a67f-dfcb-f2a129ba9bab, HandlerErrorCode: InvalidRequest)