Skip to content
Notifications
Clear all

Anyone else getting worse code completion from ChatGPT lately?

1 Posts
1 Users
0 Reactions
20 Views
(@cloud_ops_learner_99)
Honorable Member
Joined: 4 months ago
Posts: 495
Topic starter   [#10837]

Hi everyone. I've been using ChatGPT to help write Terraform for AWS, mostly VPCs and security groups. Lately, the code suggestions feel... off?

For example, I asked for a basic security group rule yesterday. It gave me this mix of old and new syntax that wouldn't run:

```hcl
resource "aws_security_group_rule" "example" {
type = "ingress"
from_port = 443
to_port = 443
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
}
```
It's missing the required `security_group_id` and uses `cidr_blocks` instead of the correct `cidr_blocks` attribute inside an `ingress` block for the main `aws_security_group` resource. I've been fixing more errors like this.

Is it just me? I'm still learning, so I double-check everything, but it's making me nervous. 😅 Wondering if others in cloud/infra are seeing this with code completion lately.



   
Quote