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
asked 5 months ago207 views
1 Answer
0
Accepted Answer

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
EXPERT
answered 5 months ago
profile picture
EXPERT
reviewed 5 months ago
profile pictureAWS
EXPERT
reviewed 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions