Generate attributes of imported resource successfully
Actual Behavior
│ Error: Missing Attribute Configuration
│
│ with aws_batch_job_queue.job-queue,
│ on generated_resources.tf line 1:
│ (source code not available)
│
│ Exactly one of these attributes must be configured:
│ [compute_environments,compute_environment_order]
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Default CDKTF setup
Steps to Reproduce
CDKTF Code:
import { Construct } from "constructs";
import { App, S3Backend, TerraformStack } from "cdktf";
import { AwsProvider } from "@cdktf/provider-aws/lib/provider";
import { BatchJobQueue } from "@cdktf/provider-aws/lib/batch-job-queue";
class Stack extends TerraformStack {
constructor(scope: Construct, id: string) {
super(scope, id);
new AwsProvider(this, "aws", {
region: "us-east-2",
});
new S3Backend(this, {
bucket: "XXXXXXXXXXXXXXXXX-terraform-state",
key: "terraform.tfstate",
region: "us-east-2",
dynamodbTable: "terraform-lock",
});
BatchJobQueue.generateConfigForImport(
this,
"job-queue",
"arn:aws:batch:us-east-2:XXXXXXXXX:job-queue/job-queue-asdfasdfasdf",
);
}
}
const app = new App();
new Stack(app, "stack");
app.synth();
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
If you are interested in working on this issue, please leave a comment.
If this would be your first contribution, please review the contribution guide.
Terraform Core Version
1.9.2
AWS Provider Version
5.59.0
Affected Resource(s)
aws_batch_job_queue
Expected Behavior
Generate attributes of imported resource successfully
Actual Behavior
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Default CDKTF setup
Steps to Reproduce
CDKTF Code:
Then run
cdktf diff
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None