[Section 4.18 - Data Sources] - Error launching source instance #43
Unanswered
danielcgil83
asked this question in
Q&A
Replies: 1 comment
-
Obrigado @danielcgil83 Teve um outro comentário que outro aluno teve o mesmo problema. O provider da AWS ou a AWS mesmo atualizou o nome da AMI para "Ubuntu" com U maiúsculo. #26 (comment) Está correto a sua solução, eu fiz a mesma coisa neste arquivo. https://github.com/chgasparoto/curso-aws-com-terraform/blob/master/05-autoscaling-app/ec2.tf#L6 Abraço. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Olá Cleber, primeiramente quero parabenizar, o curso está excelente, muito claro e objetivo!
Me deparei com um erro ao tentar subir o serviço de EC2 nesta aula:
╷
│ Error: Error launching source instance: InvalidParameterValue: The architecture 'x86_64' of the specified instance type does not match the architecture 'arm64' of the specified AMI. Specify an instance type and an AMI that have matching architectures, and try again. You can use 'describe-instance-types' or 'describe-images' to discover the architecture of the instance type or AMI.
│ status code: 400, request id: 1afdc8e7-ce23-437c-a861-d0e3243ab74d
│
│ with aws_instance.web,
│ on ec2.tf line 2, in resource "aws_instance" "web":
│ 2: resource "aws_instance" "web" {
│
╵
Consegui fazer a implementação fazendo uma alteração no arquivo "data.tf":
Mesmo tendo conseguido implementar com esta alteração, fiquei com uma dúvida, esta foi a solução correta ou eu deveria ter feito de outra forma?
Beta Was this translation helpful? Give feedback.
All reactions