skip to Main Content

Amazon web services – An argument named "vpc_security_group_ids" is not expected here … not sure why i am getting this error

My terraform security local ec2 module looks like so resource "aws_instance" "mysql" { ami = data.aws_ami.latest_amazon_linux.id instance_type = var.instance_type # override this at module call key_name = aws_key_pair.my_local_pubkey.key_name # override this at module call vpc_security_group_ids = [var.default_sg] # override security…

VIEW QUESTION

Amazon web services – Terraform Error: creating CloudWatch Alarm ValidationError – Invalid metrics list status code 400

I'm attempting to create a CloudWatch anomaly detector alarm for my Kinesis data stream using Terraform. I made the following setup based on the official Terraform xx_anomaly_detection example in their documentation: resource "aws_cloudwatch_metric_alarm" "my_anomaly_detector" { alarm_name = "LowIncomingRecordsAnomaly" comparison_operator =…

VIEW QUESTION

Amazon web services – Terraform – Addition of security group to aws_instance leads to replacement of the instance

I have a terraform file, which is responsible for creation of an ec2 instance as well as the security groups. resource "aws_instance" "ec2" { ami = "ami-06791f9213cbb608b" instance_type = "t2.micro" key_name = "terraform-key" depends_on = [aws_security_group.ssh_group] security_groups = [aws_security_group.ssh_group.name] }…

VIEW QUESTION
Back To Top
Search