Getting Error while creating resource through terraform

0

Plan: 1 to add, 0 to change, 0 to destroy.

Do you want to perform these actions? Terraform will perform the actions described above. Only 'yes' will be accepted to approve.

Enter a value: yes

aws_instance.myec2: Creating... ╷ │ Error: creating EC2 Instance: Blocked: This account is currently blocked and not recognized as a valid account. Please contact https://support.console.aws.amazon.com/support/home?region=us-east-1#/case/create?issueType=customer-service&serviceCode=account-management&categoryCode=account-verification if you have questions. │ status code: 400, request id: 5b125605-f4b2-4f16-9cb2-d739c1a1746f │ │ with aws_instance.myec2, │ on first-ec2-instance.tf line 7, in resource "aws_instance" "myec2": │ 7: resource "aws_instance" "myec2" { │ ╵

C:\Terraform>

Parag
已提问 6 个月前220 查看次数
1 回答
0
已接受的回答

Hello.

Judging from the content of the error, it appears that the AWS account is locked.
Is it possible to create other resources?
In the case of a new AWS account, such errors may occur due to low quota values ​​such as available regions and vCPUs.
I think it would be a good idea to open a case with AWS Support under "Account and billing" and inquire to avoid any errors.
https://docs.aws.amazon.com/awssupport/latest/user/case-management.html

profile picture
专家
已回答 6 个月前
profile picture
专家
已审核 6 个月前
profile pictureAWS
专家
已审核 6 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容