-
Notifications
You must be signed in to change notification settings - Fork 849
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: ResourceNotFoundException: Requested resource not found #4
Comments
It happens both with aws provider version 4.3 and 3.74.3, here is the entire stacktrace: -----------------------------------------------------: timestamp=2022-03-06T13:54:56.059+0200 @im2nguyen, can you please recommend how to solve this issue? Best regards, |
Hi Oleg Did you ever find the cause/solution to this issue? I am getting the exact same error. Thanks |
@quincyorange-daf, the additional repositories need to use "main" branches. They were master in my case. Changing the branch name fixed the issue. |
Hello,
I used the HashiCorp tutorial: https://learn.hashicorp.com/tutorials/terraform/aws-control-tower-aft
Successfully passed the following actions:
Configure the landing zone,
Deploy AFT module,
Enabled CodeStar connection,
Grant AFT access to Service Catalog portfolio,
Rerun account provisioning pipeline.
Everything worked well so far.
But there is an issue deploying new accounts with ATF. terraform plan passes successfully, while terraform apply fails with the following error:
│ Error: ResourceNotFoundException: Requested resource not found │ │ with module.sandbox.aws_dynamodb_table_item.account-request, │ on modules/aft-account-request/ddb.tf line 1, in resource "aws_dynamodb_table_item" "account-request": │ 1: resource "aws_dynamodb_table_item" "account-request" {
The same error is present in CloudWatch /aws/codebuild/ct-aft-account-request.
Running terraform in debug mode doesn't provide more details.
This is the code for account definition:
`module "sandbox" {
source = "./modules/aft-account-request"
control_tower_parameters = {
AccountEmail = "[email protected]"
AccountName = "dev.aws"
ManagedOrganizationalUnit = "aft.aws"
SSOUserEmail = "[email protected]"
SSOUserFirstName = "DEV"
SSOUserLastName = "AWS"
}
account_tags = {
"Name" = "DEV AWS"
}
change_management_parameters = {
change_requested_by = "My Company"
change_reason = "Add dev.aws account"
}
custom_fields = {
group = "dev.aws"
}
account_customizations_name = "sandbox"
}`
Any help will be greatly appreciated!
The text was updated successfully, but these errors were encountered: